User forums > Using Code::Blocks
Incremental Search
Barking_Mad:
--- Quote from: jens on October 02, 2008, 04:57:01 pm ---
I don't think that it's really needed for that.
Incremental search for one file is easy to implement.
In fact I just created this as plugin (with a really ugly modal dialog at the moment).
It might be a better idea to use a toolbar instead, but that's another thing (and I might work on it the next days).
I'm not sure if incremental search in more then one file is really needed.
I think that's something ThreadSearch-plugin can do better (even if it not searches incremental).
--- End quote ---
I have been researching code completion recently, incremental search methods are certainly one of the best methods for parsing user input for code completion as far as i can see.
Just type into the google chrome Ctrl-F search or google search bar to see why, they know a thing or two about search, its one of the best methods for reducing solution sets in realtime for Function lists and the autocomplete method afaik.
If you want ill post my notes, which are incomplete at the moment so id rather not.
For one reason why i believe its superior, see this comment: http://forums.codeblocks.org/index.php/topic,8346.msg61758.html#msg61758
Resolving to individual symbols on input is afaik best done incrementally.
thomas:
--- Quote from: jens on October 02, 2008, 04:57:01 pm ---Incremental search for one file is easy to implement.
In fact I just created this as plugin (with a really ugly modal dialog at the moment).
It might be a better idea to use a toolbar instead, but that's another thing (and I might work on it the next days).
--- End quote ---
The already implemented "show occurences" feature does just that. It's hard/impossible to implement it properly for all project files though, due to the sheer (im)possible number of files and hits. Imagine a project with 15,000 files.
Jenna:
I created a plugin that does incremental search from a toolbar.
You can download the sorces from http://apt.jenslody.de/patches/IncrementalSearch_0.2.tar.bz2.
The archive contains the folder "IncrementalSearch", that has to be copied to "src/plugins/contrib", and a patch file for the contrib-plugins workspace and the autoconf-files.
The patch is against svn r5243.
It works, without conflicting with Highlight occurences.
The only thing I really don't like is that the highlighting (as with Highlight occurences) is not really colourful.
If anybody can test it and give a feedback, I would be glad.
mandrav:
--- Quote from: jens on October 07, 2008, 11:57:57 am ---I created a plugin that does incremental search from a toolbar.
...
If anybody can test it and give a feedback, I would be glad.
--- End quote ---
Looks good, though highlighting didn't work for me at all.
mariocup:
Hi jens,
I tried it on windows and that is exactly how incremental search should look like :D. Nice job.
The hint for "Select only" should be changed to "Selected text" to be consistent with the search dialogue. The highlight colour is very decent, so it is not easy to see the highlighting on a laptop screen, perhaps it should be customizable.
Thx to jens.
Mario
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version