Skip to content

Instantly share code, notes, and snippets.

@gracefulife
Forked from sethlopezme/keymap.cson
Created August 31, 2017 08:54
Show Gist options
  • Save gracefulife/5c3808de0be6b58f7ae87552928dc466 to your computer and use it in GitHub Desktop.
Save gracefulife/5c3808de0be6b58f7ae87552928dc466 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': 'indow: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': 'indow: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'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment