mirror of
https://github.com/protesilaos/denote.git
synced 2026-09-10 07:16:20 -04:00
Simplify regexp in `denote-link-ol-follow'
This commit is contained in:
parent
54494edf5a
commit
7f91907a79
|
|
@ -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 ":\\{2\\}.*"))))
|
||||
(_ (file-exists-p (string-trim-right match "::.*"))))
|
||||
(org-link-open-as-file match nil)
|
||||
(denote--act-on-query-link match)))
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue