You are here: PSPad forum > English discussion forum > regular expressions in "search in files" function?

regular expressions in "search in files" function?

#1 regular expressions in "search in files" function?

Posted by: KennyT | Date: 2016-02-16 15:09 | IP: IP Logged

hi,

is there already an option to do "multi-level" searches in the multi-file search and replace function?

i'd love to be able to do the equivalent of:

grep -i "string1" *.txt | grep -i "string2"

directly from within PsPad!

even if the listing generated by the first search could be used as the input for the second search, that would be good enough...

if it's not there, can it be added to the "wish list"!

TIA

K

Options: Reply | Quote | Up ^


#2 Re: regular expressions in "search in files" function?

Posted by: KennyT | Date: 2016-02-19 12:05 | IP: IP Logged

Also, just to save a couple of mouse clicks, could there be an option to only close the dialogue if the search succeeds but to leave it open if it fails to find any results?

K

Options: Reply | Quote | Up ^


#3 Re: regular expressions in "search in files" function?

Posted by: pspad | Date: 2016-02-19 12:58 | IP: IP Logged

Regulars expressions in search in files are planned, but just now I am focused in port PSpad into new Delphi version. New editor engine, 64b version, ...

Option to don't close dialog in not search success is possible. I will do it.

Options: Reply | Quote | Up ^


#4 Re: regular expressions in "search in files" function?

Posted by: KennyT | Date: 2016-03-02 08:34 | IP: IP Logged

Thanks.

i've just worked out a klunky method to do a 2-level search:

1 do the primary search
2 click the "document" icon to turn the results into an open text file
3 do a manual list search in that document

the only downside is that if you have a lot of matches, you have to go hunting back up the text file to find the source filename, so a potential "quick mod" would be an option to make the listing:

filename1:line:text
filename1:line:text
filename2:line:text
..

rather than

filename1:
-------------line:text
-------------line:text
filename2:
-------------line:text

and to retain the "hot click" to open the matched file at the matched line.

Just an idea...

Options: Reply | Quote | Up ^


#5 Re: regular expressions in "search in files" function?

Posted by: AndreasW | Date: 2017-03-14 09:43 | IP: IP Logged

I also would find it very useful to have regular expressions in "search in files".

Options: Reply | Quote | Up ^


#6 Re: regular expressions in "search in files" function?

Posted by: pspad | Date: 2017-03-14 09:58 | IP: IP Logged

KennyT:
Thanks.

i've just worked out a klunky method to do a 2-level search:

1 do the primary search
2 click the "document" icon to turn the results into an open text file
3 do a manual list search in that document

the only downside is that if you have a lot of matches, you have to go hunting back up the text file to find the source filename, so a potential "quick mod" would be an option to make the listing:

filename1:line:text
filename1:line:text
filename2:line:text
..

rather than

filename1:
-------------line:text
-------------line:text
filename2:
-------------line:text

and to retain the "hot click" to open the matched file at the matched line.

Just an idea...

There is no problem to do it. But I need to listen other user opinion too.

Options: Reply | Quote | Up ^


#7 Re: regular expressions in "search in files" function?

Posted by: pspad | Date: 2017-03-14 09:58 | IP: IP Logged

AndreasW:
I also would find it very useful to have regular expressions in "search in files".

I know and I want to add it

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR