SelectionTools
Some helpful commands for Sublime Text 2. (Multi quick find all, align indentation, reverse selection direction, shorten selection)
Details
Installs
- Total 1K
- Win 791
- Mac 322
- Linux 238
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 | 1 | 0 | 0 | 0 | 1 | 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 | 1 | 0 | 0 | 0 | 0 |
Mac | 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 | 1 | 0 | 0 | 0 | 1 | 0 | 1 | 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
Sublime SelectionTools
Some helpful commands for Sublime Text 2.
Commands
Multi Quick Find All
- Given some initially selected strings, selects all occurrances of any of those strings.
- Like Sublime's built-in “Quick Find All” command, but works with multiple initial selections.
Reverse Selection Direction
- Toggles the cursor being at the front or the back of the selection.
Align Indentation
- Given a multi-line selection, all lines except the first will be reindented to the character column of the beginning of the selection.
- You can quickly indent a block to an exact column.
- Handy when used together with the command “Expand Selection to Brackets”.
- See screenshot
Shorten Selection
- Shortens the selection by one character both at the front and the back.
- This can be useful when expanding the selection to quotes or brackets. Sometimes you don't want to select the quotes, or the lines containing the brackets.
To install
Via PackageControl
If you have the PackageControl plugin installed, you can use that to install SelectionTools
.
Just type cmd-shift-p
(ctrl-shift-p
on win/linux) to bring up the command pallate then type install
and pick Package Control: Install Package
from the dropdown.
Then type SelectionTools
and choose the SelectionTools plugin from the dropdown. Hit enter
and it will install.
Manually
Manual installation should be as easy as cloning this git repository into your Sublime Packages
directory. On OSX:
cd ~/Application\ Support/Sublime\ Text\ 2/Packages
git clone git://github.com/simonrad/sublime-selection-tools.git SelectionTools
To use
Add your desired key bindings to your User sublime-keymap file. An example keymap file is provided.