Switch panes in Atom without cmd/ctrl + k?

Hedge picture Hedge · Oct 22, 2015 · Viewed 14.7k times · Source

I'd like to be able to switch between my Atom panes anytime without having to press CMD + K first before being able to switch via CMD + Up/Down/Left/Right.

Is this somehow possible? I added this to the keymap but it doesn't work:

'atom-workspace':
  'cmd-up':    'window:focus-pane-above'
  'cmd-down':  'window:focus-pane-below'
  'cmd-left':  'window:focus-pane-on-left'
  'cmd-right': 'window:focus-pane-on-right'

Answer

uberteck picture uberteck · Jan 6, 2017

This looks old, but incase anyone else stumbles on this - using the .editor context works for me:

'.editor':
  'ctrl-alt-cmd-shift-right': 'window:focus-pane-on-right'
  'ctrl-alt-cmd-shift-left': 'window:focus-pane-on-left'
  'ctrl-alt-cmd-shift-up': 'window:focus-pane-above'
  'ctrl-alt-cmd-shift-down': 'window:focus-pane-below'

Also, I wonder if using cmd-left/right would also cause an issue - on OSX cmd + left/right is a default OS shortcut for HOME / END (beginning / end of line), that might also cause a conflict.