Home Download Buy Blog Forum Support

Uberselection

Uberselection

Postby guillermooo on Mon Aug 23, 2010 7:02 pm

Description

Select text and perform search and replace operations via text commands. Inspired in Vim'x ex mode.

Examples

Code: Select all
10,30-V/flick/;s/li/u/


...means:

Replace 'li' with 'u' in every line (from the 10th to the 30th) where "flick" doesn't match.

How to use

Code: Select all
#from Sublime's python console
view.runCommand("uberSelection")


Get it

http://bitbucket.org/guillermooo/uberselection/

Misc

If you don't know it, http://pyparsing.wikispaces.com/ is a pretty neat module!
guillermooo
 
Posts: 727
Joined: Thu Jul 23, 2009 9:06 am

Re: Uberselection

Postby guillermooo on Sat Sep 18, 2010 8:20 am

Updated!

* Expanded docs.
* More vim commands.
* Fixed flags detection in search operations.
guillermooo
 
Posts: 727
Joined: Thu Jul 23, 2009 9:06 am

Re: Uberselection

Postby rspeer on Thu Feb 03, 2011 6:31 pm

Sounds very useful! I can't get it to work, though.

The docs say "runCommand" where the method is named "run_command", but even then, after I clone the package into ~/Library/Application Support/Sublime Text 2/Packages/User/uberselection, I type "view.run_command('uberSelection')" at the console and nothing happens.
rspeer
 
Posts: 7
Joined: Tue Feb 01, 2011 8:43 pm

Re: Uberselection

Postby jbrooksuk on Thu Feb 03, 2011 7:18 pm

rspeer wrote:Sounds very useful! I can't get it to work, though.

Are you using Sublime Text Alpha 2?
jbrooksuk
 
Posts: 761
Joined: Sun Apr 11, 2010 10:37 am
Location: England

Re: Uberselection

Postby guillermooo on Thu Feb 03, 2011 7:22 pm

As jbrooksuk said, it will only work in Sublime 1.x. It will eventually be ported to Sublime 2.
guillermooo
 
Posts: 727
Joined: Thu Jul 23, 2009 9:06 am


Return to Plugin Announcements

Who is online

Users browsing this forum: No registered users and 6 guests