atom-project-plus icon indicating copy to clipboard operation
atom-project-plus copied to clipboard

Filter by path in project finder

Open ursbraem opened this issue 7 years ago • 3 comments

Did I get it right that the ctrl-cmd-p filter just searches the main directory name, but not the project's path?

Because, most of my projects have the same root folder and thus, look like that in the project finder:

live ~/Websites/clientA/web/live

live ~/Websites/clientB/web/live

live ~/Websites/clientC/web/live

So if I type "clientC", the filtering is not applied. And filtering by "live" would make no sense. Is there a way to make the project finder search the entire path?

ursbraem avatar Aug 19 '16 11:08 ursbraem

Currently the Project Finder only filters by name. I'd suggest first saving, then editing the titles of those projects to include the client's name: Project Plus: Save then Project Plus: Edit Projects in the command palette. It is something that could be added though if you still need it. Thoughts, @mehcode?

willdawsonme avatar Aug 19 '16 23:08 willdawsonme

I seem to remember a TODO comment indicating this somewhere in the code base at one time (it's not there now). Anyway.. definitely in favor of this. We should rank an exact name match higher than a path match.

Relevant code to modify:

https://github.com/mehcode/atom-project-plus/blob/master/lib/project-finder-view.js#L124-L129

mehcode avatar Aug 20 '16 00:08 mehcode

Thanks for considering the feedback, great! And: I hadn't been aware of the save / edit option – works for me!

ursbraem avatar Aug 23 '16 09:08 ursbraem