mirror of
https://github.com/Foundry376/Mailspring.git
synced 2024-11-14 21:57:55 +08:00
37af2ba42c
Summary: - Separate gmail's remove-from-view and delete behaviors and write logic for each of those - Remove MailboxPerspective::{canArchiveThreads, canTrashThreads, removeThreads} and some unecessary code in TaskFactory - Instead, add MailboxPerspective::tasksForRemovingFromPerspective (I know its a bit of a mouthful) - I initially tried to put all of the logic for each execution path inside the TaskFactory by checking perspective types, but it made more sense to use the polymorphism already in place for the different perspective types. - There is a default delete/remove-from-view behavior which is configurable via simple ruleset objects. The gmail behavior is configured in this way. - Update swipe css classes based on destination of threads - Fixes #1460: - Update logic to display archive/trash buttons and context menu options correctly when selected threads can be archived/trashed (not based on perspective) - Same for swiping - Add a bunch of specs - Convert some code to ES6 - TODO write some docs for new functions Test Plan: Unit tests Reviewers: drew, evan, bengotow Reviewed By: bengotow Differential Revision: https://phab.nylas.com/D2682
79 lines
2.3 KiB
Text
79 lines
2.3 KiB
Text
# Gmail-specific core key-mappings
|
|
|
|
'body':
|
|
|
|
### 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 ###
|
|
'* a': 'multiselect-list:select-all'
|
|
'* n': 'multiselect-list:deselect-all'
|
|
'* 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'
|
|
'j': 'core:next-item'
|
|
'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'
|
|
'y': 'application:gmail-remove-from-view' # Remove label
|
|
'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'
|