User forums > Using Code::Blocks

Incremental Search

(1/10) > >>

colski:
Unless I've missed something, CB is still lacking incremental search.

Please consider this, I use it all the time and it's hard to be without.

colski

MortenMacFly:

--- Quote from: colski on September 30, 2008, 02:23:15 pm ---Unless I've missed something, CB is still lacking incremental search.

--- End quote ---
It never did. Just hit "F3" to continue searching the term from the last position.

colski:
That's not incremental search, you're describing repeat search.

Incremental search means that the search is performed as you type the keys.

In VC++, for example, Ctrl+I begins incremental search. Then key 's' would search forward to the first instance of 's', then 'e' would search forward to the first instance of 'se' and so on. F3 would then find the next instance.

Seeing the results as you type is the major benefit. You can stop typing as soon as you've found what you want, or discover that there are no matches much faster.

When performing incremental search, the backspace key should remove the last character from the search string, not delete the selection.

colski

MortenMacFly:

--- Quote from: colski on September 30, 2008, 03:14:18 pm ---That's not incremental search, you're describing repeat search.

--- End quote ---
Although I don't see any major benefit in this search method you might want to try the ThreadSearch plugin. It does not do the incremental stuff but has similar features. Probably you can enhance it in a way that it would work as you like.

colski:
The benefit is obvious to me, since I use it all the time.

Let me see if I can make a convincing argument to you. Incremental search is the search method in firefox and chrome, vc++, emacs and eclipse; whereas the dialog box is the search method in Code::Blocks and internet explorer.

I guess that threadsearch has done most of the work (ie, a non-modal input). It's not in my build, so I'll have to investigate that. Perhaps someone who knows the code base will read this and think it's worth doing.

colski

Navigation

[0] Message Index

[#] Next page

Go to full version