Friday, June 4, 2010

Multi-Tab Search

Since this extension is supposed to be an interactive one, the implementation we currently have in mind is as follows :
  • Create a sidebar which will serve as the user interface. The sidebar has a text-box, a search button, and a box for displaying results, grouped by tab-labels (preferably check-boxes, so the user can select the tabs that are to be searched).
  • As for the search function, it invokes the webBrowserFind object associated with the browser corresponding to each of the tabs selected. We figured this would be much easier and much more feasible than that trying to introduce our own search function. At this point, we don't know much about webBrowserFind, except for the fact that it can be used to search for text in the document.
  • The results shown in the sidebar are clickable, and take one to the location of the the search result. The results are also highlighted in the document.
We also have in mind a compact interface, which adds a text-box(hidden when not in use) to the status bar, that can be accessed through a keyboard shortcut, or through a menu item, and cycles through the results as the Enter Key is pressed. We'd love to incorporate both features in the same extension, if its feasible, which I'm sure it should be. Let's see how it turns out...

No comments:

Post a Comment