andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

Added Fuzzy searching command for Locator. #38

Closed polovik closed 12 years ago

polovik commented 12 years ago

It's command only search any word in current document by fuzzy logic. But when press Enter or select result of searching - nothing happen.

andreikop commented 12 years ago

I tested it. Works fine!

What will happen, when Enter is pressed?

polovik commented 12 years ago

I imagine this logic:

  1. user is typing fuzzy word
  2. than it select any result - by mouse, or by using arrow keys 'Up', 'Down' + Enter
  3. in QTreeView are displaying all lines, where this selected result occurred.
  4. if user selects any line (by mouse, or by using arrow keys 'Up', 'Down' + Enter), document will be scroll to this line. else if user press 'Backspace' - QTreeView will display all search results again.

May this logic be implement without big changes of Locator? And now keys 'Up' and 'Down' binded to show history. Is it possible rebind it?

andreikop commented 12 years ago

Not ready yet. We should think, how to make it useful.