User forums > Using Code::Blocks
Incremental Search
rhf:
--- Quote from: jens on October 11, 2008, 05:52:20 pm ---But it might be a problem with different behaviour of different zip-versions. I use "Zip 2.32" from June 19th 2006.
--- End quote ---
Ouch! My zip version was Zip 2.3 dated November 29th 1999! Think I'll upgrade now - sorry to cause you problems.
fabrizio.benedetti:
--- Quote from: jens on October 10, 2008, 06:36:19 pm ---I commited Incremental search this afternoon.
--- End quote ---
I built the last version from SVN with the incremental search plugin yesterday. Thanks! That was really missing!
I'd like to suggest some refinements in its behaviour:
- there should be a way to exit from incremental search mode using the keyboard, and go back to typing; pressing Esc or the assigned shortcut (Ctrl+I) seems the most intuitive way (now seems that the only way is to press the [x> icon on the toolbar near the search text);
- search options for incremental search could have their shortcut, active during incremental search (VS does i.e. ctrl-c for case sense);
- the searched text should be selected when exiting from incremental search (as in the case of normal search);
Now, given I'm a VS6 guy, there's another search feature I'm missing. It's not related to incremental search but I'm reporting it here... it's the Ctrl-F3 shortcut, which starts searching for the word under the cursor - if no text is selected, otherwise it searches for the selected text. That's very quick, no search dialog is shown, you just jump to the next result. Whooa! (and yes, Shift-Ctrl-F3 does it backward). Anyone else liking it out there?
Ciao
Fabrizio
Jenna:
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am ---
--- Quote from: jens on October 10, 2008, 06:36:19 pm ---I commited Incremental search this afternoon.
--- End quote ---
I built the last version from SVN with the incremental search plugin yesterday. Thanks! That was really missing!
--- End quote ---
Thanks. :)
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am --- - there should be a way to exit from incremental search mode using the keyboard, and go back to typing; pressing Esc or the assigned shortcut (Ctrl+I) seems the most intuitive way (now seems that the only way is to press the [x> icon on the toolbar near the search text);
- search options for incremental search could have their shortcut, active during incremental search (VS does i.e. ctrl-c for case sense);
--- End quote ---
That make sonly sense, if both is implemented.
I will think about it.
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am --- - the searched text should be selected when exiting from incremental search (as in the case of normal search);
--- End quote ---
If the first will be implemented, this would be easy (but should be configurable)
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am ---
Now, given I'm a VS6 guy, there's another search feature I'm missing. It's not related to incremental search but I'm reporting it here... it's the Ctrl-F3 shortcut, which starts searching for the word under the cursor - if no text is selected, otherwise it searches for the selected text. That's very quick, no search dialog is shown, you just jump to the next result. Whooa! (and yes, Shift-Ctrl-F3 does it backward). Anyone else liking it out there?
--- End quote ---
Maybe this can also be implemented inside the plugin.
Biplab:
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am --- - there should be a way to exit from incremental search mode using the keyboard, and go back to typing; pressing Esc or the assigned shortcut (Ctrl+I) seems the most intuitive way (now seems that the only way is to press the [x> icon on the toolbar near the search text);
--- End quote ---
I've already implemented this feature. I prefer Escape Key. I'll commit it later. :)
Jenna:
--- Quote from: Biplab on October 16, 2008, 05:09:30 pm ---
--- Quote from: fabrizio.benedetti on October 16, 2008, 11:50:26 am --- - there should be a way to exit from incremental search mode using the keyboard, and go back to typing; pressing Esc or the assigned shortcut (Ctrl+I) seems the most intuitive way (now seems that the only way is to press the [x> icon on the toolbar near the search text);
--- End quote ---
I've already implemented this feature. I prefer Escape Key. I'll commit it later. :)
--- End quote ---
I also implemented it.
I did not find a way to catch all key-events from all windows, I'm not sure if it is possible, or even if it would be very good (because of the overhead it and the possible slowdown of the whole app).
I catch the key events of the text-control inside the toolbar, and (re)set the on it, when using any of the toolbar-buttons (and of course with Ctrl-I like now).
If you then press ESC everything looks like as if you empty the textcontrol.
You can select the last found phrase if you have checked the appropriate ooption on the configuration dialog.
ALT-DELETE will erase the content of the text-control.
I did not apply any other shortcuts, because they interfere with the normal keyboard-shortcuts, or the other accelerators.
If you know another (better) way to catch the key-events, please post a patch, or send it me with a pm or mail, or commit it, if it not slows down the whole C::B.
I wait until I commit my changes.
I also fixed the problem if the found text is in a column outside the actual editor-window, because the line is too ling.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version