Skip to content

Commit

Permalink
created android messages script and removed caps lock from bitbucket.
Browse files Browse the repository at this point in the history
  • Loading branch information
TestPlan committed Aug 30, 2018
1 parent 5258015 commit bc49f12
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 29 deletions.
21 changes: 21 additions & 0 deletions android-messages.py
Original file line number Diff line number Diff line change
@@ -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)
57 changes: 28 additions & 29 deletions bit-bucket.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'),

}

Expand Down

0 comments on commit bc49f12

Please sign in to comment.