I'm working on extending SearchDialog.java to include the following items (see the platform FindReplaceDialog.java):
1. Option 'Whole word'
2. Option 'Regular expressions'
3. Option 'Incremental'
4. Scope 'All'
5. Scope 'Expanded lines', visible only for trees
6. Scope 'Selected lines'
7. Dialog settings persistence
Comments and suggestions are welcome, esp. regarding item 5 and how to search un-expanded rows.
Good question. In the end the implementation is even more flexible than that using the existing SelectionSearchStrategy. Whatever the user can select is what he can search.
BTW, I couldn't figure out how to attach a screenshot to the forum, and in the end decided to move the discussion to the nattable-dev mailing list. You can see a screenshot there in the archives. The idea of searching hidden tree rows as a scope has moved to an option. I also added an option for selecting a row-first versus a column-first search.
suppose I have 60000 rows in table ,when I search the text , The text,found in the row is selected ,but I ve to scroll-up/down to reach the selected text/row. Instead of moving the scroll manually ,it would be better to move the scroll automatically to show the searched text/row to user.
Using NatTable as a plug-in in eclipse when I first open the editor ctrl-F does not seem to open the search dialog. Also pressing ctrl-F while editing a cell doesn't work. It seems I have to click somewhere outside the table for ctrl-F to pop-up the search dialog. Is there any solution?
It is always a matter of focus. What are you trying to achieve with the Ctrl+F in NatTable? Searching in an open editor? Well that is not the intended functionality. If the NatTable has the focus you can search for cells, but the key bindings does not override the default control bindings.