diff --git a/.gitignore b/.gitignore index d115a80..ed6d24b 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ .DS_store -.idea/ \ No newline at end of file +.idea/ +personal.py \ No newline at end of file diff --git a/repeat.py b/repeat.py index 7cf8434..939c87e 100644 --- a/repeat.py +++ b/repeat.py @@ -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), @@ -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, -}) \ No newline at end of file +}) diff --git a/std.py b/std.py index 508c03a..ee73659 100644 --- a/std.py +++ b/std.py @@ -219,10 +219,6 @@ def FormatText(m): 'kill': Key('ctrl-c'), 'screenshot page': Key('alt-shift-p'), - - # my stuff - 'my e-mail': 'ianmarkind@gmail.com', - 'spotlight': Key('cmd-space'), 'cut': Key('cmd-x'),