Home Download Buy Blog Forum Support

Search Within Files/Folders

Search Within Files/Folders

Postby yansern on Sun Jun 14, 2009 5:24 am

I'd love if SublimeText could allow me to search within files/folders. Currently I resort to PSPad to get that done.
yansern
 
Posts: 3
Joined: Sun Jun 14, 2009 5:14 am

Re: Search Within Files/Folders

Postby vim on Sun Jun 14, 2009 7:30 am

you have other dedicated tools that can do that:

grep on linux/mac
wingrep on windows

why to invent the wheel in sublime?

p.s. i guess you can even do it with a self made python plug-in
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Search Within Files/Folders

Postby jps on Mon Jun 15, 2009 1:05 pm

I'd like to see searching within sublime, especially in conjunction with projects.

I have some plans in this area, but I haven't sat down and worked out all the details yet.
jps
Site Admin
 
Posts: 3077
Joined: Wed Mar 19, 2008 12:33 pm

Re: Search Within Files/Folders

Postby EJ12N on Mon Jun 15, 2009 2:27 pm

Closest thing we have is http://www.sublimetextwiki.com/pages/SearchInFiles.html

But I agree, just use something else, in my case I use total commander, but you can also use suggestions vim said or one of my favorites powerGREP from the guys that made regexbuddy :)

I rather have sublime do 1 thing good than try to do every feature every other editor has in earth and fail at those... KISS concept :)
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: Search Within Files/Folders

Postby yansern on Thu Jun 18, 2009 9:19 am

PowerGREP looks powerful but fairly complicated. I did a quick file search and the performance was awesome.

How does the SearchInFiles work if it isn't broken (actually I installed it just now but I can't find the function anywhere).
yansern
 
Posts: 3
Joined: Sun Jun 14, 2009 5:14 am

Re: Search Within Files/Folders

Postby vim on Thu Jun 18, 2009 9:50 am

i couldn't get it to work :s
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Search Within Files/Folders

Postby vim on Thu Jun 18, 2009 11:51 am

nick, can you make a screen cast of you using it, nothing too complex, just do 1 simple search on a simple project, maybe i just don't know what to expect.

thanks a lot, vim.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Re: Search Within Files/Folders

Postby EJ12N on Thu Jun 18, 2009 3:18 pm

sublimator wrote:The perl modifiers Jon taught me about the other day work for python, eg prepending the regex with (?i)

(?i)sets as case insensitive


Yup they are indeed very useful
/i makes the regex match case insensitive.
/s enables "single-line mode". In this mode, the dot matches newlines.
/m enables "multi-line mode". In this mode, the caret and dollar match before and after newlines in the subject string.
/x enables "free-spacing mode". In this mode, whitespace between regex tokens is ignored, and an unescaped # starts a comment.

in Python do:

(?simx)YOUR_REGEX_PATTERN

http://www.regular-expressions.info/modifiers.html


I personally use a lot /i and /m the most, but specially /m! is a freaking life saver :D
EJ12N
 
Posts: 281
Joined: Tue Apr 21, 2009 5:23 pm

Re: Search Within Files/Folders

Postby vim on Fri Jun 19, 2009 5:30 pm

@ sublimator

thanks! got it. i didn't realize i need to press the ctrl-alt-shift-f from inside the find panel.
vim
 
Posts: 298
Joined: Tue May 27, 2008 6:51 pm

Next

Return to Ideas and Feature Requests

Who is online

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