News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

A simple question about find in files

Started by elie, December 04, 2008, 04:08:25 PM

Previous topic - Next topic

elie

Hi,
When I perform search in files, the first result is always opened and displayed (e.g. the first file which the text was found in is opened and the cursor directed toward the text).
Is there anyway of disabling this? I've searched around the settings and can't find such an option.

Thanks,
Elie.

Jenna

There is no such options as far as I know.

But you can use the ThreadSearch-plugin instead.

dje

Hi!

I have problems with auto hide option for threaded searches.
Assuming that users are interested in search results, any threaded search tries to show the Messages notebook using the appropriate C::B event.
The problem is that it cannot bypass the autohide boolean. Is there any solution concerning that point (other than adding a new check box on auto hide panel) ?

Dje

Jenna

Quote from: dje on December 04, 2008, 05:01:48 PM
Hi!

I have problems with auto hide option for threaded searches.
Assuming that users are interested in search results, any threaded search tries to show the Messages notebook using the appropriate C::B event.
The problem is that it cannot bypass the autohide boolean. Is there any solution concerning that point (other than adding a new check box on auto hide panel) ?

Dje

It works for me !

dje

Maybe there is a bug, but in the show log event handler, the m_??? boolean blocked the action.
I changed my settings in the environment panel and the value had not been updated in the event handler.

Dje

Jenna

#5
Quote from: dje on December 04, 2008, 05:27:07 PM
Maybe there is a bug, but in the show log event handler, the m_??? boolean blocked the action.
I changed my settings in the environment panel and the value had not been updated in the event handler.

Dje

You are right: "m_AutoHideLogs" will only be set on C::B startup, that is of course a bug. And if it is not set it indeed blocks the ShowLog-Event, what also seems to be a bug.
Another problem is, that after clicking build the log-manager will not be closed if nothing had to be done.

I will have a look into it.

EDIT:

Nevertheless, @elie:

you should give it a try, it really enhances searching.

(The only missing thing might be that there is no history of found occurences, as in Search in files.)

dje

Quote from: jens on December 04, 2008, 05:48:34 PM
(The only missing thing might be that there is no history of found occurences, as in Search in files.)
well, patterns are stored in the combo box but it is true it is not possible to log many searches in the log results.
Is this what you mean ?

Dje

Jenna

Quote from: dje on December 04, 2008, 09:05:37 PM
Quote from: jens on December 04, 2008, 05:48:34 PM
(The only missing thing might be that there is no history of found occurences, as in Search in files.)
well, patterns are stored in the combo box but it is true it is not possible to log many searches in the log results.
Is this what you mean ?

Dje
yes

elie

jens,
Thanks I've tried it and it works great. My few thoughts about it:
-Maybe the regular 'find in files' and 'thread search' should be combined, IMO.
-Pressing an assigned shortcut key for thread search should bring you to the toolbar and not auto start searching.
-Pressing the show/hide logs window (F2) is always returning the window to its original size... I've already provided a patch for this maybe it will make it to the next nightly build.

Thanks,
Elie

dje

Quote from: elie on December 07, 2008, 09:30:40 AM
-Pressing an assigned shortcut key for thread search should bring you to the toolbar and not auto start searching.
That's an option Mario also told me about.
I don't forget it but I am waiting for the autohide bug fix to propose both entries (either search or set focus)

Quote from: elie on December 07, 2008, 09:30:40 AM
-Pressing the show/hide logs window (F2) is always returning the window to its original size... I've already provided a patch for this maybe it will make it to the next nightly build.
This would really be nice! Resizing again and again is quite boring.

Dje

elie

Quote from: dje on December 07, 2008, 03:03:20 PM
That's an option Mario also told me about.
I don't forget it but I am waiting for the autohide bug fix to propose both entries (either search or set focus)

Thanks that would help alot, I'm used to it from VS.

-elie

Jenna

Quote from: elie on December 07, 2008, 09:30:40 AM
-Pressing the show/hide logs window (F2) is always returning the window to its original size... I've already provided a patch for this maybe it will make it to the next nightly build.

fixed in svn, see: http://forums.next.codeblocks.org/index.php/topic,9495.msg68108.html#msg68108.

elie

Thanks! I saw your comment, I'll look into it.

-elie

dje

Hi !

Quote from: jens on December 04, 2008, 09:27:05 PM
Quote from: dje on December 04, 2008, 09:05:37 PM
Quote from: jens on December 04, 2008, 05:48:34 PM
(The only missing thing might be that there is no history of found occurences, as in Search in files.)
well, patterns are stored in the combo box but it is true it is not possible to log many searches in the log results.
Is this what you mean ?

Dje
yes

Implemented in SVN 5333
Thanks to Jens for Linux testing !

Dje