With the cursor on a file link, I'd like to set up an org-capture template which inserts the template into the target of the link.
I guess I add something like
(setq org-capture-templates '(("m" "Topic" entry (file (get-path-to-link-target-at-point)) "\n* Topic %?")))
to my init.el in order to achieve what I'm looking for. But I'm not able to code such a function
get-path-to-link-target-at-point. So how do I get the file path of a link target at my cursor location?