diff --git a/android-messages.py b/android-messages.py new file mode 100644 index 0000000..82a6f64 --- /dev/null +++ b/android-messages.py @@ -0,0 +1,21 @@ +from talon.voice import Context, Key + +ctx = Context('android-messages', func=lambda app, win: 'Messages for web' in win.title) + +keymap = { + + 'new conversation': Key('cmd-alt-c'), + 'next conversation': Key('ctrl-.'), + 'previous conversation': Key('ctrl-,'), + 'delete conversation': Key('cmd-alt-r'), + 'archive conversation': Key('cmd-alt-h'), + 'open settings': Key('cmd-alt-x'), + 'attach files': Key('cmd-alt-a'), + '(show | hide) emoji picker': Key('cmd-alt-e'), + '(show | hide) sticker picker': Key('cmd-alt-s'), + '(show | hide) gif picker': Key('cmd-alt-g'), + '(show | hide) details': Key('cmd-alt-d'), + +} + +ctx.keymap(keymap) diff --git a/bit-bucket.py b/bit-bucket.py index 75a9c57..0388e56 100644 --- a/bit-bucket.py +++ b/bit-bucket.py @@ -11,46 +11,45 @@ # Most Pages (except your work and repository source) 'omnibar': Key('.'), - 'next item': Key('capslock-j'), - 'last item': Key('capslock-k'), - 'selected': Key('capslock-o'), - '[work] dashboard': Key('capslock-g capslock-d'), - '[bucket] settings': Key('capslock-g capslock-a'), + 'next item': Key('j'), + 'last item': Key('k'), + 'selected': Key('o'), + '[work] dashboard': Key('g d'), + '[bucket] settings': Key('g a'), 'remove focus': Key('esc'), - 'go back': Key('capslock-u'), + 'go back': Key('u'), 'right navigation': Key(']'), # Repository source - 'focus': Key('capslock-f'), + 'focus': Key('f'), # Repository pages (except source) - 'create': Key('capslock-c capslock-r'), - 'import': Key('capslock-I capslock-r'), - 'source': Key('capslock-r capslock-s'), - 'view commits': Key('capslock-r capslock-c'), - 'view branches': Key('capslock-r capslock-b'), - 'pull requests': Key('capslock-r capslock-p'), - 'issues': Key('capslock-r capslock-i'), - 'wiki': Key('capslock-r capslock-w'), - 'show downloads': Key('capslock-r capslock-d'), - 'repo settings': Key('capslock-r capslock-a'), - 'find file': Key('capslock-f'), + 'create': Key('c r'), + 'import': Key('I r'), + 'source': Key('r s'), + 'view commits': Key('r c'), + 'view branches': Key('r b'), + 'pull requests': Key('r p'), + 'issues': Key('r i'), + 'wiki': Key('r w'), + 'show downloads': Key('r d'), + 'repo settings': Key('r a'), + 'find file': Key('f'), # Repository pages (except source and settings) - 'fork repository': Key('capslock-x capslock-f'), - 'create branch': Key('capslock-x capslock-b'), - 'compare': Key('capslock-x capslock-c'), - 'fork repository': Key('capslock-x capslock-f'), - 'create pull request': Key('capslock-x capslock-p'), - 'create issue': Key('capslock-x capslock-i'), + 'fork repository': Key('x f'), + 'create branch': Key('x b'), + 'compare': Key('x c'), + 'create pull request': Key('x p'), + 'create issue': Key('x i'), # Pull Requests 'submit comment': Key('ctrl+enter'), - 'inline comments': Key('capslock-t capslock-c'), - 'diff tab': Key('capslock-p capslock-d'), - 'commits tab': Key('capslock-p capslock-c'), - 'activity tab': Key('capslock-p capslock-a'), - 'show tasks': Key('shift-capslock-t'), + 'inline comments': Key('t c'), + 'diff tab': Key('p d'), + 'commits tab': Key('p c'), + 'activity tab': Key('p a'), + 'show tasks': Key('shift-t'), }