diff options
| author | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-15 17:09:31 +0200 |
|---|---|---|
| committer | Bozhidar Batsov <bozhidar@batsov.dev> | 2026-02-15 17:09:31 +0200 |
| commit | ee757bf957d7551018c8aa1de03dbd9c383fa8f1 (patch) | |
| tree | 602b69a275f5c63e07a9f9cd8d8afb6e04d91e2a | |
| parent | dd06dfd912656d41f2c63066aa8bacb898ddf7a2 (diff) | |
Check globally-ignored-file-suffixes in native indexingfeature/1959-native-indexing-suffixes
Fixes #1959
projectile-ignored-file-p now checks projectile-globally-ignored-file-suffixes
in addition to projectile-globally-ignored-files and file patterns.
Previously the suffix check only happened in projectile-remove-ignored
which is used by hybrid indexing but not native indexing.
| -rw-r--r-- | projectile.el | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/projectile.el b/projectile.el index 6c5306b..925fbc0 100644 --- a/projectile.el +++ b/projectile.el @@ -1986,7 +1986,11 @@ A pre-computed list of IGNORED-FILES may optionally be provided." (seq-some (lambda (name) (string-match-p name file)) - projectile-global-ignore-file-patterns))) + projectile-global-ignore-file-patterns) + (seq-some + (lambda (suffix) + (string-suffix-p suffix file t)) + projectile-globally-ignored-file-suffixes))) (defun projectile-check-pattern-p (file pattern) "Check if FILE matches globbing PATTERN." |
