deanishe / alfred-repos

Browse, search and open Git repositories in Alfred
Other
315 stars 23 forks source link

“depth” option description is misleading #2

Closed kopischke closed 10 years ago

kopischke commented 10 years ago

Configuring the workflow for the first time, I hit a snag where my repos seemingly randomly disappeared from search results. As it turned out, this was due to my understanding of the depth config option. The README states:

use the depth option to restrict the search depth [...] (i.e. search within subdirectories of specified directory, but no lower)

which suggests it limits the search to a maximum subdirectory depth. However, the actual find command in update.py uses the -depth n option, which defines an exact subdirectory depth to be searched. This means either that

Personally, I would find the second option far more intuitive, but that is up to you.


Ref: Apple man page for OS X’ find

deanishe commented 10 years ago

Thanks for finding the bug. Should be fixed now.

kopischke commented 10 years ago

That was fast! Thanks for a great Alfred extension BTW.

deanishe commented 10 years ago

:+1: