Skip to content

Instantly share code, notes, and snippets.

@sethlopezme
Last active October 8, 2020 00:58
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save sethlopezme/42fb0e8a2b72ea34bb2e to your computer and use it in GitHub Desktop.
Save sethlopezme/42fb0e8a2b72ea34bb2e to your computer and use it in GitHub Desktop.
My Atom keymap for focusing and splitting panes, and moving pane items. Based on the shortcuts from the Origami (https://packagecontrol.io/packages/Origami) package for Sublime Text.
'.platform-darwin':
# focus pane
'cmd-k left': 'window:focus-pane-on-left'
'cmd-k right': 'window:focus-pane-on-right'
'cmd-k up': 'window:focus-pane-above'
'cmd-k down': 'window:focus-pane-below'
# split pane
'cmd-k cmd-left': 'pane:split-left'
'cmd-k cmd-right': 'pane:split-right'
'cmd-k cmd-up': 'pane:split-up'
'cmd-k cmd-down': 'pane:split-down'
# move pane item
'cmd-k shift-left': 'window:move-active-item-to-pane-on-left'
'cmd-k shift-right': 'window:move-active-item-to-pane-on-right'
'cmd-k shift-up': 'window:move-active-item-to-pane-above'
'cmd-k shift-down': 'window:move-active-item-to-pane-below'
'.platform-win32, .platform-linux':
# focus pane
'ctrl-k left': 'window:focus-pane-on-left'
'ctrl-k right': 'window:focus-pane-on-right'
'ctrl-k up': 'window:focus-pane-above'
'ctrl-k down': 'window:focus-pane-below'
# split pane
'ctrl-k ctrl-left': 'pane:split-left'
'ctrl-k ctrl-right': 'pane:split-right'
'ctrl-k ctrl-up': 'pane:split-up'
'ctrl-k ctrl-down': 'pane:split-down'
# move pane item
'ctrl-k shift-left': 'window:move-active-item-to-pane-on-left'
'ctrl-k shift-right': 'window:move-active-item-to-pane-on-right'
'ctrl-k shift-up': 'window:move-active-item-to-pane-above'
'ctrl-k shift-down': 'window:move-active-item-to-pane-below'
@fabioespinosa
Copy link

Line 13 add 'w' to window please 👍

@daveknapik
Copy link

Line 13 add 'w' to window please 👍

Line 30 too please. Thanks!

@sethlopezme
Copy link
Author

Line 13 add 'w' to window please 👍

Line 30 too please. Thanks!

Ha, I'm surprised people are actually finding this! Unfortunately, I missed the comment left in 2017, but you will be happy to know that I've finally updated the gist, @daveknapik!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment