mirror of
https://github.com/atom/atom.git
synced 2026-04-06 03:02:13 -04:00
- Add keymaps for the new commands. Since the new commands are all about moving in a specific direction between panes, use the up, down, left, and right keys in the keymaps. - Change the keymaps for the existing commands (since the new commands for moving left and right are now using the old keymaps for moving to the previous and next pane respectively). Use "p" instead of "left" in the keymap for focusing the *p*revious pane. Use "n" instead of "right" in the keymap for focusing the *n*ext pane.
161 lines
5.3 KiB
Plaintext
161 lines
5.3 KiB
Plaintext
'body':
|
|
# Apple specific
|
|
'cmd-q': 'application:quit'
|
|
'cmd-h': 'application:hide'
|
|
'cmd-alt-h': 'application:hide-other-applications'
|
|
'cmd-m': 'application:minimize'
|
|
'alt-cmd-ctrl-m': 'application:zoom'
|
|
|
|
'ctrl-p': 'core:move-up'
|
|
'ctrl-n': 'core:move-down'
|
|
'ctrl-b': 'core:move-left'
|
|
'ctrl-f': 'core:move-right'
|
|
'ctrl-P': 'core:select-up'
|
|
'ctrl-N': 'core:select-down'
|
|
'ctrl-F': 'core:select-right'
|
|
'ctrl-B': 'core:select-left'
|
|
'ctrl-h': 'core:backspace'
|
|
'ctrl-d': 'core:delete'
|
|
|
|
# Atom Specific
|
|
'cmd-O': 'application:open-dev'
|
|
'cmd-alt-ctrl-s': 'application:run-all-specs'
|
|
'enter': 'core:confirm'
|
|
'escape': 'core:cancel'
|
|
'up': 'core:move-up'
|
|
'down': 'core:move-down'
|
|
'left': 'core:move-left'
|
|
'right': 'core:move-right'
|
|
'ctrl-alt-cmd-l': 'window:reload'
|
|
'alt-cmd-i': 'window:toggle-dev-tools'
|
|
'cmd-alt-ctrl-p': 'window:run-package-specs'
|
|
|
|
# Sublime Parity
|
|
'cmd-,': 'application:show-settings'
|
|
'cmd-N': 'application:new-window'
|
|
'cmd-W': 'window:close'
|
|
'cmd-o': 'application:open'
|
|
'cmd-T': 'pane:reopen-closed-item'
|
|
'cmd-n': 'application:new-file'
|
|
'cmd-s': 'core:save'
|
|
'cmd-S': 'core:save-as'
|
|
'cmd-alt-s': 'window:save-all'
|
|
'cmd-w': 'core:close'
|
|
'cmd-ctrl-f': 'window:toggle-full-screen'
|
|
'cmd-z': 'core:undo'
|
|
'cmd-Z': 'core:redo'
|
|
'cmd-y': 'core:redo'
|
|
'cmd-x': 'core:cut'
|
|
'cmd-c': 'core:copy'
|
|
'cmd-v': 'core:paste'
|
|
'shift-up': 'core:select-up'
|
|
'shift-down': 'core:select-down'
|
|
'shift-left': 'core:select-left'
|
|
'shift-right': 'core:select-right'
|
|
'delete': 'core:delete'
|
|
'pageup': 'core:page-up'
|
|
'pagedown': 'core:page-down'
|
|
'backspace': 'core:backspace'
|
|
'shift-backspace': 'core:backspace'
|
|
'cmd-up': 'core:move-to-top'
|
|
'cmd-down': 'core:move-to-bottom'
|
|
'cmd-shift-up': 'core:select-to-top'
|
|
'cmd-shift-down': 'core:select-to-bottom'
|
|
'cmd-{': 'pane:show-previous-item'
|
|
'cmd-}': 'pane:show-next-item'
|
|
'cmd-alt-left': 'pane:show-previous-item'
|
|
'cmd-alt-right': 'pane:show-next-item'
|
|
'cmd-=': 'window:increase-font-size'
|
|
'cmd-+': 'window:increase-font-size'
|
|
'cmd--': 'window:decrease-font-size'
|
|
|
|
'cmd-k up': 'pane:split-up' # Atom Specific
|
|
'cmd-k down': 'pane:split-down' # Atom Specific
|
|
'cmd-k left': 'pane:split-left' # Atom Specific
|
|
'cmd-k right': 'pane:split-right' # Atom Specific
|
|
'cmd-k cmd-w': 'pane:close' # Atom Specific
|
|
'cmd-k alt-cmd-w': 'pane:close-other-items' # Atom Specific
|
|
'cmd-k cmd-p': 'window:focus-previous-pane'
|
|
'cmd-k cmd-n': 'window:focus-next-pane'
|
|
'cmd-k cmd-up': 'window:focus-pane-above'
|
|
'cmd-k cmd-down': 'window:focus-pane-below'
|
|
'cmd-k cmd-left': 'window:focus-pane-on-left'
|
|
'cmd-k cmd-right': 'window:focus-pane-on-right'
|
|
'cmd-1': 'pane:show-item-1'
|
|
'cmd-2': 'pane:show-item-2'
|
|
'cmd-3': 'pane:show-item-3'
|
|
'cmd-4': 'pane:show-item-4'
|
|
'cmd-5': 'pane:show-item-5'
|
|
'cmd-6': 'pane:show-item-6'
|
|
'cmd-7': 'pane:show-item-7'
|
|
'cmd-8': 'pane:show-item-8'
|
|
'cmd-9': 'pane:show-item-9'
|
|
|
|
'.editor':
|
|
# Apple Specific
|
|
'cmd-backspace': 'editor:backspace-to-beginning-of-line'
|
|
'cmd-delete': 'editor:backspace-to-beginning-of-line'
|
|
'ctrl-A': 'editor:select-to-first-character-of-line'
|
|
'ctrl-E': 'editor:select-to-end-of-line'
|
|
'cmd-left': 'editor:move-to-first-character-of-line'
|
|
'cmd-right': 'editor:move-to-end-of-screen-line'
|
|
'cmd-shift-left': 'editor:select-to-first-character-of-line'
|
|
'cmd-shift-right': 'editor:select-to-end-of-line'
|
|
'alt-backspace': 'editor:backspace-to-beginning-of-word'
|
|
'alt-delete': 'editor:delete-to-end-of-word'
|
|
'ctrl-a': 'editor:move-to-beginning-of-line'
|
|
'ctrl-e': 'editor:move-to-end-of-line'
|
|
'ctrl-k': 'editor:cut-to-end-of-line'
|
|
|
|
# Atom Specific
|
|
'ctrl-W': 'editor:select-word'
|
|
|
|
# Sublime Parity
|
|
'cmd-a': 'core:select-all'
|
|
'cmd-alt-p': 'editor:log-cursor-scope'
|
|
'cmd-k cmd-u': 'editor:upper-case'
|
|
'cmd-k cmd-l': 'editor:lower-case'
|
|
'cmd-l': 'editor:select-line'
|
|
|
|
'.workspace .editor:not(.mini)':
|
|
# Atom specific
|
|
'alt-cmd-z': 'editor:checkout-head-revision'
|
|
'cmd-<': 'editor:scroll-to-cursor'
|
|
'alt-cmd-ctrl-f': 'editor:fold-selection'
|
|
'cmd-=': 'editor:auto-indent'
|
|
|
|
# Sublime Parity
|
|
'cmd-enter': 'editor:newline-below'
|
|
'cmd-shift-enter': 'editor:newline-above'
|
|
'cmd-]': 'editor:indent-selected-rows'
|
|
'cmd-[': 'editor:outdent-selected-rows'
|
|
'ctrl-cmd-up': 'editor:move-line-up'
|
|
'ctrl-cmd-down': 'editor:move-line-down'
|
|
'cmd-/': 'editor:toggle-line-comments'
|
|
'cmd-j': 'editor:join-line'
|
|
'cmd-D': 'editor:duplicate-line'
|
|
'cmd-L': 'editor:split-selections-into-lines'
|
|
|
|
'cmd-alt-[': 'editor:fold-current-row'
|
|
'cmd-alt-]': 'editor:unfold-current-row'
|
|
'cmd-alt-{': 'editor:fold-all' # Atom Specific
|
|
'cmd-alt-}': 'editor:unfold-all' # Atom Specific
|
|
'cmd-k cmd-0': 'editor:unfold-all'
|
|
'cmd-k cmd-1': 'editor:fold-at-indent-level-1'
|
|
'cmd-k cmd-2': 'editor:fold-at-indent-level-2'
|
|
'cmd-k cmd-3': 'editor:fold-at-indent-level-3'
|
|
'cmd-k cmd-4': 'editor:fold-at-indent-level-4'
|
|
'cmd-k cmd-5': 'editor:fold-at-indent-level-5'
|
|
'cmd-k cmd-6': 'editor:fold-at-indent-level-6'
|
|
'cmd-k cmd-7': 'editor:fold-at-indent-level-7'
|
|
'cmd-k cmd-8': 'editor:fold-at-indent-level-8'
|
|
'cmd-k cmd-9': 'editor:fold-at-indent-level-9'
|
|
|
|
# allow standard input fields to work correctly
|
|
'body .native-key-bindings':
|
|
'cmd-z': 'native!'
|
|
'cmd-Z': 'native!'
|
|
'cmd-x': 'native!'
|
|
'cmd-c': 'native!'
|
|
'cmd-v': 'native!'
|