Skip to content

Commit

Permalink
added commands for trello, and edited slack and standard commands
Browse files Browse the repository at this point in the history
  • Loading branch information
TestPlan committed Aug 27, 2018
1 parent ba7ffb5 commit 3339bf3
Show file tree
Hide file tree
Showing 3 changed files with 46 additions and 7 deletions.
2 changes: 1 addition & 1 deletion slack.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
'channel last': Key('alt-up'),
'[channel] unread last': Key('alt-shift-up'),
'channel next': Key('alt-down'),
'[channel] unread [next]': Key('alt-shift-down'),
'[channel] unread next': Key('alt-shift-down'),
'[channel] info': Key('cmd-shift-i'),

# Navigation
Expand Down
13 changes: 7 additions & 6 deletions std.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ def FormatText(m):
'(bang | exclamation point)': '!',
'dollar [sign]': '$',
'(downscore | score)': '_',
'(dubscore | double downscore)': '__',
'(dubscore | double downscore | behm)': '__',
'(dubscore | double dash | behmdash)': '--',
'(semi | semicolon)': ';',
'colon': ':',
'(square | left square [bracket] | bracket)': '[', '(rsquare | are square | right square [bracket])': ']',
Expand Down Expand Up @@ -331,8 +332,9 @@ def FormatText(m):
'index': ['[]', Key('left')],
'block': [' {}', Key('left enter enter up tab')],
'empty array': '[]',
'empty dict': '{}',
'empty dict | braces': '{}',

# python
'state (def | deaf | deft)': 'def ',
'state else if': 'elif ',
'state if': 'if ',
Expand All @@ -352,10 +354,8 @@ def FormatText(m):
'state type deaf': 'typedef ',
'state type deaf struct': ['typedef struct {\n\n};', Key('up'), '\t'],

'comment see': '// ',
'comment py': '# ',

'word queue': 'queue',
'word none': 'None',
'word eye': 'eye',
'word bson': 'bson',
'word iter': 'iter',
Expand All @@ -366,6 +366,7 @@ def FormatText(m):
'word printf': 'printf',
'word (dickt | dictionary)': 'dict',
'word shell': 'shell',
'word to do': 'TODO',

'word lunixbochs': 'lunixbochs',
'word talon': 'talon',
Expand All @@ -387,7 +388,7 @@ def FormatText(m):
'(minus | dash)': '-',
'plus': '+',
'arrow': '->',
'(fat arrow | fatty)': '=>',
'(fat arrow | fatty)': ' => ',
'(call | parens | parenthesis)': '()',
'indirect': '&',
'dereference': '*',
Expand Down
38 changes: 38 additions & 0 deletions trello.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
from talon.voice import Context, Key

ctx = Context('trello', bundle='com.atlassian.trello')

keymap = {
'(quick add | add)': Key('ctrl-alt-space'),
'boards': Key('b'),
'search': Key('/'),
'archive': Key('c'),
'due date': Key('d'),
'edit': Key('e'),
'cancel': Key('esc'),
'save': Key('cmd-enter'),
'open card': Key('enter'),
'create open': Key('shift-enter'),
'filter': Key('f'),
'toggle label': Key(';'),
'(add | remove) members': Key('m'),
'new card': Key('n'),
'move card left': Key(','),
'move card right': Key('.'),
'my cards': Key('q'),
'(watch | unwatch) card': Key('s'),
'(assign | unassign) me': Key('space'),
'edit title': Key('t'),
'vote': Key('v'),
'[| toggle] board menu': Key('w'),
'clear filters': Key('x'),
'shortcuts': Key('?'),
'member': Key('@'),
'tag label': Key('#'),
'position': Key('^'),

# TODO Add label color numbers (extended)
'label': Key('l'),
}

ctx.keymap(keymap)

0 comments on commit 3339bf3

Please sign in to comment.