Attempt to keep timestamps of the original Bear notes#10
Attempt to keep timestamps of the original Bear notes#10bernardoamc wants to merge 1 commit intomainfrom
Conversation
This will allow users to still see the expected order of their files based on the modified date when migrating to Obsidian.
|
@coding-camel Do you have time to see if this fully (or partially) solves the timestamp issues? If so, I will adjust tests and merge the PR so everyone can enjoy a better migration process. :) |
|
I tested this pr today, If a note was created at Running the script at 12:43 makes it created at So keeps the modified date. But loses the created date, which is the most important in my opinion. |
|
@coding-camel Thanks for taking a look! I will spend some time playing with it to see what can be done, we are moving in the right direction. 😄 |
|
Hey there, hope no one minds me jumping in! I ran into the same problem with the I sorta worked around it, but with a caveat: To keep all of the original timestamps, I ended up storing the The catch is that my solution requires the file itself to move. It only really worked because I only wanted the first tag to create the folder structure, instead of duplicating notes for each tag in a note. I'm not 100% sure how to implement that if we need to duplicate the notes for all of the tags within but hope it helps! |
|
@DraconMarius Thank you for the insights, I really appreciate it! This is a fun problem to tackle. I've been struggling to find time to make the necessary changes, but I'm totally open to incorporate those changes if anyone would like to take a stab at it. I also hope I can find more time soon to improve a few things in the code. 😄 |
|
@bernardoamc Of course no problem at all! I was tunnel visioned on that problem for far too long haha. I don't know anything about ruby but will definitely take a stab at it one of these days too :) |
This will allow users to still see the expected order of their files based on the modified date when migrating to Obsidian.
See #9