Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
New Atom Pane Commands
// Existing commands that used to be 'pane:split-*'
'pane:split-left-and-copy-active-item'
'pane:split-right-and-copy-active-item'
'pane:split-up-and-copy-active-item'
'pane:split-down-and-copy-active-item'
// New commands to create splits
'pane:split-left'
'pane:split-right'
'pane:split-up'
'pane:split-down'
'pane:split-left-and-move-active-item'
'pane:split-right-and-move-active-item'
'pane:split-up-and-move-active-item'
'pane:split-down-and-move-active-item'
// New commands to manage pane items in splits
'window:move-active-item-to-pane-above'
'window:move-active-item-to-pane-below'
'window:move-active-item-to-pane-on-left'
'window:move-active-item-to-pane-on-right'
'window:copy-active-item-to-pane-above'
'window:copy-active-item-to-pane-below'
'window:copy-active-item-to-pane-on-left'
'window:copy-active-item-to-pane-on-right'
# For OS X
'.platform-darwin':
# Create an empty split pane
'cmd-k left': 'pane:split-left'
'cmd-k right': 'pane:split-right'
'cmd-k up': 'pane:split-up'
'cmd-k down': 'pane:split-down'
# Create a split pane with the current pane item moved into it
'cmd-k m left': 'pane:split-left-and-move-active-item'
'cmd-k m right': 'pane:split-right-and-move-active-item'
'cmd-k m up': 'pane:split-up-and-move-active-item'
'cmd-k m down': 'pane:split-down-and-move-active-item'
# Create a split pane with the current pane item duplicated
'cmd-k d left': 'pane:split-left-and-copy-active-item'
'cmd-k d right': 'pane:split-right-and-copy-active-item'
'cmd-k d up': 'pane:split-up-and-copy-active-item'
'cmd-k d down': 'pane:split-down-and-copy-active-item'
# Move the current pane item to the target split pane
'cmd-ctrl-shift-left': 'window:move-active-item-to-pane-on-left'
'cmd-ctrl-shift-right': 'window:move-active-item-to-pane-on-right'
'cmd-ctrl-shift-up': 'window:move-active-item-to-pane-above'
'cmd-ctrl-shift-down': 'window:move-active-item-to-pane-below'
# For Windows and Linux
'.platform-win32, .platform-linux':
# Create an empty split pane
'ctrl-k left': 'pane:split-left'
'ctrl-k right': 'pane:split-right'
'ctrl-k up': 'pane:split-up'
'ctrl-k down': 'pane:split-down'
# Create a split pane with the current pane item moved into it
'ctrl-k m left': 'pane:split-left-and-move-active-item'
'ctrl-k m right': 'pane:split-right-and-move-active-item'
'ctrl-k m up': 'pane:split-up-and-move-active-item'
'ctrl-k m down': 'pane:split-down-and-move-active-item'
# Create a split pane with the current pane item duplicated
'ctrl-k d left': 'pane:split-left-and-copy-active-item'
'ctrl-k d right': 'pane:split-right-and-copy-active-item'
'ctrl-k d up': 'pane:split-up-and-copy-active-item'
'ctrl-k d down': 'pane:split-down-and-copy-active-item'
# Move the current pane item to the target split pane
'alt-ctrl-shift-left': 'window:move-active-item-to-pane-on-left'
'alt-ctrl-shift-right': 'window:move-active-item-to-pane-on-right'
'alt-ctrl-shift-up': 'window:move-active-item-to-pane-above'
'alt-ctrl-shift-down': 'window:move-active-item-to-pane-below'
@sys13

This comment has been minimized.

Copy link

@sys13 sys13 commented Mar 19, 2016

In Ubuntu alt-ctrl-shift will move a window to another workspace.

@t9md

This comment has been minimized.

Copy link

@t9md t9md commented Mar 21, 2016

Great!! I like especially sending pane item to adjacent pane feature like window:move-active-item-to-pane-on-left.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.