Function: marginalia-annotate-file
marginalia-annotate-file is a byte-compiled function defined in
marginalia.el.
Signature
(marginalia-annotate-file CAND)
Documentation
Annotate file CAND with its size, modification time and other attributes.
These annotations are skipped for remote paths.
Source Code
;; Defined in ~/.emacs.d/elpa/marginalia-20260724.810/marginalia.el
(defun marginalia-annotate-file (cand)
"Annotate file CAND with its size, modification time and other attributes.
These annotations are skipped for remote paths."
(if-let* ((remote (or (marginalia--remote-file-p cand)
(when-let* ((win (active-minibuffer-window)))
(with-current-buffer (window-buffer win)
(marginalia--remote-file-p (minibuffer-contents-no-properties)))))))
(marginalia--fields (remote :format "*%s*" :face 'marginalia-documentation))
(marginalia--annotate-local-file cand)))