I have set variable "projectile-globally-ignored-file-suffixes" to a list of suffixes that I want to ignore when I use "helm-projectile-find-file" to list files in a project to be opened (visited). Like this:
(setq projectile-globally-ignored-file-suffixes '(".png" ".gif" ".pdf" "*.class"))
However it does not work, files with those suffixes still appear in the helm list.
For the record, it does work with projectile-find-file.
I meet the same problem, how to fix it ?
Same here
(setq projectile-globally-ignored-file-suffixes '(".png" ".jpg" ".gif" ".woff" ".woff2" ".ttf" ".cache"))
Running projectile-find-file still returns results with .png and .woff extensions
Edit: D'oh! I had caching enabled, and config changes don't invalidate the cache. Running projectile-invalidate-cache then searching again reflected my changes.
Same issue here with the value '("~"). Running projectile-invalidate-cache and/or restarting Emacs appears to have no effect. Happy to help test patches, but both cursory searching through the codebase hasn't turned anything up and using customize to ensure I'm creating the variable correctly hasn't done it.
I also have this problem and it's a very critical for me. Anybody have a solution to this issue or hints on which function that should be modified to fix it?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contribution and understanding!
This issues been automatically closed due to lack of activity. Feel free to re-open it if you ever come back to it.
despite the lack of attention here, this is still an active bug for me. performing the following steps:
(setq projectile-globally-ignored-file-suffixes '("class"))
M-x projectile-invalidate-cache
still leaves Foo.class files listed in the selection for projectile-find-file
Also active bug here.
Following up. A restart of emacs seems to have resolved this issue for me. However, I have two customizations in place -- projectile-globally-ignored-directories and projectile-globally-ignore-file-suffixes. I'm unsure which is actually having impact.
Are you sure that your are not using alien indexing method that does not do any postprocessing?
Hello,
I also encounter this issue (setting both projectile-globally-ignored-directories and projectile-globally-ignore-file-suffixes) does not work with alien (show both ignored dirs and suffixes).
When using native, directories are ignored, but not suffixes :(
How can we help making this work again?
This is still an issue.
Agreed, the issue is still present. Could this be reopened?
Hello
Apparently the docs state that using alien indexing (which is the default indexing behaviour for max/linux) will by design avoid all post-processing by projectile, which implies that projectile-globally-... variable contents will not be taken into account. .
The two available options, as I understand it from reading the manual, are to 1/ explicitly switch to either hybrid or native indexing method, or 2/ customize the projectile-generic-command for projects with no VCS (since for projects with VCS you can use the VCS ignore system anyway)
Best
I'm using native and it still uses files in the suffix exclude to search. Also, something like "-*.md' in .projectile is not honoured and helm-projectile-grep still searches .md files. The major issue with using alien that uses vcs ignore is that its seemingly impossible to include sub-projects that are ignored in the top level. eg emacs.d/straight/repos. - I tried reincluding them with bangs in .ignore and .projectile but with no luck.