-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Created commands for finder an added BEM commands in std
- Loading branch information
Showing
2 changed files
with
61 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
from talon.voice import Key, Context | ||
|
||
ctx = Context('Finder', bundle='com.apple.finder') | ||
ctx.keymap({ | ||
'(dupe | duplicate)': Key('cmd-d'), | ||
'trash it': Key('cmd-backspace'), | ||
|
||
# jump to location | ||
'all [my] files': Key('shift-cmd-f'), | ||
'[my] computer': Key('shift-cmd-c'), | ||
'documents': Key('shift-cmd-o'), | ||
'desktop': Key('shift-cmd-d'), | ||
'library': Key('shift-cmd-l'), | ||
'network': Key('shift-cmd-k'), | ||
'utilities': Key('shift-cmd-u'), | ||
'downloads': Key('alt-cmd-l'), | ||
'applications': Key('shift-cmd-a'), | ||
'home': Key('shift-cmd-h'), | ||
'iCloud': Key('shift-cmd-i'), | ||
'airdrop': Key('shift-cmd-r'), | ||
|
||
# views | ||
'icon': Key('cmd-1'), | ||
'list': Key('cmd-2'), | ||
'column': Key('cmd-3'), | ||
'cover': Key('cmd-4'), | ||
|
||
# sorting / arranging files | ||
'[(sort | arrange)] by none': Key('ctrl-cmd-0'), | ||
'[(sort | arrange)] by name': Key('ctrl-cmd-1'), | ||
'[(sort | arrange)] by kind': Key('ctrl-cmd-2'), | ||
'[(sort | arrange)] by date last opened': Key('ctrl-cmd-3'), | ||
'[(sort | arrange)] by date added': Key('ctrl-cmd-4'), | ||
'[(sort | arrange)] by date modified': Key('ctrl-cmd-5'), | ||
'[(sort | arrange)] by size': Key('ctrl-cmd-6'), | ||
'[(sort | arrange)] by tags': Key('ctrl-cmd-7'), | ||
|
||
# navigation | ||
'parent folder': Key('cmd-up'), | ||
'new window': Key('cmd-n'), | ||
'new folder': Key('cmd-shift-n'), | ||
'new tab': Key('cmd-t'), | ||
'collapse': Key('cmd-left'), | ||
'expand': Key('cmd-right'), | ||
'open': Key('cmd-down'), | ||
'(info | information)': Key('cmd-i'), | ||
|
||
|
||
# other actions | ||
'[toggle] preview': Key('shift-cmd-p'), | ||
'eject': Key('cmd-e'), | ||
'connect to server': Key('cmd-k'), | ||
'[create] alias': Key('cmd-l'), | ||
'close all': Key('alt-cmd-w'), | ||
'add to dock': Key('ctrl-shift-cmd-t'), | ||
'add to sidebar': Key('ctrl-cmd-t'), | ||
'show package contents': Key('cmd-alt-o'), | ||
# 'pathway': Key('cmd-alt-c'), | ||
}) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters