Skip to content

Commit

Permalink
Independent keyboard shortcuts for Labels and Folders. (#259)
Browse files Browse the repository at this point in the history
* Changed to "l" for Labels and "v" for Folders in Gmail.
* Updated gitignore to ignore build files.
  • Loading branch information
jeffreyssmith2nd authored and bengotow committed Oct 28, 2017
1 parent 475203a commit bb2b78a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ client_secret.json
/app/dist-docs
/app/mailsync.dSYM.zip
/snap/snapcraft.yml

**.so*
**.bin
**.tar.gz
4 changes: 2 additions & 2 deletions app/internal_packages/category-picker/lib/label-picker.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class LabelPicker extends React.Component
@_account = AccountStore.accountForItems(nextProps.items)

_keymapHandlers: ->
"core:change-category": @_onOpenCategoryPopover
"core:change-labels": @_onOpenCategoryPopover

_onOpenCategoryPopover: =>
return unless @props.items.length > 0
Expand All @@ -59,7 +59,7 @@ class LabelPicker extends React.Component
globalMenuItems={[
{
"label": "Thread",
"submenu": [{ "label": "Apply Labels...", "command": "core:change-category", "position": "endof=thread-actions" }]
"submenu": [{ "label": "Apply Labels...", "command": "core:change-labels", "position": "endof=thread-actions" }]
}
]}
>
Expand Down
4 changes: 2 additions & 2 deletions app/internal_packages/category-picker/lib/move-picker.cjsx
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MovePicker extends React.Component
@_account = AccountStore.accountForItems(nextProps.items)

_keymapHandlers: ->
"core:change-category": @_onOpenCategoryPopover
"core:change-folders": @_onOpenCategoryPopover

_onOpenCategoryPopover: =>
return unless @props.items.length > 0
Expand All @@ -58,7 +58,7 @@ class MovePicker extends React.Component
globalMenuItems={[
{
"label": "Thread",
"submenu": [{ "label": "Move to Folder...", "command": "core:change-category", "position": "endof=thread-actions" }]
"submenu": [{ "label": "Move to Folder...", "command": "core:change-folders", "position": "endof=thread-actions" }]
}
]}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@ module.exports = [
['core:gmail-remove-from-view', 'Gmail Remove from view'],
['core:star-item', 'Star'],
['core:snooze-item', 'Snooze'],
['core:change-category', 'Change Folder / Labels'],
['core:change-labels', 'Change Labels'],
['core:change-folders', 'Change Folder'],
['core:mark-as-read', 'Mark as read'],
['core:mark-as-unread', 'Mark as unread'],
['core:mark-important', 'Mark as important (Gmail)'],
Expand Down
3 changes: 2 additions & 1 deletion app/keymaps/templates/Gmail.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,8 @@

"core:mute-conversation": "m",
"core:focus-search": "/",
"core:change-category": ["l", "v"],
"core:change-labels": "l",
"core:change-folders": "v",
"core:focus-toolbar": ",",
"core:star-item": "s",
"core:gmail-remove-from-view": "y",
Expand Down

0 comments on commit bb2b78a

Please sign in to comment.