-
Notifications
You must be signed in to change notification settings - Fork 42
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
Implementation of (custom type zdlink:
) Org links in (or on top of?) Zetteldeft
#79
Comments
That's simply because I first experimented with these ideas in my personal setup, and then shared it in a Github Gist when someone was looking for such functionality. It is rather crude (for example no If you decide to write code that does these things, be sure to share it. A more complete implementation of the |
If it makes you feel any better, when I was working on my implementation, I noticed the docs on that functionality seemed to be rather sparse. I think perhaps because it's relatively "new" functionality in Org, maybe they haven't had a chance to flesh out the docs yet. I did however find this YouTube video by John Kitchin about New link features in org-mode v9.0 (dated 2016-11-03) which was very helpful in figuring it out, as well as demonstrating several other quite neat and advanced functionalities. With those hints, I was able to play around and get the following working. Feel free to add it to your Zettel about Org Links or whatever you like. I did not implement the And finally, I never improved the completion to include a description, only the link part. However it only needs a little bit more work. I think someone interested in that probably wants to look at But I leave that all to you guys now. 😄 Cheers! 🍻 P.S. I think maybe this closes the issue? But I leave it up to you.
|
I'll close this issue for now, since you've moved on to other projects. For people finding this later, there is a useful code snippet here already: https://www.eliasstorms.net/zd-tutorial/2020-03-25-0928%20Integration%20with%20org-link.html If anyone wants to explore an |
Hallo gang,
This is touched on in
zd-tutorial/2020-03-25-0928 Integration with org-link.org
, however I wanted to expand on the idea.Scope
I am a heavy Orgmode user since years and In my view, I prefer to leverage all of that "already made" functionality in my Zettelkasten (and elsewhere).
However EFLS has also stated that he wants to keep Zetteldeft as generic as possible in order to suit many different people's needs and use-cases. In fact, if you look closely at the linked
zd-tutorial
(above) you can see that he even called the completion functionefls/zd-complete-link
(which is in his personal namespace and not inzetteldeft-*
one, which might be a clue to his intentions; or perhaps I am simply reading too much into that).At any rate, I wish to maintain compatibility with Zetteldeft, while giving myself the Orgmode features I want "on top" of that, in the same way that Zetteldeft should itself "apply cleanly" on top of Deft. Now this latter thing I think has not been explicitly stated, but it seems to me to be the policy, and at any rate is a good idea I think.
If I am wrong about any of that, please let me know EFLS. Of course we can put any of this directly into Zetteldeft, or not, as you prefer. If not, maybe eventually I make my own package at some point, call it
zetteldeft-org-links
or I don't even know what, but I am not worried about anything like that right now. Really it's just a few functions on top of Zetteldeft anyway. But that is how Zetteldeft itself even started out, amirite? 😄Implementation
OK, so what I have cobbled together is the following, so far:
For reference: Orgmode Manual: Appendix: Adding Hyperlink Types
Features
I will not publish the details of the functions, for the time being. And I am still working on them. But so far, this is what functionality I have working:
zdlink:2020-08-26-1234
) the tooltip resolves to title[[zdlink:2020-08-26-1234][link description]]
), which collapses to "link description", the tooltip resolves to the zdlinkorg-insert-link
zdlink:
part and not the description (still working on this). In reality this is same function fromzd-tutorial
link, above.Roadmap
Some things I still want to do:
completing-read
(shouldn't be too hard).:export
"method" (for lack of a better term) working to resolvezdlink
s for exporting to HTML (separate discussion on that in Feature idea: exporting via org-publish-project #69).Discuss? 😄
The text was updated successfully, but these errors were encountered: