I am looking to move my notes out of Bear and into Drafts. At some point last year, I moved a bunch of Drafts into Bear. Now, with some of the newer Drafts features, I feel like Bear is unnecessary and I’m ready to keep it all in Drafts.
My plan to do this is to simply export all the Bear notes and import them into Drafts. This will result in many duplicates, but not too many (maybe 100-200). Some of the duplicates may have subtle differences (mainly additions on the Bear side).
- query for a bunch of drafts tagged X
- take each draft and search for another draft with same title
- diff those two drafts
- save the one with the most text in it and delete the other one (or maybe the one with the most recent modification date, which I can preserve in importing from Bear)
I know I can do step 1, but after that I’m not entirely sure if it’s possible. I think I can repurpose @jsamlarose diff script for step 3 (his script diffs different versions of the same draft). I’m not entirely sure about step 2 either, maybe the titles could be different too? Could there be a way to search for drafts that are mostly the same?
Basically, before I started hacking on this, I was curious if others had any opinions about the overall approach or any specific guidance on my plan.