Replies: 1 comment 4 replies
-
|
I suspect but am not sure that Neorg‘s macro systems should let you do this using tag extensions and the Janet macro system. The idea of defining a custom export target is definitely in there. |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Org mode has this feature I really like where you're able to define your own link handler/type. It looks like this in practice and the docs are here.
I think it would be pretty cool if neorg could support something like this. For instance, say:
And then when people click on the link, they could configure neorg to call a function as such:
In addition to that, org mode lets you define how it is exported as well. So that would look something like:
Implementation wise, I've read that neorg broadcasts events, so I imagine this wouldn't be too too difficult to implement if there is a "linked clicked" event and we can specify which handlers can listen to that event.
One thing I wish orgmode had with this was the ability to set explicit parameters to the links (it's relatively implicit since I would make parameters by just butting spaces between what I consider params and splitting there). So if something like
which would then be passed as a table to
context.paramswould be pretty powerful.Beta Was this translation helpful? Give feedback.
All reactions