Code Monkey home page Code Monkey logo

Comments (5)

EFLS avatar EFLS commented on June 19, 2024

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.

termitereform avatar termitereform commented on June 19, 2024

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.

termitereform avatar termitereform commented on June 19, 2024

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.

EFLS avatar EFLS commented on June 19, 2024

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.

EFLS avatar EFLS commented on June 19, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.