I found that the function will eat up spaces if the target link has spaces after it. I think it's because (org-element-context) returns the end position that is just before the next element / word. Fortunately there's a property :post-blank that we can use.
emacs version: 27.1 zotxt-emacs version: 20210115.456
First, thanks for this very helpful package!
I found that the function will eat up spaces if the target link has spaces after it. I think it's because
(org-element-context)
returns the end position that is just before the next element / word. Fortunately there's a property:post-blank
that we can use.Proposed solution: Replace
with