andreikop / enki

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

Locator searches open files? #347

Closed bjones1 closed 8 years ago

bjones1 commented 8 years ago

It might be nice if the locator would also match in the list of opened files, in case I had a bunch open, making it easier to find one.

andreikop commented 8 years ago

@vi also will be happy

andreikop commented 8 years ago

@bjones1, @vi, how to implement this feature? Add new command? i.e. Switch Add opened files to the project files list? Shall opened files have greater priority? Other variants?

bjones1 commented 8 years ago

My suggestion: add opened files to the list of files that locator searches (I assume this is the project files list?), but with higher priority than the project files (although this could be optional). Nothing else special beyond that.

vi commented 8 years ago

In addition to prioritizing opened files, recently used (but now closed) files can also be visible/prioritized. Without this one can tend to stockpile opened files just to keep them at hand in Locator.

More debatable thing: recently used, but disappeared files. Maybe they can be on the list, but with lowered priority and displayed in gray.

andreikop commented 8 years ago

Idea by @bjones1 is implemented. @vi, showing recent files requites much more work. Skipping for now.

bjones1 commented 8 years ago

This is very nice. Thanks! It works great for me.