branch: externals/denote
commit 6502817682a73910793a70684474ca693daedb68
Author: Protesilaos Stavrou <[email protected]>
Commit: Protesilaos Stavrou <[email protected]>
Make denote-link-find-file work with plain links
---
denote-link.el | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/denote-link.el b/denote-link.el
index ae5d94dd48..5b93124469 100644
--- a/denote-link.el
+++ b/denote-link.el
@@ -258,7 +258,8 @@ format is always [[denote:IDENTIFIER]]."
(let (matches)
(save-excursion
(goto-char (point-min))
- (while (re-search-forward regexp nil t)
+ (while (or (re-search-forward regexp nil t)
+ (re-search-forward denote-link--regexp-plain nil t))
(push (match-string-no-properties 1) matches)))
matches))