-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bulk create/update #351
base: master
Are you sure you want to change the base?
Bulk create/update #351
Conversation
Two important features. Thanks for working on it |
For folks who want to be able to use this without waiting for the full PR to be approved, here is my modified 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 |
For my case, I changed the following code in main.js: to the following code : for (const item of e.items) { This works for multiple import. |
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:
update
function, and then forward the request tocreate
if the item doesn't exist, but the reverse should do fine.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.