Switching tabs with keyboard


#1

Sublime Text switches tabs with control+tab and control+shift+tab as do all Mac OS native apps.

Are there key bindings that I can add to my keymap to do this?

I would be happy to make a package and push it to github for others.


#2

You can get this behavior by adding the following to your keymap:

'body':
  'ctrl-tab': 'pane:show-next-item'
  'ctrl-shift-tab': 'pane:show-previous-item'

#3

Just a heads up, most native OS X apps actually use ⇧⌘[ and ⇧⌘] for switching to the next and previous tabs respectively. Atom supports that standard keybinding out of the box.


#4

Thanks. Just what I was looking for.


#5

In Sublime Text ctrl+tab switches between the most recently used tabs. “show-next-item” is not the same.


#6

I have never used ⌘{ or ⌘} to switch between tabs. I figured since it was based on webkit it would work like chrome and ⌘tab would work. Said it doesn’t. at least ⌘1-9 work


#7

I made a plugin to scatch that itch: https://atom.io/packages/tab-history
It’s my first plugin, probably a bit buggy.


#8

We really only need one of these topics. Closing this one in favor of the longer one:


#9