andreikop / enki

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

There should be quick identifier searching #41

Closed vi closed 12 years ago

vi commented 12 years ago

Enki should support quick way to search current work forward and backward (like '*' and '#' in Vim). What is a word should depend on current syntax highlight mode, defaulting to what is \b in regexes.

andreikop commented 12 years ago

2 moved to #42. vi, add themselves as watcher for it

  1. Alpha version is done. Let's start testing it!
andreikop commented 12 years ago

Shortcuts are Ctrl+< Ctrl+>

vi commented 12 years ago

Seems working, waiting for highlighting of this and other search results in visible part of file.

vi commented 12 years ago

Maybe there should also be Ctrl+Shift+> and Ctrl+Shift+< to searching for bigger things - with [-_/\:\'[]"&^\%\$#\@!`~], but not [\ (){}\n] being parts of word (somewhat like "w" and "W" in Vim)? Actually it will be good to have configurable regex for Ctrl+Shift+> and programming_languate-defined regex for Ctrl+>.

andreikop commented 12 years ago

Why do you need Ctrl+Shift+<> and configurable regex? I don't want to have too many features. It would be difficult to remember and use it.

vi commented 12 years ago

Maybe not really needed; I'm just thinking up features and proposing them. At least Ctrl+Shift+< is obviously a low prio.

vi commented 12 years ago

In the latest version I already see the highlighting of other occurrences, but not when using Ctrl+<. I think the highlight should also be active for "Search word under cursor" feature while "Match X of N" label is visible.

andreikop commented 12 years ago

I opened #52