Hi @linxule and others, I saw your reply to my fork on Github. Thanks for the mention.
I would love to help with automation (I want to try with Cron) but I’ve not yet come to that point. My synching does not yet work flawlessly enough. Let me elaborate what I did so far to get it working…
First… Attachments like PDF, docx were not synched with Andy’s script. Alex Kessinger (Voidfiles on Github) created a adaptation of the script to provide for this:
Also I noticed that all the files were copied to their respective tagfolders but also (all) to the root of the Vault. Whatever I tried in the script it always was like that. I couldn’t figure out why (ideas are welcome) and I’ve found it confusing to see notes in two places in Obsidian.
Voidfiles came again to the rescue and helped me with a few extra lines.
He suggested to change the following line around line 281:
paths = [os.path.join(temp_path, filename)]
to this
if tags:
paths = []
else:
paths = [os.path.join(temp_path, filename)]
Now my Bear tag index looked the same as my Obsidian folders. I set the script to only copy the notes to the first tags in the note, again to prevent duplication.
But the problems I’m experiencing are:
- Some images in notes that look perfectly fine in Bear are not displayed in Obsidian
- Attachment links are not working in Obsidian
- If I add a picture or attachment in Obsidian they don’t show up in Bear after a sync.
It would be great if this thread could become a ‘study group’ how to be able to use Bear and Obsidian simultaneously. Thanks!