“depth” option description is misleading
kopischke opened this issue · comments
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
- the behavior is intentional; in that case, the documentation should be reworded. Or that
- the
find
command should actually use the-maxdepth n
option for thedepth
setting.
Personally, I would find the second option far more intuitive, but that is up to you.
Thanks for finding the bug. Should be fixed now.
That was fast! Thanks for a great Alfred extension BTW.
👍