Search all Documents ...

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
FerFemNemBem

Search all Documents ...

Post 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.
Andrew

Re: Search all Documents ...

Post 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.
Andreas

Re: Search all Documents ...

Post 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"
David Vanden Heuvel

Re: Search all Documents ...

Post 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.
David Vanden Heuvel

Re: Search all Documents ...

Post by David Vanden Heuvel »

hmm, nevermind. I didn't read the post correctly.
-David.
FerFemNemBem

Re: Search all Documents ...

Post 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.
skamp

Re: Search all Documents ...

Post 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 :)
Thierry

Re: Search all Documents ...

Post 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.
Post Reply