junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
65.81k stars 2.41k forks source link

walker-skip should accept nested directories, not just a single path component #4107

Closed jyn514 closed 4 hours ago

jyn514 commented 4 days ago

Checklist

Output of fzf --version

0.56.3 (add1aec)

OS

Shell

Problem / Steps to reproduce

$ mkdir -p a/b
$ touch a/b/foo
$ fzf --walker-skip a/b

i expect that this does not return a/b/foo. instead it does show it.

if i use --walker-skip b, it correctly ignores the file. but i don't want to ignore all directories named b, only this particular directory.