2015-11-07 03:47:06 +08:00
|
|
|
# Gmail-specific core key-mappings
|
2015-08-15 06:40:11 +08:00
|
|
|
|
|
|
|
'body':
|
2015-11-07 03:47:06 +08:00
|
|
|
|
|
|
|
### Jumping ###
|
|
|
|
'g i' : 'navigation:go-to-inbox'
|
|
|
|
'g s' : 'navigation:go-to-starred'
|
|
|
|
'g t' : 'navigation:go-to-sent'
|
|
|
|
'g d' : 'navigation:go-to-drafts'
|
|
|
|
'g a' : 'navigation:go-to-all'
|
|
|
|
'g c' : 'navigation:go-to-contacts'
|
|
|
|
'g k' : 'navigation:go-to-tasks'
|
|
|
|
'g l' : 'navigation:go-to-label'
|
|
|
|
|
|
|
|
### Threadlist selection ###
|
feat(selection): add selection of read, unread, starred, etc
Summary:
Can select all, deselect-all, read, unread, starred, unstarred.
Yes, it's not REALLY select "all", but it uses the items in the current
`retainedRange`. This is actually similar to what gmail does (only selects
on the first page of a 100).
Test Plan: new test
Reviewers: juan, bengotow
Reviewed By: bengotow
Differential Revision: https://phab.nylas.com/D2241
2015-11-09 23:03:55 +08:00
|
|
|
'* a': 'multiselect-list:select-all'
|
|
|
|
'* n': 'multiselect-list:deselect-all'
|
2015-11-07 03:47:06 +08:00
|
|
|
'* r': 'thread-list:select-read'
|
|
|
|
'* u': 'thread-list:select-unread'
|
|
|
|
'* s': 'thread-list:select-starred'
|
|
|
|
'* t': 'thread-list:select-unstarred'
|
|
|
|
|
|
|
|
### Navigation ###
|
|
|
|
'u': 'application:pop-sheet'
|
|
|
|
'k': 'core:previous-item'
|
2016-04-15 05:08:46 +08:00
|
|
|
'shift-k': 'core:select-up'
|
2015-11-07 03:47:06 +08:00
|
|
|
'j': 'core:next-item'
|
2016-04-15 05:08:46 +08:00
|
|
|
'shift-j': 'core:select-down'
|
2015-11-07 03:47:06 +08:00
|
|
|
'o': 'core:focus-item'
|
|
|
|
'p': 'message-list:previous-message'
|
|
|
|
'n': 'message-list:next-message'
|
|
|
|
|
|
|
|
### Application ###
|
|
|
|
'c': 'application:new-message'
|
|
|
|
'd': 'application:new-message'
|
|
|
|
'/': 'application:focus-search'
|
|
|
|
'.': 'application:more-actions'
|
|
|
|
'l': 'application:change-category'
|
|
|
|
'v': 'application:change-category'
|
|
|
|
'?': 'application:open-help'
|
|
|
|
|
|
|
|
### Actions ###
|
|
|
|
',': 'application:focus-toolbar'
|
|
|
|
'x': 'core:select-item'
|
|
|
|
's': 'application:star-item'
|
2016-03-08 10:13:53 +08:00
|
|
|
'y': 'application:gmail-remove-from-view' # Remove label
|
2015-11-07 03:47:06 +08:00
|
|
|
'e': 'application:archive-item'
|
|
|
|
'm': 'application:mute-conversation'
|
|
|
|
'!': 'application:report-as-spam'
|
|
|
|
'#': 'application:delete-item'
|
|
|
|
|
|
|
|
'r': 'application:reply'
|
|
|
|
'R': 'application:reply-new-window'
|
|
|
|
'a': 'application:reply-all'
|
|
|
|
'A': 'application:reply-all-new-window'
|
|
|
|
'f': 'application:forward'
|
|
|
|
'F': 'application:forward-new-window'
|
|
|
|
|
|
|
|
']': 'application:remove-and-previous'
|
|
|
|
'}': 'application:remove-and-previous'
|
|
|
|
'[': 'application:remove-and-next'
|
|
|
|
'{': 'application:remove-and-next'
|
|
|
|
|
|
|
|
'z': 'core:undo'
|
|
|
|
|
|
|
|
'I': 'application:mark-as-read'
|
|
|
|
'U': 'application:mark-as-unread'
|
|
|
|
'_': 'application:mark-as-unread' # Mark unread from the selected message
|
|
|
|
'+': 'application:mark-important'
|
|
|
|
'=': 'application:mark-important'
|
|
|
|
'-': 'application:mark-unimportant'
|
|
|
|
|
|
|
|
';': 'message-list:expand-all'
|
|
|
|
':': 'message-list:collapse-all'
|
|
|
|
|
|
|
|
# While not stock Gmail, we add the following standard keymaps that
|
|
|
|
# desktop application users would expect:
|
|
|
|
'cmdctrl-n' : 'application:new-message'
|
|
|
|
'cmdctrl-r' : 'application:reply'
|
|
|
|
'cmdctrl-R' : 'application:reply-all'
|
|
|
|
'cmdctrl-F' : 'application:forward'
|