Make Command+[, Command+] hotkeys shift tabs work no matter which UI element is in focus


#1

Please allow the standard Mac hotkeys Command+[, Command+] to navigate between tabs no matter which Atom UI elements are in focus. Currently, Atom breaks this feature when a text field (e.g. Settings option) is selected.


#2

According to Appleā€™s documentation, Cmd+[ and Cmd+] are for Back and Forward navigation, not switching tabs.

Nevertheless, you should be able to add this yourself by adding the following to your keymap.cson:

'body':
  'cmd-[': 'pane:show-previous-item'
  'cmd-]': 'pane:show-next-item'
'atom-workspace atom-text-editor:not([mini])':
  'cmd-[': 'pane:show-previous-item'
  'cmd-]': 'pane:show-next-item'

I added it to mine and it works just fine.


#3

Apologies, I mistyped. The Command+{, Command+} (Command+Shift+ [ / ]) keys are used for tab navigation. The problem is that when focus changes to a text field, such as an option in Atom Settings, or the Find pane, this hotkey pair fails to function until the focus is manually changed back to the current file buffer.


#4

I changed the additions to my keymap.cson to the following and it worked great:

'body':
  'cmd-shift-[': 'pane:show-previous-item'
  'cmd-shift-]': 'pane:show-next-item'
'atom-workspace atom-text-editor:not([mini])':
  'cmd-shift-[': 'pane:show-previous-item'
  'cmd-shift-]': 'pane:show-next-item'

#5

Thanks Lee, works on my machine!