Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 658
Travis Avatar asked Mar 17 '15 17:03

Travis


People also ask

How do I move between tabs in an Atom?

It is simple, you can use alt page up and alt + page down for moving tabs around.

How do you move a block of code in Atom?

In Atom you can just use Ctrl + Up .

Is Atom a good editor?

Looking for a free and open-source code editor? Visual Studio Code and Atom are the two strongest candidates. If you're searching for the perfect code editor, there's a good chance that you've run into both Atom and Visual Studio Code. There are plenty of other editors, but these two are among the most talked about.

How do you move text in Atom?

Drag and drop to move text using the mouse. This mimics the standard behavior of many other editors. Dragging and dropping with the modifier key held will copy the text instead of moving it. You may change the modifier key in the Settings; options are CTRL , ALT , and META (super/Windows/command).


2 Answers

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

like image 58
Travis Avatar answered Sep 28 '22 05:09

Travis


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'
like image 43
vaughan Avatar answered Sep 28 '22 05:09

vaughan