Expand Group
Sublime Text 3 Plugin to switch and resize 2-Columns layout or 4-Grid layout fastest as possible.
Details
Installs
- Total 804
- Win 486
- Mac 164
- Linux 154
Jul 27 | Jul 26 | Jul 25 | Jul 24 | Jul 23 | Jul 22 | Jul 21 | Jul 20 | Jul 19 | Jul 18 | Jul 17 | Jul 16 | Jul 15 | Jul 14 | Jul 13 | Jul 12 | Jul 11 | Jul 10 | Jul 9 | Jul 8 | Jul 7 | Jul 6 | Jul 5 | Jul 4 | Jul 3 | Jul 2 | Jul 1 | Jun 30 | Jun 29 | Jun 28 | Jun 27 | Jun 26 | Jun 25 | Jun 24 | Jun 23 | Jun 22 | Jun 21 | Jun 20 | Jun 19 | Jun 18 | Jun 17 | Jun 16 | Jun 15 | Jun 14 | Jun 13 | |
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Windows | 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 | 1 | 0 | 0 | 0 | 0 | 0 | 0 | 0 |
Mac | 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 | 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 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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
Clone the repository in your Sublime Text “Packages” directory:
git clone https://github.com/evanliomain/sublime-ExpandGroup.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