branch: externals/denote
commit 2aacd8f90d4c8765ffd00dc5c6ab8be5e13138ff
Merge: a576d8917c 7f91907a79
Author: Protesilaos Stavrou <[email protected]>
Commit: GitHub <[email protected]>

    Merge pull request #658 from alvmts/alvmts-patch-1
    
    Fix trimming of Org links in `denote-link-ol-follow'
---
 denote.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/denote.el b/denote.el
index 4ce6ea284a..9c69ddaafb 100644
--- a/denote.el
+++ b/denote.el
@@ -6849,7 +6849,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)))
 

Reply via email to