Skip to content

Instantly share code, notes, and snippets.

@bdthinh
Forked from sethlopezme/keymap.cson
Created November 17, 2016 17:32
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save bdthinh/d01ce3ff72ddeb1edf7b09ca1fed7f0b to your computer and use it in GitHub Desktop.
Save bdthinh/d01ce3ff72ddeb1edf7b09ca1fed7f0b 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