has anyone used the org-capture template expansion “%(EXP)” (Template expansion (The Org Manual)) and made it work during node creation in org-roam? Here’s a minimal example of what I am trying to achieve:
How it should work: Creating a new node via “org-roam-node-insert” or “org-roam-node-find” will call “org-roam-node-insert” inside the capture buffer. A node can be selected and will be inserted after “#+filetags:”.
What actually happens: “org-roam-node-insert” is called and a node can be selected. However, the node is not inserted.
Okay, my previous response was probably unhelpful given this result. I think this result means that you need to create a wrapper function to return a string you want to be inserted and that org-roam-node-insert does not return a string. I think it returns nil (and inserts the node as a side effect). Does this make sense to you?
This makes absolutely sense. I was assuming that org-roam-node-insert returns a string. I am not sure, if I am proficient enough to write a wrapper. Maybe at some point. Calling org-roam-node-insert manually is a viable option for the time being