Home Download Buy Blog Forum Support

Show only matching lines

Show only matching lines

Postby cmulcahy on Thu Aug 25, 2011 12:51 pm

This is probably a request for a plugin.

I'd like to be able to run a filter that provides only matching lines a la grep. I'd like it to filter out of the view any lines that do not match a provided regex.

Thanks!
cmulcahy
 
Posts: 4
Joined: Sun Jan 23, 2011 7:41 pm

Re: Show only matching lines

Postby guillermooo on Thu Aug 25, 2011 1:00 pm

UberSelection does something similar to that. Inspired in Vim's ex mode. But it will only select the lines for you.

https://github.com/SublimeText/UberSelection
guillermooo
 
Posts: 728
Joined: Thu Jul 23, 2009 9:06 am

Re: Show only matching lines

Postby davidpeckham on Sun Apr 14, 2013 10:52 pm

Try this plugin for ST2 and ST3: https://github.com/davidpeckham/FilterLines. I submitted it for Will Bond's Package Control, but it may not be listed yet.
davidpeckham
 
Posts: 1
Joined: Sun Apr 14, 2013 10:41 pm

Re: Show only matching lines

Postby tobi73de on Tue Apr 16, 2013 12:45 pm

FilterLines is really nice. Would it be possible to add a negate function. Just a small checkbox to switch to the mode to filter the lines that contain not the string or regex.
tobi73de
 
Posts: 30
Joined: Tue Jan 29, 2013 8:02 pm

Re: Show only matching lines

Postby adzenith on Tue Apr 16, 2013 4:22 pm

Selection>Invert Selection
adzenith
 
Posts: 1214
Joined: Mon Oct 19, 2009 9:12 pm

Re: Show only matching lines

Postby tobi73de on Wed Apr 17, 2013 5:12 pm

adzenith wrote:Selection>Invert Selection


Cant find in ST2, also not as plugin. Is this an ST3 Feature?

UPDATE: Yes it is, just found it.
tobi73de
 
Posts: 30
Joined: Tue Jan 29, 2013 8:02 pm


Return to Ideas and Feature Requests

Who is online

Users browsing this forum: Exabot [Bot] and 6 guests