From 65c0f0dc8cc36261858c31b8c9d1a7fba4ed083c Mon Sep 17 00:00:00 2001 From: Samuel Loury Date: Fri, 25 Dec 2020 06:43:41 +0100 Subject: [PATCH] (feat): use org-link-display-format in org-roam-insert (#1356) So that, like org-store-link, the computed description does not contain the links that were captured. --- org-roam.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/org-roam.el b/org-roam.el index cb72ee1..dedb1cf 100644 --- a/org-roam.el +++ b/org-roam.el @@ -1623,7 +1623,7 @@ If DESCRIPTION is provided, use this as the link label. See (_ (when (region-active-p) (setq beg (set-marker (make-marker) (region-beginning))) (setq end (set-marker (make-marker) (region-end))) - (setq region-text (buffer-substring-no-properties beg end)))) + (setq region-text (org-link-display-format (buffer-substring-no-properties beg end))))) (completions (--> (or completions (org-roam--get-title-path-completions)) (if filter-fn