Function: marginalia-annotate-file
marginalia-annotate-file is a natively 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 /nix/store/hym71by08nv7fpgl7asan3dvidx05yya-emacs-packages-deps/share/emacs/site-lisp/elpa/marginalia-20260926.1228/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)))