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

Selection​Tools

by simonrad ALL

Some helpful commands for Sublime Text 2. (Multi quick find all, align indentation, reverse selection direction, shorten selection)

Details

  • 2013.06.03.22.36.23
  • github.​com
  • github.​com
  • 12 years ago
  • 2 hours ago
  • 12 years ago

Installs

  • Total 1K
  • Win 801
  • Mac 328
  • Linux 240
Dec 22 Dec 21 Dec 20 Dec 19 Dec 18 Dec 17 Dec 16 Dec 15 Dec 14 Dec 13 Dec 12 Dec 11 Dec 10 Dec 9 Dec 8 Dec 7 Dec 6 Dec 5 Dec 4 Dec 3 Dec 2 Dec 1 Nov 30 Nov 29 Nov 28 Nov 27 Nov 26 Nov 25 Nov 24 Nov 23 Nov 22 Nov 21 Nov 20 Nov 19 Nov 18 Nov 17 Nov 16 Nov 15 Nov 14 Nov 13 Nov 12 Nov 11 Nov 10 Nov 9 Nov 8
Windows 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 0 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 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 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

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.