Open simurgh9 opened 5 months ago
That is intentional. By default treemacs does not show lock, backup, autosave and flycheck temp files. and the .git directory.
The behavior is controlled by treemacs-ignored-file-predicates
which by default contains treemacs--std-ignore-file-predicate
which filters all these files. For .git there's also treemacs-hide-dot-git-directory
.
I don't usually want to see these files but do you think a toggle for their visibility could be easily achieved?
This issue has been automatically marked as stale because it has not had recent activity (this bot only works as a reminder, it will not close issues).
I don't want to build individual toggles for every single file treemacs could ignore, it's not worth the maintenance and complexity effort on my end. However building something for yourself would be pretty simple, as long as you're okay with changing treemacs' entire filter. Just do something like this
(defun filter-toggle ()
(interactive)
(if (member #'treemacs--std-ignore-file-predicate treemacs-ignored-file-predicates)
(setf treemacs-ignored-file-predicates
(delete #'treemacs--std-ignore-file-predicate treemacs-ignored-file-predicates))
(setf treemacs-ignored-file-predicates
(cons #'treemacs--std-ignore-file-predicate treemacs-ignored-file-predicates))))
Emacs stores temporary dot files, e. g., program.c when edited and unsaved for
auto-saved-timeout
seconds will be copied to something like.#program.c
and written on disk. This file shows up as output ofls -a
but is not shown even aftert h
in treemacs.Is this the expected behaviour? If yes, is there a way to make these visible in treemacs?