
Saturday November 25, 2006
UPDATE: Firefox(TM) style Incremental Search Sidebar module
About 10 days ago I blogged about the Incremental Search Toolbar. Based on the feedback I received, I modified the module to create Firefox (TM) style popular Incremental Search Sidebar.
I have uploaded the Incremental Search Sidebar module to my Netbeans update center described here. This replaces the Incremental Search Toolbar.
The Incremental Search Sidebar mostly works the same way as the Incremental Search Toolbar. The only difference is that each editor has its own Incremental Search Sidebar. I removed the Search Backwards check box also.
The Incremental Search Sidebar is not implemented as an action registered through a layer file. Therefore the standard mechanism i.e. Tools:Options:Keymap cannot be used to modify the key binding. Hence I have updated the module to let you configure the keybinding - Tools:Options:Miscellaneous:Incremental Search.

Sources
DISCLAIMER: This module is experimental. So no guarantees. Use the module at your own risk.
Posted by sandipchitale
( Nov 25 2006, 04:45:54 PM PST ) Permalink
Trackback URL: http://blogs.sun.com/scblog/entry/update%3A_firefox%28tm%29_style_incremental_search
Posted by Vladimir Voskresensky on November 25, 2006 at 11:44 PM PST #
Posted by 85.249.72.66 on November 26, 2006 at 12:02 AM PST #
Posted by Sven Reimers on November 26, 2006 at 03:21 AM PST #
Posted by Amotz Anner on November 26, 2006 at 09:33 AM PST #
Sven, you are correct. Ctrl+/ keybinding may cause problems for some keyboards.
I will be soon update the module so that the user can configure the keystroke using Tools:Options.
Amotz, that is an interesting idea. However the implementations of RegExpHighlighter and Incremental Search Sidebar are completely different. Instead of mearging the two what could be done is to use the sidebar like mechanism for RegExpHighlighter module.
Posted by Sandip on November 26, 2006 at 12:13 PM PST #
Posted by Amotz Anner on November 27, 2006 at 12:27 AM PST #
In terms of L&F, the L&F & icons of the Incremental Search Sidebar were inspired by the Firefox(TM)'s find bar. I agree and will follow your advise and try to maintain a uniform L&F for my modules.
Posted by Sandip on November 27, 2006 at 08:08 AM PST #
Posted by Sven Reimers on November 27, 2006 at 03:26 PM PST #
Posted by Kovica on November 28, 2006 at 12:52 AM PST #
Posted by Sven Reimers on November 28, 2006 at 03:25 AM PST #
Posted by Kovica on November 28, 2006 at 04:15 AM PST #
"control released M" should have worked though. It works for me on Windows XP/English keyboard.
Kovica, a silly question - you did not type the "s in the text field, right?
Posted by Sandip on November 28, 2006 at 08:20 AM PST #
Posted by Kovica on November 28, 2006 at 11:01 PM PST #
Sorry I may not have been very clear. What I meant to say was - did you type "control released M" in the Options text field? If so that may cause the problem. You need to type control released M i.e. without quote. As I said this is a silly question.
Posted by Sandip on November 29, 2006 at 07:39 AM PST #
Posted by Kovi on November 29, 2006 at 11:01 AM PST #
Alright. I was asking just in case....we all do silly mistakes sometimes. Anyhow looks like it is working for you now. Did it work for you with released ?
Posted by Sandip on November 29, 2006 at 02:30 PM PST #
Posted by Porfirio on March 16, 2007 at 02:03 PM PDT #
Make sure you have configured the key bindings in Tools:Options:Miscellaneous:Incremental Search
Posted by Sandip on March 16, 2007 at 02:14 PM PDT #
Posted by Porfirio on March 17, 2007 at 04:07 AM PDT #
Thanks for your suggestions. Actaully at the code level I already tried turning on highlite all but probably due to some bug it does not work. Haven't looked into in detail.
I have already sent the patch to the NetBeans editor folks. Incremental Search is going to be part of NB6.0. It will be integrated with NB search.
Posted by Sandip on March 17, 2007 at 09:46 AM PDT #