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

Super​Select

by manafire ST2/ST3

Extended Sublime selection capabilities

Details

  • 2014.07.04.18.29.53
  • github.​com
  • github.​com
  • 5 years ago
  • 2 hours ago
  • 7 years ago

Installs

  • Total 1K
  • Win 743
  • OS X 540
  • Linux 194
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 Oct 6 Oct 5
Windows 0 0 0 0 1 1 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
OS X 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 0 0 0 0 0 0 0 1 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

Readme

Source
raw.​githubusercontent.​com

SuperSelect

Extended selection functionality such as select previous match, skip to next(or prev) match, and invert selection.

See this 30 second vid for a brief demo. outdated - missing sequential select demos

Installation

With Package Control:

  1. Run the “Package Control: Install Package” command, find and install SuperSelect plugin.
  2. Restart Sublime (if required)

OR:

  1. Open the Sublime Text 3 Packages folder (change path for ST2 if needed)
    • OS X: ~/Library/Application Support/Sublime Text 3/Packages/
    • Windows: %APPDATA%/Sublime Text 3/Packages/
    • Linux: ~/.Sublime Text 3/Packages/
  2. Clone this repo
  3. Configure your keybindings, if required

Commands

  • expand_prev ⌘+shift+,: Looks backwards and selects the next match of current selection or selects current word if nothing selected.
  • expand_next ⌘+shift+.: Looks forwards and selects the next match of current selection or selects current word if nothing selected.
  • skip_and_select_prev ⌘+shift+alt+,: Skips over current selection (de-selects) and moves backwards to select next match.
  • skip_and_select_next ⌘+shift+alt+.: Skips over current selection (de-selects) and moves forwards to select next match.
  • invert_selections ⌘+shift+i: Inverts current selections, restricted to matching regions.
  • select_sequential_string ⌘+shift+0: Selects other strings resembling the current selection that have trailing digit(s). “Sequential” might be misleading as there is no actual checking for this - I just look for digit(s). (If you have a better name for this, I'd love to hear it.)
  • select_strict_sequential_string ⌘+shift+1: Like select sequential string, but actually checks for proper sequence (I should probably rename that). If you have “Item 5” selected, this will select “Item 6”, “Item 7”, …, excluding regions that don't match the sequence (e.g. if “Item 99” appeared between 6 and 7. Note: Invert selections will invert the selection to 99 currently).

TODO

  • Different colour indicators to show selection end-points. It's easy to get lost once we start skipping.
  • Update video to show 'sequential' selection and 'strict sequential' selection modes.
  • select sequential string