Comments (5)
Great that it works for you!
One issue with this, is that when you change the title of the note, the link will be broken. That's why the zettel system favours IDs rather than file links. To follow these types of "links", use zd-avy-file-search
, which should be as convenient as following a link (unless you want to be able to click with the mouse).
from zetteldeft.
You're right about the link breakage -- I guess that's what I meant by bringing this little piece of code here. Theoretically the ID should be both unique and static, so it seems possible to write some sort of link-checker function that would grab the ID of each link in the zettel, check it against the IDs in the .deft
folder, and update the text between the ID and the extension in the link to address name changes to automate that maintenance. But I super don't know how to do that, haha.
And absolutely -- that id-based jump system is one of the things I really like about Zetteldeft. You've made an excellent package!
My problems are actually more with Deft than with this package, and this is me trying to work around having to use that interface for a workflow that's becoming more and more important for me.
I find Deft to be excruciatingly slow, and moreso all the time as I add entries to the Zettelkasten -- and that situation definitely doesn't seem to have any hope of getting better. I don't have the skills to find a better back-end solution, and the package seems to be in maintenance mode rather than active development so I don't think the owner is going to make big changes at this point.
I've been trying to find a way to leverage the wiki-ish link handling aspects of Org, and the ID-handling aspects of your package, to get to a place where all this is functional over the long term and with an arbitrarily large set of notes -- kind of hybridizing your zettel functions with a personal wiki. I don't know.
At this point, I'm thinking I've just gotta find some other way to implement a zettelkasten entirely.
from zetteldeft.
For whatever it's worth, I modified the original function to create relative links rather than absolute links:
;; Insert Zettel Link
(defun org-insert-zettel (file-name)
"Finds a file, inserts it as a link with the base file name as the link name, and adds the zd-link-indicator I use to the front."
(interactive (list (read-file-name "File: ")))
(org-insert-link nil (concat "file:" (file-name-base file-name) "." (file-name-extension file-name)) (concat zd-link-indicator (file-name-base file-name))))
from zetteldeft.
Thanks for sharing how you use the package, but I'll close this issue. Feel free to comment if you think it should be reopened.
from zetteldeft.
For those who are looking for a way to integrate with org-mode
links, I came up with the following: https://gist.github.com/EFLS/b64e2914fc9c51164131265a375a994a
This relies only on zetteldeft ID, not the full filename, so that it doesn't break links when files change name or are moved around.
from zetteldeft.
Related Issues (20)
- Error in zetteldeft-new-file-and-backlink and update the function HOT 2
- Deft doesn't strip #+STARTUP options at the beginning of note from title HOT 4
- FeatureRequest: Inform about dead link when `C-c d f` HOT 4
- Question: Batch rename tags on all related zettels HOT 1
- Which special characters can be used to distinguish special tags? HOT 3
- Question: What is a backlink HOT 1
- FeatureRequest: Handle special characters in zettels filenames HOT 7
- zetteldeft-find-file behave different HOT 1
- FeatureRequest: create new note in a sub-directory HOT 1
- zetteldeft-full-search-find-file: possibility to see results as we type keywords? HOT 3
- Org-capture via org-protocol to create notes directly from the browser HOT 2
- Right hand side back-links window HOT 3
- zetteldeft-find-file not using follow mode HOT 5
- Strange line break HOT 2
- Sorting of files in zetteldeft-find-file HOT 2
- Add a function analogous to zetteldeft-insert-link-{zd,org}-style but for markdown
- make the function to extract a title from a note customizable
- shouldn't zetteldeft--check return nonnil or nil rather than signalling an error? HOT 1
- Incompatibility with Org 9.5.5? HOT 3
- Is this expected behavior for dynamic blocks? HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zetteldeft.