branch: externals/denote commit 490ad08718c77db00f6e0ee050db8a412321f977 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@protesilaos.com>
Make 'denote-query' insert a link without checking for matches Users who use this will most probably want to insert the link and then fill out the matches as they go. --- denote.el | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/denote.el b/denote.el index d6f0db63ae..f3a2dfbb41 100644 --- a/denote.el +++ b/denote.el @@ -5379,11 +5379,8 @@ always formatted as [[denote:QUERY]]. This is unlike what `denote-link' and related commands do, which always establish a direct connection to a file and their format is more flexible." (interactive (list (denote-query-prompt))) - (if-let* ((files (denote-retrieve-files-xref-query query))) - (progn - (denote--delete-active-region-content) - (insert (format "[[denote:%s]]" query))) - (user-error "No files with matching `%s'" query))) + (denote--delete-active-region-content) + (insert (format "[[denote:%s]]" query))) ;;;;; Add links matching regexp