Home Download Buy Blog Forum Support

occur-mode in Sublime?

occur-mode in Sublime?

Postby bphunter1972 on Mon Mar 25, 2013 5:06 am

Hi,
In considering replacing emacs with sublime, I'd like to know if there is a command or package that replicates the occur-mode feature. I use this command all the time. It presents a buffer containing all the results of a regex search on another buffer, and each line is hyper-linked to the original matching line. I use this all the time to help read logfiles.

Thanks in advance,
Brian
bphunter1972
 
Posts: 13
Joined: Mon Mar 25, 2013 5:02 am
Location: San Jose, CA USA

Re: occur-mode in Sublime?

Postby Clams on Mon Mar 25, 2013 6:54 am

This sounds a lot like the default behavior of the "search in files"
Clams
 
Posts: 41
Joined: Fri Dec 30, 2011 7:44 am

Re: occur-mode in Sublime?

Postby bphunter1972 on Tue Mar 26, 2013 4:00 am

Find in files (S-CMD-F). Yes, that is probably close enough.

Any idea how I would restrict this to just the current file? It seems to want to operate on all Open Files and Folders. It would be cool if plain-old Find could do this, as an option, too.

Thanks!
bphunter1972
 
Posts: 13
Joined: Mon Mar 25, 2013 5:02 am
Location: San Jose, CA USA

Re: occur-mode in Sublime?

Postby qgates on Tue Mar 26, 2013 5:34 am

Under "Where:" you could either just paste the filename of the file you want to search, or, if it's the only file open, choose "open files" from the "..." selector button.

S
qgates
 
Posts: 188
Joined: Mon Nov 05, 2012 4:33 pm


Return to General Discussion

Who is online

Users browsing this forum: No registered users and 10 guests