branch: externals/embark commit 99e6dbf816b303786db1c503180d0ab3a71ced14 Author: Liu Hui <ilu...@users.noreply.github.com> Commit: Liu Hui <liuhui1...@gmail.com>
embark-org: transform org attachment link to org-file-link --- embark-org.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/embark-org.el b/embark-org.el index e47b2ba874..7afb775248 100644 --- a/embark-org.el +++ b/embark-org.el @@ -247,6 +247,12 @@ (cons 'org-file-link (replace-regexp-in-string "::.*" "" (string-remove-prefix "file:" target)))) + ((string-prefix-p "attachment:" target) + (cons 'org-file-link + (expand-file-name + (replace-regexp-in-string + "::.*" "" (string-remove-prefix "attachment:" target)) + (org-attach-dir)))) ((string-match-p "^[./]" target) (cons 'org-file-link (abbreviate-file-name (expand-file-name target)))) ((string-prefix-p "elisp:(" target)