SelectionTools
Some helpful commands for Sublime Text 2. (Multi quick find all, align indentation, reverse selection direction, shorten selection)
Details
Installs
- Total 1K
- Win 841
- Mac 346
- Linux 249
| Jun 10 | Jun 9 | Jun 8 | Jun 7 | Jun 6 | Jun 5 | Jun 4 | Jun 3 | Jun 2 | Jun 1 | May 31 | May 30 | May 29 | May 28 | May 27 | May 26 | May 25 | May 24 | May 23 | May 22 | May 21 | May 20 | May 19 | May 18 | May 17 | May 16 | May 15 | May 14 | May 13 | May 12 | May 11 | May 10 | May 9 | May 8 | May 7 | May 6 | May 5 | May 4 | May 3 | May 2 | May 1 | Apr 30 | Apr 29 | Apr 28 | Apr 27 | |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Windows | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 0 | 1 | 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 |
| Mac | 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 | 1 | 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 | 0 | 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.