Page 1 of 1

Search all Documents ...

Posted: Mon May 28, 2001 9:28 am
by FerFemNemBem
If I try to search something in "all Documents" Textpad say's to me "found 31 occurrences" Thats okay but is there a way that Textpad marks all concerning Documents ?
It's a lot of work for me to search in (maybe) 20 or 30 documents for the blue triangles that Textpad sets.

Than You.

Please forgive me about my bad english.

Re: Search all Documents ...

Posted: Mon May 28, 2001 9:41 pm
by Andrew
If you double click on the first result in the "Search Results" window Textpad will open the file at the correct location.

You can then use F4 to jump to the next search result, which will open the next file ( if necessary ).

Shift F4 takes you back.

Re: Search all Documents ...

Posted: Tue May 29, 2001 9:30 am
by Andreas
The problem is that searching "all documents" does not put results in the Search Results window. You can either "Mark all" or just walk through with "Find Next"

Re: Search all Documents ...

Posted: Tue May 29, 2001 12:33 pm
by David Vanden Heuvel
this might be a bit overkill, but you could configure a tool to do it--

find . -iname filename -exec grep -l -i searchstring {} ;

replace filename and searchstring with the appropriate values.
I'm not sure what you're trying to search for, but you could replace searchstring with $Sel if you wanted to highlight your search pattern from your code -or- you could use $Prompt(Enter the search string) if you want to enter it every time.
Same goes for the filename- you could use *.c or *.java or whatever files you need to search for.

you'll also need to set the initial path....

The regex would look something like
\([^ ]+\)

with Registers: file set to 1

This assumes you have the cygwin, MKS tools or equivalent in your path....

cheers,
-David.

Re: Search all Documents ...

Posted: Wed May 30, 2001 2:23 pm
by David Vanden Heuvel
hmm, nevermind. I didn't read the post correctly.
-David.

Re: Search all Documents ...

Posted: Thu Jun 07, 2001 8:52 pm
by FerFemNemBem
Thank You first !

F4 don't jump through the next result also Strg+F don't do this.

Any other suggestions ?

Thanks FFNB.

Re: Search all Documents ...

Posted: Fri Jun 29, 2001 12:05 pm
by skamp
There are TWO functions : search & seach in files...
If you choose search, there is the option "All files". That is what Andreas is referring to, I think. What he should use is the function Search In Files instead (Ctrl+F5 in my conf) that Andrew is referring to :)

Re: Search all Documents ...

Posted: Mon Aug 20, 2001 3:15 pm
by Thierry
I have the same problem than FFNB,

The situation is like this:

- I have severals opened documents (about 50), they come from any differents directories everywhere on the network.

- I want to find a word that could apear on some of them (let say 5).

- I want to see each one after the other to take an action or not (replace all is not good for this)

- I want next document on witch the word is to be on top of the screen with the word selected.

Currently the find next in all documents select the next word on every documents at the same time, that's useless.

Mark all is not good too because the select next bookmark works only in the current document. You have to browse every document one by one and manually search for marks...

Find in files is not good in this situation as they are from many places and they are already opened.

I just want it like in any word processor when you search next occurence on all opened documents, is there a way to do it ?

Please help!

Thanks, Thierry.