ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Expand Group

by evanliomain ST3

Sublime Text 3 Plugin to switch and resize 2-Columns layout or 4-Grid layout fastest as possible.

Labels coding, group, expand

Details

  • 1.1.0
  • github.​com
  • github.​com
  • 10 years ago
  • 39 minutes ago
  • 10 years ago

Installs

  • Total 799
  • Win 483
  • Mac 163
  • Linux 153
Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29 Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13
Windows 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

ExpandGroup

Sublime Text 3 Plugin to switch and resize 2-Columns layout or 4-Grid layout fastest as possible.

Install

With the Package Control plugin

  • Install Package Control
  • restart ST and bring up the Command Palette :
    • Command+Shift+P on OS X,
    • Control+Shift+P on Linux/Windows.
  • Select “Package Control: Install Package”,
  • Wait while Package Control fetches the latest package list, then select Expand Group when the list appears.

The advantage of using this method is that Package Control will automatically keep Expand Group up to date with the latest version.

Without Git

  • Download the latest source from GitHub
  • Copy the sublime-ExpandGroup folder to your Sublime Text “Packages” directory.

With Git

The “Packages” directory is located at:

|OS|Path| |-|-| |OS X|~/Library/Application Support/Sublime Text 2/Packages/| |Linux|~/.config/sublime-text-2/Packages/| |Windows|%APPDATA%/Sublime Text 2/Packages/|

Keys

Pressing Alt+left or Alt+right or Alt+up or Alt+down will switch focus to the respective column or cell and resize it according to the configured ratio (which by default is “4:1” and “1:4”).

If you add shift to your shortcut, it will move the current editing file in the target group.

So if you are a full-keyboard coder or a mouse lover, this plugin got you covered.

Warning, the Alt+up and Alt+down may be in conflict with another plugin, such as “Emmet”. Please set this keybinding into the “Key Bindings - User” file.

What it does

2 columns layout

--------------------                  -------------------- 
|             |    |                  |   |              | 
|             |    |                  |   |              | 
|             |    |    alt+left      |   |              | 
|             |    |    <=======      |   |              | 
|             |    |                  |   |              | 
|             |    |    alt+right     |   |              | 
|             |    |    =======>      |   |              | 
--------------------                  --------------------

2 rows layout

--------------------    
|                  |    
|                  |    
|                  |    
|                  |    
|                  |    
--------------------    
|                  |    
--------------------    
     /\   alt+down
     ||     ||
   alt+up   \/
--------------------  
|                  |  
--------------------  
|                  |  
|                  |  
|                  |  
|                  |  
|                  |  
--------------------

4 grid layout

--------------------                  -------------------- 
|             |    |                  |   |              | 
|             |    |    alt+left      |   |              | 
|             |    |    <=======      |   |              | 
|             |    |                  |   |              | 
|             |    |    alt+right     |   |              | 
--------------------                  -------------------- 
|             |    |    =======>      |   |              | 
--------------------                  -------------------- 
                        /\   alt+down
                        ||     ||
                      alt+up   \/
--------------------                  -------------------- 
|             |    |                  |   |              | 
--------------------                  -------------------- 
|             |    |    alt+left      |   |              | 
|             |    |    <=======      |   |              | 
|             |    |                  |   |              | 
|             |    |    alt+right     |   |              | 
|             |    |    =======>      |   |              | 
--------------------                  --------------------

Notes

Numbers are treated as a ratio, so 50:50 is identical to 1:1.

For example:

50:50
(2 columns, equal width. 1 row)

--------------------
|        |         |
|        |         |
|        |         |
|        |         |
|        |         |
|        |         |
--------------------

1:4
(2 columns, one four times the width of the other. 1 row)

--------------------
|      |           |
|      |           |
|      |           |
|      |           |
|      |           |
--------------------

Credits

Created by

Evan Liomain