Sublime Forum

Uberselection

#1

Description

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

Examples

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

#from Sublime's python console view.runCommand("uberSelection")

Get it

bitbucket.org/guillermooo/uberselection/

Misc

If you don’t know it, pyparsing.wikispaces.com/ is a pretty neat module!

0 Likes

#2

Updated!

  • Expanded docs.
  • More vim commands.
  • Fixed flags detection in search operations.
0 Likes

#3

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.

0 Likes

#4

Are you using Sublime Text Alpha 2?

0 Likes

#5

As jbrooksuk said, it will only work in Sublime 1.x. It will eventually be ported to Sublime 2.

0 Likes