Hi,
I hope that I'm not doing something bad by asking a question on here
instead of contributing - I'm new to all of this. =)
I was wondering how I can import a dozen or so journal entries from
org-roam into denote. I don't want the note creation date to be today
(or tomorrow), etc...but I want it to reflect the time and date of the
journal entry when I originally made it.
Is there a way, or do I have to just make the note, copy/paste, and then
edit the ID by hand in dired? I only have about a dozen or so to import
so it wouldn't be really bad to do it that way, but I just was wondering
if there was a better way that somebody might be aware of.
BTW, thanks Prot and everyone else for such a fantastic package. It
really fits my needs perfectly. 👍
--
Summer,
Sent from MU4E in Emacs,
Because I'm becoming a GODDESS at this!
> From: Summer Emacs <summeremacs@gmail.com>> Date: Sat, 09 Jul 2022 13:10:11 +0200>> Hi,
Hello there!
> I hope that I'm not doing something bad by asking a question on here> instead of contributing - I'm new to all of this. =)
You are doing it right. This mailing list is for everything related to
Denote, including discussions. Everyone is welcome, not just
programmers who contribute code.
> I was wondering how I can import a dozen or so journal entries from> org-roam into denote. I don't want the note creation date to be today> (or tomorrow), etc...but I want it to reflect the time and date of the> journal entry when I originally made it.>> Is there a way, or do I have to just make the note, copy/paste, and then> edit the ID by hand in dired? I only have about a dozen or so to import> so it wouldn't be really bad to do it that way, but I just was wondering> if there was a better way that somebody might be aware of.
For the time being, we do not have any means for bulk processing. So
you must do it manually. There are two ways.
1. Using 'denote-date' to create notes with a past date
-------------------------------------------------------
The command 'denote-date' prompts for a date before creating a new note.
The value you give to it looks like "2022-07-09". If you have multiple
entries per day, add a time parameter to the value you provide, such as
"2022-07-09 14:26". The unique identifier will reflect your input.
Then copy the file contents from the old to the new file.
2. Renaming the old files with 'denote-dired-rename-file'
---------------------------------------------------------
Instead of copy-pasting between old and new files, you can just rename
what you have to a Denote-style file name. This is done with the
command 'denote-dired-rename-file'.
If you are in Dired, the command will operate on the file at point. If
there is no file at point, it will prompt you for a file. By default,
it asks for confirmation and shows you how the new name will look like.
You just confirm the choice and it performs the renaming.
The one potential problem with this approach is that it reads the date
from the file's attributes in order to derive the unique identifier.
Specifically, it searches for the last modification time. So, if you
have an entry from 2022-07-01 but you edited it today, its identifier
will reflect the current day.
[ Maybe we can improve that. If anyone reading this has any ideas,
please let me know. ]
> BTW, thanks Prot and everyone else for such a fantastic package. It> really fits my needs perfectly. 👍
You are welcome!
All the best,
Prot
--
Protesilaos Stavrou
https://protesilaos.com
Protesilaos Stavrou @ 2022-07-09 14:37 :
> Hello there!
I feel like I just got a superstar autograph with this reply. =D
> You are doing it right. This mailing list is for everything related to> Denote, including discussions. Everyone is welcome, not just> programmers who contribute code.
Thank you. I appreciate that so much. =)
> For the time being, we do not have any means for bulk processing. So> you must do it manually. There are two ways.
--- snip ---
Thank you for the methods. I'll be trying #1 first to see if it works
later this evening and if it doesn't, I'll try #2 (#1 seems easier for
some reason to me?) I have used rename note as per your tutorial video
and I found it really useful for adding keywords to files that I forgot
to add when I first made them.
> [ Maybe we can improve that. If anyone reading this has any ideas,> please let me know. ]
As I mentioned for my sitiation alone, it's only about a dozen entries
because I only started using org-mode and org-roam in the last few
weeks. But I'm sure that some others might want to import their much
larger journals after seeing how amazingly simple and wonderful denote
is, as I'm doing now. Oh, and I wanted to say your tutorial is also a
great crash course on using dired, which was on my TODO list since the
last week while learning emacs. =)
> You are welcome!>> All the best,> Prot
Thanks again and I'll post again if I have any other problems or ideas
and such. I'm very glad to have joined this community. =)
--
Summer,
Sent from MU4E in Emacs,
Because I'm becoming a GODDESS at this!
> From: Summer Emacs <summeremacs@gmail.com>> Date: Sat, 09 Jul 2022 15:41:15 +0200>>> Hello there!>> I feel like I just got a superstar autograph with this reply. =D
I think you should never hesitate to contact a project's communication
channels. In the worst case scenario, they will redirect you to another
resource that answers your questions.
For my projects, in particular, I want to encourage people of all skill
levels to participate. It is not just code that helps. By learning
about one's workflow, we may gain insight into patterns of interaction
we were not familiar with or did not expect. For example, now we have
an idea about how to migrate files to Denote: it is an interesting topic
to think about.
If the mailing list or the GitHub/GitLab mirror are not suitable, you
can contact me privately: <https://protesilaos.com/contact>. I always
reply in a timely fashion.
>> You are doing it right. This mailing list is for everything related to>> Denote, including discussions. Everyone is welcome, not just>> programmers who contribute code.>> Thank you. I appreciate that so much. =)
You are welcome!
>> For the time being, we do not have any means for bulk processing. So>> you must do it manually. There are two ways.>> --- snip --->> Thank you for the methods. I'll be trying #1 first to see if it works> later this evening and if it doesn't, I'll try #2 (#1 seems easier for> some reason to me?) I have used rename note as per your tutorial video> and I found it really useful for adding keywords to files that I forgot> to add when I first made them.
Okay. If there is any problem, please report it.
>> [ Maybe we can improve that. If anyone reading this has any ideas,>> please let me know. ]>> As I mentioned for my sitiation alone, it's only about a dozen entries> because I only started using org-mode and org-roam in the last few> weeks. But I'm sure that some others might want to import their much> larger journals after seeing how amazingly simple and wonderful denote> is, as I'm doing now.
We would need to consider the technicalities. Making changes to many
files is the kind of operation that must not be taken lightly. Perhaps
if these files already have front matter like "#+title" and "#+filetags"
we can automate the process. The tools are there, though we miss the
function that iterates through a list of files, while guarding against
relevant errors.
> Oh, and I wanted to say your tutorial is also a great crash course on> using dired, which was on my TODO list since the last week while> learning emacs. =)
Dired is an excellent tool! I think Emacs' official manual does an
excellent job at outlining its feature set.
>> You are welcome!>>>> All the best,>> Prot>> Thanks again and I'll post again if I have any other problems or ideas> and such. I'm very glad to have joined this community. =)
Glad to have you here!
--
Protesilaos Stavrou
https://protesilaos.com