From 911cc4c001748ada49c548fa58c05f0dd1213893 Mon Sep 17 00:00:00 2001 From: Gulshan Singh Date: Wed, 29 Mar 2023 23:05:29 -0700 Subject: [PATCH] Fix xrefs for remote connections over TRAMP --- dumb-jump.el | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/dumb-jump.el b/dumb-jump.el index e86138f..77bcde7 100644 --- a/dumb-jump.el +++ b/dumb-jump.el @@ -2231,7 +2231,15 @@ of project configuration." cur-line-num parse-fn generate-fn) search-paths)) - (results (delete-dups (--map (plist-put it :target look-for) raw-results)))) + (tramp-path-prefix (or (file-remote-p default-directory) "")) + + (results (delete-dups + (--map + (progn + (plist-put it :target look-for) + (plist-put it :path + (concat tramp-path-prefix (plist-get it :path)))) + raw-results)))) `(:results ,results :lang ,(if (null lang) "" lang) :symbol ,look-for :ctx-type ,(if (null ctx-type) "" ctx-type) :file ,cur-file :root ,proj-root)))