Home Download Buy Blog Forum Support

Select Until

Select Until

Postby adzenith on Fri Jun 07, 2013 9:53 pm

I stumbled across this amazing plugin the other day, and thought it was woefully under-advertised:
https://github.com/xavi-/sublime-selectuntil
From the Readme:
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.


I have wanted this functionality since day 1, and I've always worked around it by careful editing and searching and regexes and moving from the end of lines instead of the beginning and so forth. But this—this is how multiple selections should be. Thanks xavi-!
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Select Until

Postby bizoo on Fri Jun 07, 2013 10:52 pm

To be fair, JonasPf has announced something quite similar months ago:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=9581&start=0
And you're right, I cannot live without since I tried it.
bizoo
 
Posts: 876
Joined: Wed Dec 08, 2010 6:53 am
Location: Switzerland

Re: Select Until

Postby sublimator on Sat Jun 08, 2013 4:26 am

shit, that looks sweet

implemented a `select to` before, but `until` clearly seems da business
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Select Until

Postby sublimator on Sat Jun 08, 2013 5:18 am

Talking about inclusive/exclusive of the search term ...
It is better to remain silent and be thought a fool, than to speak out and remove all doubt
sublimator
 
Posts: 649
Joined: Thu Mar 20, 2008 5:41 am

Re: Select Until

Postby adzenith on Sat Jun 08, 2013 4:48 pm

bizoo wrote:To be fair, JonasPf has announced something quite similar months ago:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=9581&start=0
And you're right, I cannot live without since I tried it.

JumpTo looked like it doesn't search past the end of the line, though, which seems less useful.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Select Until

Postby xavi- on Sat Jun 08, 2013 5:59 pm

bizoo wrote:To be fair, JonasPf has announced something quite similar months ago:
http://www.sublimetext.com/forum/viewtopic.php?f=5&t=9581&start=0
And you're right, I cannot live without since I tried it.


It's true JumpTo came out a couple of months before SelectUntil, but I assure you, we both came up with the idea independently. In fact the first time I heard of JumpTo was after I submit SelectUntil to the Sublime Package Control repo. Someone mentioned they forked JumpTo and added a couple ideas from SelectUtil. :P

That said SelectUntil has a couple of additional features I've found very useful -- search by regex or character count as well as reverse search. Select until also tries to be a usable as possible. For instance, an outline of the text that will be selected is shown while you're typing your search term:

Screen Shot 2013-06-08 at 9.59.49 AM.png
Screen Shot 2013-06-08 at 9.59.49 AM.png (112.65 KiB) Viewed 2522 times


There's also the fact that SelectUntil searches across multiple lines as adzenith mention (btw thanks for the shoutout!).

In anycase, I hope you all find SelectUntil useful. If you have any suggestions, don't hesitate to let me know.
xavi-
 
Posts: 4
Joined: Sat Jun 08, 2013 4:53 pm

Re: Select Until

Postby sfranky on Sun Jun 09, 2013 3:38 pm

Not compatible with ST3 :cry:
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: Select Until

Postby adzenith on Sun Jun 09, 2013 3:41 pm

sfranky wrote:Not compatible with ST3 :cry:

I run ST3 exclusively and it works great.
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Select Until

Postby sfranky on Sun Jun 09, 2013 4:08 pm

it seems to be installed, but nothing happens when I use the keybinding. In the console I get:
Code: Select all
File "C:\Program Files\Sublime Text 3\sublime_plugin.py", line 549, in run_
    return self.run(edit)
None
sfranky
 
Posts: 96
Joined: Mon Oct 19, 2009 10:06 pm

Re: Select Until

Postby xavi- on Sun Jun 09, 2013 4:36 pm

Whoops my mistake. Forgot to in the proper arguments on Windows and Linux. Should hopefully work now.
xavi-
 
Posts: 4
Joined: Sat Jun 08, 2013 4:53 pm

Next

Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 2 guests