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
Fields not being properly recognized #252
Comments
Hello! For you and anyone else having problem with this, I got a workaround. Just in case it makes any difference, my steps were: I don't know if closing the app is needed, I just did it by coincidence. |
Possible reasonThe issue had been bothering me for quite some time, and I did find some workaround that you can try. The reason why the fields are not being recognized is because the add-on identifies the note types and fields when it's first installed and enabled, and they're not modified automatically when changes are made in Anki. As shown in the pics below, you can check note types and fields (FILE LINK FIELD) that are currently identified by clicking "Note Type Table" (which doesn't appear to be clickable I know 🥲). If the note types don't contain the targeted field names, which often occurs when they're added to Anki after installing Obsidian_to_Anki, then the targeted field syntax in notes will fail, and the content will be added to the previous field as described. Temporary solutionThe solution that works for me is actually pretty simple. I just uninstall, and install the add-on back for it to capture the note types and fields again. And check if the add-on successfully captures the note types and fields. |
The uninstall-reinstall workaround by @TR-792sp5ly worked for me as well. |
1 similar comment
The uninstall-reinstall workaround by @TR-792sp5ly worked for me as well. |
A workaround without having to reinstall (and lose your settings) is to edit the settings file for the plugin directly. Open the file |
The problem is because generation of for (let note_type of this.note_types) {
settings["CUSTOM_REGEXPS"][note_type] = "";
const field_names = await invoke('modelFieldNames', { modelName: note_type });
this.fields_dict[note_type] = field_names;
settings["FILE_LINK_FIELDS"][note_type] = field_names[0];
}
return settings; To fix this, we need to add the code to |
That's right, I desperately need to add a button like this. |
Any update on this issues ? It was quite frustrating to find this out. |
I fixed it for myself 2 years ago: #301 |
Certain fields are not being recognized, and the information that should belong in those fields is being added to whatever field I put on the previous line in the .md file. Here is an example card in Obisidian:
And here is what I get in the "Side effects" field:
I've tried renaming the fields, ensuring the spelling is the same between Obsidian and Anki, and clearing the cache.
This happens with other fields as well.
The text was updated successfully, but these errors were encountered: