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
  • 54 minutes ago
  • 11 years ago

Installs

  • Total 1K
  • Win 787
  • Mac 317
  • Linux 236
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 Apr 26 Apr 25 Apr 24 Apr 23 Apr 22 Apr 21 Apr 20 Apr 19 Apr 18 Apr 17 Apr 16 Apr 15 Apr 14 Apr 13 Apr 12 Apr 11 Apr 10 Apr 9 Apr 8 Apr 7 Apr 6 Apr 5 Apr 4 Apr 3 Apr 2 Apr 1 Mar 31 Mar 30 Mar 29
Windows 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 1 0 0 2 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 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 4 0
Linux 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 0 0 0 1 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.