Function: treemacs--reject-ignored-and-dotfiles

treemacs--reject-ignored-and-dotfiles is a byte-compiled function defined in treemacs-core-utils.el.

Signature

(treemacs--reject-ignored-and-dotfiles FILE)

Documentation

Return t when FILE is neither ignored, nor a dotfile.

FILE here is a list consisting of an absolute path and file attributes.

Source Code

;; Defined in ~/.emacs.d/elpa/treemacs-20251226.1307/treemacs-core-utils.el
(define-inline treemacs--reject-ignored-and-dotfiles (file)
  "Return t when FILE is neither ignored, nor a dotfile.
FILE here is a list consisting of an absolute path and file attributes."
  (declare (side-effect-free t))
  (inline-letevals (file)
    (inline-quote
     (let ((filename (treemacs--filename ,file)))
       (and (not (s-matches? treemacs-dotfiles-regex filename))
            (--none? (funcall it filename ,file) treemacs-ignored-file-predicates))))))