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
  • 11 years ago
  • 2 hours ago
  • 11 years ago

Installs

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

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.