-
-
Notifications
You must be signed in to change notification settings - Fork 198
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
[Feature] Don't reset the YAML metadata when syncing #527
Comments
We cannot save yaml data in a Zotero note, keeping them seem to be not possible. |
Can I select the yaml field for synchronization? If you have the option, then you can set the zotero field such as copyright field as you want to import into yaml, synchronization will not affect the change of this field, unless the field is modified in zotero |
That could be a workaround. |
But, the note item does not have metadata. No insurance that the note item has a parent item with writable metadata. |
我遇到了同样的问题,每次同步的时候会自动刷新YAML,这让我无法在obsidian中使用文档属性的功能,很苦恼。 |
OK, so a possible workaround is to keep the YAML key-value starting with Example: In synced markdown: - libraryID: 123 # generated by BN, unmutable
- $keptData: xyz # added by user but starts with `$`, not overridden during syncing
- otherData: ABC # added by user, overridden during syncing After syncing: - libraryID: AJHKHS # generated by BN, unmutable
- $keptData: xyz # added by user but starts with `$`, not overridden during syncing |
This issue is stale because it has been open for 30 days with no activity. |
@davidoskky Any idea? If we have no further discussion the robot will close this issue |
I think the idea of the $ prefix is good, however I'd rather have the prefix on the keys generated automatically by zotero and not on the ones inserted by users. |
Hey all, I just discovered this plugin which sees awesome. I will probably switch to zotero 7 and start using it. For me the $sign for user-added YAML seems like a good comprise; even though I agree with @davide-grheco that it would be better for zotero YAML to be prefixed with a dollar sign, not to mess up user-added YAML in obsidian. However, that is not possible, I still think the prefix is the best workaround @windingwind |
Hi, @windingwind, any chance you could give an update? Even if it's to say you might not be able to implement this! fix option 1: add $ in front of frontmatter generated by zotero -> only these values can be removed/updated/insert by the plugin. Therefore other user-generated variables wont be affected. fix option 2 (but worse UX): ignore values with $ in front or perhaps a customizable value (in this way, user can set specific YAML variables that won't be renoved/overriden) |
Hello there, I'm sorry I just realized I replied with the account @davide-grheco by error. |
Hi, I use YAML data to track status and to display the progress in different views, it's an important part of my workflow for editing notes in obsidian (and it seems for some others too). Therefore it is important that the user generated YAML data is not overwritten. I would be happy with any solution or workaround. |
This makes sense to me. I'll try to implement it recently. |
Please check the latest beta: https://github.com/windingwind/zotero-better-notes/releases/tag/1.1.4-38 |
Thank you! I will try it out and let you know how it goes |
It's awesome, it works! :) |
glad to know:) |
Hi there. Thanks for your effort for this plugin. would that be easy to integrate? |
It seems there is no way then to auto-update tags in Obsidian? New Zotero tags won't get added to Obsidian unless the tags field is prefixed with $, but adding that prefix means that Obsidian doesn't recognize it as a tags field |
I export notes and keep them in sync, I do edit them externally as well. I'd like to be able to add things to the yaml frontmatter, but when the note gets synced with Zotero the yaml gets resetted to the exported one.
It would be nice if the sync process kept metadata contained in the yaml untouched.
Maybe you could introduce a sort of divider after which you can add your own metadata to the yaml and that is preserved.
The text was updated successfully, but these errors were encountered: