nmurthy / tab-shifter

Plugin for IntelliJ IDEA to move and split editor tabs

Home Page:https://plugins.jetbrains.com/plugin/7475

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status

Tab Shifter

Tab Shifter is a plugin for IntelliJ IDEA with a bunch of actions to move tabs between editor splits and resize splits
Actions are added to to Main Menu -> Window -> Tab Shifter.

OSX shortcuts:

  • ctrl + alt + ] - move tab to the right split (or create new split if it's the rightmost split)
  • ctrl + alt + [ - move tab to the left split
  • ctrl + alt + P - move tab to the split above
  • ctrl + alt + ' - move tab to the split below (or create new split if it's the bottom split)
  • alt + shift + [ - stretch split left
  • alt + shift + ] - stretch split right
  • alt + shift + M - maximize/restore split

Other OS shortcuts:

  • alt + shift + ] - move tab right
  • alt + shift + [ - move tab left
  • alt + shift + P - move tab up
  • alt + shift + ' - move tab down
  • ctrl + alt + [ - stretch split left
  • ctrl + alt + ] - stretch split right
  • alt + shift + M - maximize/restore split

To move focus between splits:

  • ctrl+alt+shift+] - right
  • ctrl+alt+shift+[ - left
  • ctrl+alt+shift+P - up
  • ctrl+alt+shift+; - down
  • ctrl + alt + . - (built-in action) recommended binding for Goto Next Splitter action

Obviously, the above shortcuts can be changed in IDE Settings -> Keymap.

Why?

Basically, this plugin treats splitting as "take current editor and move it to the next split window". If there is no split window, then create new one.

There are built-in actions to move tabs (see Main Menu -> Window -> Editor Tabs -> Move Right/Down). Unfortunately, they don't do the right thing. For example:

  • open several tabs in editor
  • use built-in action to move tab right (Main Menu -> Window -> Editor Tabs -> Move Right); editor will be split into two and the tab will move to the right editor.
  • move back to leftmost editor and use built-in action to move tab right; leftmost editor will be split into two editors again (three editors in total) the tab will move into the middle editor. Desired behavior is to recognize that there is already editor on the right side and move tab into it.

If you like the idea, please vote for this issue on youtrack.

Credits

Plugin idea by Sandro Mancuso at SoCraTes UK 2013. Created using LivePlugin.

About

Plugin for IntelliJ IDEA to move and split editor tabs

https://plugins.jetbrains.com/plugin/7475


Languages

Language:Java 74.9%Language:Groovy 25.1%