branch: externals/denote
commit 319107ecfde432c6b0b3cce959b1af6817ff37ee
Author: eum3l <d...@eum3l.mozmail.com>
Commit: eum3l <d...@eum3l.mozmail.com>

    Trim Org link location identifiers when necessary
---
 denote.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/denote.el b/denote.el
index 5c8f3f546f..c911c3e124 100644
--- a/denote.el
+++ b/denote.el
@@ -5382,7 +5382,7 @@ To be assigned to `markdown-follow-link-functions'."
 
 (defun denote-get-link-face (query)
   "Return appropriate face for QUERY."
-  (if (denote-identifier-p query)
+  (if (denote-identifier-p (string-trim-right query ":.*"))
       'denote-faces-link
     'denote-faces-query-link))
 
@@ -5758,7 +5758,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 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