Favor exact match #277

Open
jlecour opened this Issue Feb 22, 2012 · 3 comments

Comments

Projects
None yet
2 participants
@jlecour

jlecour commented Feb 22, 2012

Hi,

I use PeepOpen a lot and I'm loving it, but something is annoying me everyday.

In my Rails projects, I have both Gemfile and Gemfile.lock files (from Bundler).
When I search for "Gemfile", the first item in the search results is always Gemfile.lock even if there is an exact match in the found files.

Thans for making PeepOpen even more awesome.

@topfunky

This comment has been minimized.

Show comment Hide comment
@topfunky

topfunky Feb 22, 2012

Owner

Good point. I'll experiment with this and come up with a solution.

Owner

topfunky commented Feb 22, 2012

Good point. I'll experiment with this and come up with a solution.

@jlecour

This comment has been minimized.

Show comment Hide comment
@jlecour

jlecour Apr 16, 2012

Hi,

I've just notice that it's a matter of meta-data. It favors the last updated file where it should — imho — favor the best match.

If I touch Gemfile, then reload Peepopen and search for gemfile I get the correct file (Gemfile), but if I update the Gemfile.lock (via Bundler or touch) and reload Peepopen, I get the Gemfile.lock file first.

I don't know if I'm clear :-)

jlecour commented Apr 16, 2012

Hi,

I've just notice that it's a matter of meta-data. It favors the last updated file where it should — imho — favor the best match.

If I touch Gemfile, then reload Peepopen and search for gemfile I get the correct file (Gemfile), but if I update the Gemfile.lock (via Bundler or touch) and reload Peepopen, I get the Gemfile.lock file first.

I don't know if I'm clear :-)

@topfunky

This comment has been minimized.

Show comment Hide comment
@topfunky

topfunky Apr 18, 2012

Owner

Good point. It does prefer showing the last updated file. I'll experiment with this and see if exact match works better.

Owner

topfunky commented Apr 18, 2012

Good point. It does prefer showing the last updated file. I'll experiment with this and see if exact match works better.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment