-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom link handler #38
Conversation
… into custom-link-handler
I rebased it onto your main branch :) |
links.style
Thanks @jmbuhr! Looking forward to testing this out later today :) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @jmbuhr, this is an elegant solution :)
Just merged this into dev, which I'll merge into main soon when I'm sure the other recent updates are ready :) |
Just added an explicit transformation option to complement this feature! The old |
Based on the discussion in #10
This adds the ability to pass a user-defined lua function to internally transform the path of a link.
Where internally means that the link will be displayed and written in the document un-transformed but it's transformed version will be used for file-creation and navigation.
This is helpful for navigating e.g. a folder of files created by https://logseq.com/
Note: In logseq one can choose the way dates for journal entries are displayed. For example, if the option YYYY-MM-DD is choosed this config works:
It can now succesfullly open pages in
pages
, even those created by logseq for zotero entries, which logseq puts aspages/@...
, as well as journal pages injournal
.