watchr icon indicating copy to clipboard operation
watchr copied to clipboard

Set the level of recurse into subdirectories

Open dewey opened this issue 10 years ago • 1 comments

Is there a way to restrict the level of recurse into subdirectories to for example only watch the top level directory in ~/dir/ but not the contents of ~/dir/anotherone/?

Thanks!


Want to back this issue? Place a bounty on it! We accept bounties via Bountysource.

dewey avatar Oct 08 '13 20:10 dewey

There is no specific option for limiting recursion depth; however, you can use a RegEx with the ignoreCustomPatterns option.

The RegEx would be something along the lines of ^~/dir/.*/.* because you want to ignore anything that is child item of a the subdirectory, not the subdirectory itself.

chase avatar Oct 08 '13 21:10 chase

Regex works. Otherwise fund it.

balupton avatar Nov 24 '23 14:11 balupton