Page 1 of 1

Send search results to the same window?

Posted: Thu Dec 16, 2004 9:51 am
by chris
Hi all,

Is there a way to have the output of Find In Files (fgrep) sent to the same window each time, instead of always opening new windows? I use it a lot and I much prefer having all my search results in the same place, so I can refer back to old searches easily and so I don't have to move and resize every new window it throws up.

thanks, Chris

Posted: Thu Dec 16, 2004 11:56 am
by jussij
Hi Chris,
Is there a way to have the output of Find In Files (fgrep) sent to the same window each time.
Unfortunately there is no way to achieve this. The reason is Zeus allows you to run any number of concurrent searches. For example assume you are running a long search. While this search is running you can start any number of additional searches and they will all run concurrently.

Compare this to the single output search option found in something like MSVC IDE for example. With this serialised search model the additional searches can not be started until the first search is complete.
I use it a lot and I much prefer having all my search results in the same place, so I can refer back to old searches easily and so I don't have to move and resize every new window it throws up.

I will look to add an a new option to the Find in Files dialog. This woul allow Zeus to search in either the concurrent or serial search modes.

Cheers Jussi

Posted: Thu Dec 16, 2004 12:23 pm
by Guest
I will look to add an a new option to the Find in Files dialog. This woul allow Zeus to search in either the concurrent or serial search modes.
That would be a nice option to have - thanks Jussi. :)

cheers, Chris

Posted: Thu Dec 16, 2004 1:14 pm
by chris
On a related note, when the Find In Files dialog comes up, would it be possible to have the current selection pasted into the "Find what" field automatically? I guess there might be a way to do this with a macro but it would be a nice touch :)

cheers, Chris

Posted: Thu Dec 16, 2004 11:17 pm
by jussij
I will also add this feature to the todo list :)

In the mean time if you use $W as the search string, this Zeus macro tag will substitute for the current word from the currently active document. Alternatively you can use $WEX which substitutes for the current marked text or the current word if no markings exist.

These and many more Zeus macro tags (see Zeus online help for details) work in nearly all of the Zeus edit fields.

Cheers Jussi

Posted: Fri Dec 17, 2004 10:14 am
by chris
Aha! $wex does it perfectly, thanks Jussi.