Replies: 1 comment 1 reply
-
Generally seems fine but personally I would not touch the content of the note (end-matter as you call it). You can just alter the creation date and keep the modified date to the date of the import. Or if the information is that important you can simply store it as a label and display it using promoted attributes. You can have a similar tag for the source while you remove "Created with OneNote" entirely. This would also prevent you from issues if you run the script twice, as you wouldn't want the content to be appended twice with the information. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I have a large body of content I've imported into Trilium. I'm wondering how to handle dates in a way that's more useful.
Each note or node in Trilium has a
Created
andModified
date. For imported notes Created is set to the date of import. That's good to know and perhaps save, but I'm typically more interested in when that note was originally written or published in that external source. I want to introduce a third date: publication, or perhaps currency date, e.g. "information in this page is current to Nov 2023".The practical approach is to use the api to modify the Creation date to be a date extracted from the content after the node is initially created. I've sketched a process and some python code that will work for me:
Before I embark on this wholesale though, is this a good approach?
Beta Was this translation helpful? Give feedback.
All reactions