-
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
How to regenerate correct IDs? #67
Comments
Hopefully you're on Unix or a Mac or on Windows with the Unix subsystem or Cygwin. Here's what I do when I get in this situation. Get to a shell, and
When run on a directory containing a file named after your example, it produces this:
When you're satisfied this is the right output, pipe the output of that to the shell to execute the renames.
Here's an example on a directory containing the file you mention:
(Variations on this theme are how I have migrated tons of files into the appropriate format for my Zettelkasten.) |
Thx a lot for the fix! It worked greatly. Another thing is that I wonder if this setup is right or I can improve it in my init.org: (use-package zetteldeft (defun zetteldeft-generate-id () (require 'zetteldeft) It is working, but perhaps I can improve the syntax. Also I would like to change the auto-saving time in my deft in the init.org. I know how to change it in my deft.el, but this solution is not good because when MELPA updates deft, I have to set auto-save time again. Here is my deft setup in init.org: (use-package deft
(with-eval-after-load 'deft (setq deft-strip-summary-regexp I wonder where I should set the auto-save time in this deft setup to save every 30 seconds and how to add this in the above use-package configuration. :) |
With respect to I've not used
The |
Thx for the suggestion. I've fixed everything now. |
I made a mistake setting up my IDs and some of my files look like this:
10-06-2020-22:53 python_automateBSW01.org
The problem is that this format does not create a proper ID when I tell zetteldeft to copy the current ID. It only shows the paragraph symbol with no identification.
Then I reinstalled zetteldeft and the files are ok, generating correct IDs like that:
2020-05-16-1139 python_course-AtBSwP.org
Question: How do I fix my files with this ID format 10-06-2020-22:53 python_automateBSW01.org to be like this 2020-05-16-1139 python_course-AtBSwP.org. I think the (:) colon spoiled some of my files IDs.
Do I have to recreate all those files copying and pasting the contents or there is a way to batch fix all the files with the (:) colon IDs?
The text was updated successfully, but these errors were encountered: