branch: externals/denote commit 27e5849cb02e5a6827c1ae26278255dae353b08d Merge: 956f5dfd10 da64be1a49 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: GitHub <nore...@github.com>
Merge pull request #578 from TomoeMami/main Fix Windows compatibility of `denote-link-ol-follow` --- denote.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/denote.el b/denote.el index fb44732538..2fa1c83d3a 100644 --- a/denote.el +++ b/denote.el @@ -6082,7 +6082,7 @@ query of file contents or file names (see the commands Uses the function `denote-directory' to establish the path to the file." (if-let* ((match (denote-link--ol-resolve-link-to-target link)) - (_ (file-exists-p (string-trim-right match ":.*")))) + (_ (file-exists-p (string-trim-right match ":[^/]+.*")))) (org-link-open-as-file match nil) (denote--act-on-query-link match)))