Skip to content

A sublime package that lets you expand your current selection until a specific character, regex, or char-count is encountered.

Notifications You must be signed in to change notification settings

evandroforks/SelectUntil

 
 

Repository files navigation

SelectUntil

Fill a void in your Sublime Text multiple selection capabilities! This plugin allows you to extend each selection until the next instance of a search term, making it super easy to edit multiple pieces of text that are similar but not quite the same enough.

Usage

  • ctrl/alt + shift + s: pulls up an input field, where you can type:

    • search term or [search term]: for each selection, select up to and including the first occurrence of the search term.
    • /regex search/: select through the first occurrence of the regex.
    • {character count}: select forward the given number of characters.
    • -[search term]: select backwards up to and including the search term.
    • -/regex/: backwards regex.
    • -{character count}: select backwards a certain number of characters ({-count} works too).
  • ctrl/alt + shift + s a second time: reverses the search direction.

  • ctrl/alt + shift + r: reverse all selections (so if the insertion point is at the end of the selection, it is moved to the beginning, and vice versa).

On Windows and Linux the default shortcuts use alt. On OSX ctrl is used.

Installation

By Package Control

  1. Download & Install Sublime Text 3 (https://www.sublimetext.com/3)
  2. Go to the menu Tools -> Install Package Control, then, wait few seconds until the installation finishes up
  3. Now, Go to the menu Preferences -> Package Control
  4. Type Add Channel on the opened quick panel and press Enter
  5. Then, input the following address and press Enter
    https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json
    
  6. Go to the menu Tools -> Command Palette... (Ctrl+Shift+P)
  7. Type Preferences: Package Control Settings – User on the opened quick panel and press Enter
  8. Then, find the following setting on your Package Control.sublime-settings file:
    "channels":
    [
        "https://packagecontrol.io/channel_v3.json",
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
    ],
  9. And, change it to the following, i.e., put the https://raw.githubusercontent... line as first:
    "channels":
    [
        "https://raw.githubusercontent.com/evandrocoan/StudioChannel/master/channel.json",
        "https://packagecontrol.io/channel_v3.json",
    ],
    • The https://raw.githubusercontent... line must to be added before the https://packagecontrol.io... one, otherwise, you will not install this forked version of the package, but the original available on the Package Control default channel https://packagecontrol.io...
  10. Now, go to the menu Preferences -> Package Control
  11. Type Install Package on the opened quick panel and press Enter
  12. Then, search for SelectUntil and press Enter

See also:

  1. ITE - Integrated Toolset Environment
  2. Package control docs for details.

Getting SelectUntil

The easiest way to get SelectUntil is with Sublime Package Control. Search for "SelectUntil".

Alternatively you can clone this git repository into your Packages Directory:

git://github.com/xavi-/sublime-selectuntil.git

Developed by

License

This project is released under The MIT License.

About

A sublime package that lets you expand your current selection until a specific character, regex, or char-count is encountered.

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%