topfunky / PeepOpen-EditorSupport

Editor-specific plugins for the PeepOpen file chooser application.
http://peepcode.com/products/peepopen
52 stars 12 forks source link

Request: More intuitive default file selection in results #9

Open jmuheim opened 12 years ago

jmuheim commented 12 years ago

When having a file models/note.rb and models/note_type.rb, then typing note should select note.rb by default, not note_type.rb!

I guess this has something to do with the underscore _ coming before the . in the alphabet, but it's counterintuitive.

Example

topfunky commented 12 years ago

Good point. I often type a period at the end of my search to select the shortest filename, but it would be more useful if it appeared at the top of results.

jmuheim commented 12 years ago

I guess quite a good recipe would be to simply select the shortest available path in the list, this would most likely be the needed feature most of the times.

jmuheim commented 12 years ago

This is also a common unwanted case

example

I think space delimited searches should tried to be matched into slash delimited parts of the path (or whatever has been defined in "Space searches for").