sio / bash-complete-partial-path

Enhanced file path completion in bash (like in zsh)
Apache License 2.0
54 stars 2 forks source link

Ignore dot/hidden files #25

Open geekscrapy opened 1 year ago

geekscrapy commented 1 year ago

The macos OS creates .DS_Store files in every directory. bash_completions sees these as regular files and suggests them. Is is possible to have an ignore list, or just ignore hidden files by default? Or anther way?

Thanks!!!

sio commented 1 year ago

Ignoring dotfiles by default (unless completion input already contains /.) seems like a good idea, thank you. We could also add a configuration flag to _bcpp for users who prefer current behavior.

Between life and other projects I don't think that I'll work on this in near future. If you (or anyone else) want to tackle this, I'm avaliable for review and general discussion.