Travis
Travis

Reputation: 14486

How to set keybinding to move (rearrange) tabs in Atom?

I'm trying to setup keybinding for physically moving my current tab, either right or left of other tabs (rather than click and drag to rearrange them).

I know user defined keybindings are added to ~/.atom/keymap.cson, I'm just having trouble determining the command as I don't see it present in the default keybindings.

Upvotes: 12

Views: 2241

Answers (4)

Vaibhav Desai
Vaibhav Desai

Reputation: 2402

command + [ = to move the block left by 1 tab

command + ] = to move the block right by 1 tab

Upvotes: -1

Travis
Travis

Reputation: 14486

I found that Atom has a native keybinding set for this under as:

ctrl + shift + : pane:move-item-left

ctrl + shift + : pane:move-item-left

Upvotes: 22

vaughan
vaughan

Reputation: 7482

The native bindings weren't showing up in Settings > Keybindings. Here they are:

'atom-workspace atom-text-editor:not([mini])':
  'ctrl-alt-]': 'window:move-active-item-to-pane-on-right'
  'ctrl-alt-[': 'window:move-active-item-to-pane-on-left'

Upvotes: 1

AtomTips
AtomTips

Reputation: 1209

You can take a look at Tab Move Key package. It is simple, you can use alt page up and alt + page down for moving tabs around.

Upvotes: 0

Related Questions