Labs/Bespin/DesignDocs/Editor/Search: Difference between revisions

no edit summary
No edit summary
 
Line 25: Line 25:
* NOTES:
* NOTES:
** What is the search syntax? Purely subset? Regex allowed?
** What is the search syntax? Purely subset? Regex allowed?
** Where is the search done: On the server, or on the client using a Web Worker? How about we start with the server?
** How do you give settings such as "Ignore case"?
** How do you give settings such as "Ignore case"?
*** When you start to type something into the search box itself add the options as an overlay below it (where the number of matches is shown when results are there) with check boxes. As soon as you run the search, the overlay changes to show the results as the image above
*** When you start to type something into the search box itself add the options as an overlay below it (where the number of matches is shown when results are there) with check boxes. As soon as you run the search, the overlay changes to show the results as the image above
Line 51: Line 50:
** Allow for searching across multiple projects
** Allow for searching across multiple projects
** Allow for even tying to code search
** Allow for even tying to code search
* Where is the search done:
** On the server, or on the client using a Web Worker?
** Do we use a client side DB where available?
** This will tie into the "Offline" features.
== Implementation ==
NOTE: Malte has already gotten the following:
* Index all files in the project in a hash that maps words (and
substrings) to files and line numbers
* persistent indexes across page load is not implemented (Client Side DB)
* you cannot search substrings from the right side of a word
* you cannot search for characters that do not match \w
* you cannot search across lines (although this could be easily added)
355

edits