Code::Blocks Forums

Developer forums (C::B DEVELOPMENT STRICTLY!) => Development => Topic started by: tiwag on December 17, 2005, 10:32:35 am

Title: Search features tbd
Post by: tiwag on December 17, 2005, 10:32:35 am
one of the things which i don't find very ergonomically is the "Search in Files" behaviour.
most of the time i need more different searches and want to have them in the search-log.

i have implemented this for demonstration purposes,
subsequent searches are kept in the search-log,
the different searches are separated by the search pattern,
if the search pattern could not be found, a "not found" line is added to the log,
otherwise the first search entry of the last search gets the focus.

what i didn't implement till now is a popupmenu for the search-log,
where a menu entry for "Clear search-log" .

@all
please let me know your comments and proposals,
how you would like the search-functions have to work.

i would like to implement these features then.
i really need a small task to get more familiar with the CB-sdk.

attached you can see a sreenshot and also the patchfile,
if someone wants to test the feeling as it is now.

[attachment deleted by admin]
Title: Re: Search features tbd
Post by: Der Meister on December 17, 2005, 11:06:15 am
Looks nice but I would prefer the way that Visual Studio solves this problem. There you have two (or possibly even more?) tabs instead of one and then use one for each search you start. This feels more convenient to me since switching between tabs is easier as scrolling in one tab all the time. Would that be possible?
Anyway, is it possible in your solution to delete some search results? Or do I have to delete all searches and the possible re-do the searches that I still need? The reason is: if you use this feature frequently the search log will contain a lot of content which makes it difficult to find the results you need.
Title: Re: Search features tbd
Post by: tiwag on December 17, 2005, 11:16:11 am
... Would that be possible? ...
thanks for your feedback, almost anything is possible.
Please let us collect our ideas and wishes for now and when we have a reasonable amount of answers,
then i'll sort them out and present a concept, which we can poll about modules , before i go to implement them.

my present patch is only a hack, i used for a while now, which i want to improve to whatever will be claimed here.
Title: Re: Search features tbd
Post by: Pecan on December 17, 2005, 08:14:34 pm
using wxIFM for the search results would
really be nice. You could have individual result frames
but dock 'em in any personally desired way.

thanks
pecan
Title: Re: Search features tbd
Post by: takeshimiya on December 18, 2005, 01:51:04 am
Latest wxIFM looks really great. Too bad it doesn't have native drawing for each port.
Title: Re: Search features tbd
Post by: 280Z28 on December 18, 2005, 10:12:42 am
Opening a new tab with the title "Search: <search string>" for a search in files request would own...

Make the first couple lines printed be the directory, whether recursion was used, the filter, the string, and whether regex was used.

Then Right click tab and select to close when you are done with it.