Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Switch panes in Atom without cmd/ctrl + k?

Tags:

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' 
like image 452
Hedge Avatar asked Oct 22 '15 08:10

Hedge


People also ask

How do I change the panes in an atom?

You can split any editor pane horizontally or vertically by using Ctrl+K Up/Down/Left/Right where the direction key is the direction to split the pane. Once you have a split pane, you can switch between them with Ctrl+K Ctrl+Up/Down/Left/Right where the direction is the direction the focus should move to.

How do I get rid of split screen in atom?

Using keyboard shortcuts You can close an active split pane with cmd / ctrl + k then cmd / ctrl + w .

How do I go back in atom editor?

An Atom Editor package that allows navigating cursor history across multiple files, similar to jump back and jump forward in Sublime Text. Press alt+- to navigate back or alt+shift+- to navigate forward. History entries are recorded when the cursor moves to a row other than the previous row or its surrounding rows.


2 Answers

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.

like image 103
uberteck Avatar answered Oct 25 '22 18:10

uberteck


'body':   'ctrl-right': 'window:focus-pane-on-right'   'ctrl-left': 'window:focus-pane-on-left' 

This worked for left/right. I'm still trying to figure up and down tho

like image 32
Oscar Godson Avatar answered Oct 25 '22 18:10

Oscar Godson