branch: externals/marginalia commit e4b3fcd4151af7148e7c82cfe66abedeaa9216aa Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
marginalia--remote-p: handle shadow paths --- marginalia.el | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/marginalia.el b/marginalia.el index 94595d8..55dbb88 100644 --- a/marginalia.el +++ b/marginalia.el @@ -624,7 +624,7 @@ using `minibuffer-force-complete' on the candidate CAND." (defun marginalia--remote-p (path) "Return t if PATH is a remote path." - (string-match-p "\\`/[^:]+:" path)) + (string-match-p "/[^:]+:" path)) (defun marginalia-annotate-file (cand) "Annotate file CAND with its size, modification time and other attributes. @@ -633,7 +633,7 @@ These annotations are skipped for remote paths." (when-let (win (active-minibuffer-window)) (with-current-buffer (window-buffer win) (marginalia--remote-p (minibuffer-contents-no-properties))))) - (marginalia--documentation "*Remote*") + (marginalia--fields ("*Remote*" :face 'marginalia-documentation)) (when-let (attributes (file-attributes (marginalia--full-candidate cand) 'string)) (marginalia--fields ((file-attribute-modes attributes) :face 'marginalia-file-modes)