redguardtoo / find-file-in-project

Quick access to project files in Emacs
GNU General Public License v3.0
428 stars 57 forks source link

ffip-prune-patterns is not well defined for fd #101

Closed ShuguangSun closed 6 years ago

ShuguangSun commented 6 years ago

Windows 7, Emacs 27.

For example: the ".d" in ffip-prune-patterns will match ".emacs.d" and exclude all files under subdirectory ".emacs.d/". It should be ".d$" and treat "d" as file extension.

No sure whether it is fd's issue under windows.

redguardtoo commented 6 years ago

fd use glob pattern for -E option, not regular expression. See https://en.wikipedia.org/wiki/Glob_%28programming%29

The global pattern does match whole string. So $ is not needed.

By default, fd ignore hidden directory (directory name start with DOT). You can use ffip-rust-fd-extra-opts to pass -H, but -H will override all -E patterns.

Anyway, it's fd's problem. My code is fine.

ShuguangSun commented 6 years ago

Got it. Thanks.