Home Download Buy Blog Forum Support

Fold empty lines?

Fold empty lines?

Postby mah on Tue Oct 11, 2011 6:25 pm

I have a log file which has me searching for needles in this haystack, and I'm using Sublime Text to help. I can identify many lines which have useless info, and I can search for ^.+USELESS_ENTRY_TEXT.+$, find all, and hit backspace to delete the text without deleting the lines... so far so good. [I'm clearing useless lines without deleting them so that I can retain original line numbering.]

I would like to fold/compress the empty lines such that I see only non-empty lines (or at most a single blank line for each group of them)... is this possible?
mah
 
Posts: 13
Joined: Mon Aug 29, 2011 3:47 pm

Re: Fold empty lines?

Postby adzenith on Tue Oct 11, 2011 10:18 pm

Once you've "found all", just hit "fold" and they'll all fold. You could even hit shift+left first to select the preceding newlines so the fold markers show up on the previous lines instead of taking up a line of their own.
adzenith
 
Posts: 1215
Joined: Mon Oct 19, 2009 9:12 pm

Re: Fold empty lines?

Postby mah on Wed Oct 12, 2011 1:32 pm

Excellent... I just wasn't seeing the fold menu entry but I did find it finally. Thanks!
mah
 
Posts: 13
Joined: Mon Aug 29, 2011 3:47 pm


Return to General Discussion

Who is online

Users browsing this forum: Google [Bot] and 10 guests