PKM-er / obsidian-zotlit

A third-party project that aims to facilitate the integration between Obsidian.md and Zotero, by providing a set of community plugins for both Obsidian and Zotero.
https://zotlit.aidenlx.top
MIT License
647 stars 29 forks source link

Bulk create/update #351

Open DanielRunningen opened 3 months ago

DanielRunningen commented 3 months ago

This is just a draft to get a really important feature addressed. It should close #246 and possibly resolves #269 as well.

I propose two things:

Doing a bulk import with these changes does still trigger the Obsidian menu to choose attachments for some of the items, but I feel like this is unavoidable and any assumptions made during import could be the wrong ones, so this part of #269 might be unavoidable.

I tried not to touch too many files, since this is all reverse-engineered from the Obsidian console. I would be happy to add/improve these changes, but I'd need some tips on building the repository.

DennisFriedl commented 3 months ago

Two important features. Thanks for working on it

DanielRunningen commented 3 months ago

For folks who want to be able to use this without waiting for the full PR to be approved, here is my modified main.js as a zip file. It also includes the date fix from my other PR.

To use it:

[!WARNING] I can't guarantee that this won't break something, so if you run into trouble with it, or suddenly don't trust me as a stranger on the internet, you can uninstall ZotLit as a plugin from Obsidian and re-install it. Your templates should remain unaffected.

Edit: clarifications