-
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
There should be "upsert" functionality #94
Comments
Can you explain a bit more what the functionality is you aim for? Is this similar to searching via Deft and -- when no notes are found -- creating a new note with return? (Or something similar, I don't use it.) |
Argh, I had no idea that that existed. AFAICT it's just like you said. But I think it's nicer to use. I just implemented |
I'm still a bit in doubt whether this should be included as default Zetteldeft behaviour. Not that I don't think it is useful, but I think the use case is very specific. Can you perhaps explain a bit more how they fit in your workflow? For exapmle with |
Hi, I'm sorry for taking so long to respond. Contrary to what I posted earlier, I don't think you can do what my upsert functions do as conveniently from I use my upsert functions most when I'm working on a note, I think of something tangentially related that I don't want to forget - but I also don't want to lose my train of thought in the current note. I find having fewer steps to create a stub note to be very helpful. In fact, I don't even run my upsert function directly that often. Instead, I use this little wrapper function (that I definitely don't expect you to accept!): (defun mw-zetteldeft-new-file-and-link (str)
(interactive (list (read-string "Note title: ")))
(progn (split-window)
(zetteldeft-upsert-and-link str)
(end-of-buffer))) Anyway. If you don't want to give these functions bindings, that's fine. If, even once their problems are worked out, you don't want to include them at all, that's fine too—I have no problem maintaining them for my own use. But they've made my experience using zetteldeft much more pleasant and so I thought other people might feel the same way. |
Thanks for the additional info. I'll try to explore such a feature by using it, hopefully soon! |
There should be a way to edit a note that already exists or to create a new one in one go.
I wrote a function that does this. I'll submit a PR in a few minutes.
The text was updated successfully, but these errors were encountered: