Skip to content

Commit

Permalink
extracted personal info to personal.py and updated the gitignore
Browse files Browse the repository at this point in the history
  • Loading branch information
TestPlan committed Sep 12, 2018
1 parent b7155c0 commit 871395c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
.DS_store
.idea/
.idea/
personal.py
6 changes: 4 additions & 2 deletions repeat.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,17 +3,19 @@

ctx = Context('repeater')


# TODO: This could be made more intelligent:
# * Apply a timeout after which the command will not repeat previous actions
# * Prevent stacking of repetitions upon previous repetitions
def repeat(m):
repeat_count = parse_words_as_integer(m._words[1:])

if repeat_count != None and repeat_count >= 2:
if repeat_count is not None and repeat_count >= 2:
repeater = Rep(repeat_count - 1)
repeater.ctx = talon
return repeater(None)


ctx.keymap({
# 'wink': Rep(1),
'creek': RepPhrase(1),
Expand All @@ -22,4 +24,4 @@ def repeat(m):
# 'quarr': Rep(4),
# 'fypes': Rep(5),
'(rep | repeat) (0 | oh | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9)+': repeat,
})
})
4 changes: 0 additions & 4 deletions std.py
Original file line number Diff line number Diff line change
Expand Up @@ -219,10 +219,6 @@ def FormatText(m):
'kill': Key('ctrl-c'),
'screenshot page': Key('alt-shift-p'),


# my stuff
'my e-mail': '[email protected]',

'spotlight': Key('cmd-space'),

'cut': Key('cmd-x'),
Expand Down

0 comments on commit 871395c

Please sign in to comment.