Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Move tab from one column to another in Sublime Text using only keys

Does anyone know this shortcut? I'm looking for it online, but I can't seem to find it

like image 856
ForgetfulFellow Avatar asked Jul 31 '14 17:07

ForgetfulFellow


People also ask

How do I switch between columns in Sublime Text?

You can also use Ctrl + K , Ctrl + -> and Ctrl + K , Ctrl + <- . Glad to help.

How do I switch tabs in Sublime Text?

Use Cmd (Mac) or Alt (Windows) with the number keys 0–9 to switch between tabs in Sublime Text. For example hit Cmd–2 (Mac) or Alt–2 (Windows) to switch to the second tab. You can also use Ctrl–Tab (Mac and Windows) to cycle through your tabs.

How do I move multiple lines in Sublime Text?

You can use Ctrl and Alt with this too. Shift+Right mouse button is an alternative way to initial a column select. Dragging in the gutter (where the line numbers are), will select entire lines at once.

How do I select a tab in text?

If you mean that you want to indent the selected text paragraph(s) from the left, you can use Ctrl+M which indents to the next tab stop. You can use the shortcut repeatedly, if you wish. Ctrl+Shift+M outdents, also step by step, until you reach the left margin.


1 Answers

To move it is CTRLSHIFT1 to move to Group 0, CTRLSHIFT2 to Group 1, and so on - that's on Linux, Windows, and OSX.

Text buffers can also be moved to their neighbouring groups:

  • Linux, Windows:
    • CTRLk + CTRLSHIFTLEFT
    • CTRLk + CTRLSHIFTRIGHT
  • OSX
    • SUPERk + SUPERSHIFTLEFT
    • SUPERk + SUPERSHIFTRIGHT

Here's the whole group section of my Default (Linux).sublime-keymap - the Windows keys are all exactly the same, while the OSX keys are the same in the top section but differ in the bottom section, below where I have placed an explanatory comment.

// The keys BELOW are for Linux, Windows, and OSX.  { "keys": ["ctrl+1"], "command": "focus_group", "args": { "group": 0 } }, { "keys": ["ctrl+2"], "command": "focus_group", "args": { "group": 1 } }, { "keys": ["ctrl+3"], "command": "focus_group", "args": { "group": 2 } }, { "keys": ["ctrl+4"], "command": "focus_group", "args": { "group": 3 } }, { "keys": ["ctrl+5"], "command": "focus_group", "args": { "group": 4 } }, { "keys": ["ctrl+6"], "command": "focus_group", "args": { "group": 5 } }, { "keys": ["ctrl+7"], "command": "focus_group", "args": { "group": 6 } }, { "keys": ["ctrl+8"], "command": "focus_group", "args": { "group": 7 } }, { "keys": ["ctrl+9"], "command": "focus_group", "args": { "group": 8 } }, { "keys": ["ctrl+shift+1"], "command": "move_to_group", "args": { "group": 0 } }, { "keys": ["ctrl+shift+2"], "command": "move_to_group", "args": { "group": 1 } }, { "keys": ["ctrl+shift+3"], "command": "move_to_group", "args": { "group": 2 } }, { "keys": ["ctrl+shift+4"], "command": "move_to_group", "args": { "group": 3 } }, { "keys": ["ctrl+shift+5"], "command": "move_to_group", "args": { "group": 4 } }, { "keys": ["ctrl+shift+6"], "command": "move_to_group", "args": { "group": 5 } }, { "keys": ["ctrl+shift+7"], "command": "move_to_group", "args": { "group": 6 } }, { "keys": ["ctrl+shift+8"], "command": "move_to_group", "args": { "group": 7 } }, { "keys": ["ctrl+shift+9"], "command": "move_to_group", "args": { "group": 8 } }, { "keys": ["ctrl+0"], "command": "focus_side_bar" },  // The keys BELOW are for Linux and Windows only. // // The OSX keys all use 'super' instead of 'ctrl'. // // e.g. In the top command use: ["super+k", "super+up"] // e.g. In the bottom command use: ["super+k", "super+shift+right"]  { "keys": ["ctrl+k", "ctrl+up"], "command": "new_pane" }, { "keys": ["ctrl+k", "ctrl+shift+up"], "command": "new_pane", "args": {"move": false} }, { "keys": ["ctrl+k", "ctrl+down"], "command": "close_pane" }, { "keys": ["ctrl+k", "ctrl+left"], "command": "focus_neighboring_group", "args": {"forward": false} }, { "keys": ["ctrl+k", "ctrl+right"], "command": "focus_neighboring_group" }, { "keys": ["ctrl+k", "ctrl+shift+left"], "command": "move_to_neighboring_group", "args": {"forward": false} }, { "keys": ["ctrl+k", "ctrl+shift+right"], "command": "move_to_neighboring_group" }, 

Hope this helps.

like image 183
mattst Avatar answered Sep 23 '22 16:09

mattst