Skip to content
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

Note structure is not preserved when updating an Org note #3

Open
orgtre opened this issue May 17, 2024 · 0 comments
Open

Note structure is not preserved when updating an Org note #3

orgtre opened this issue May 17, 2024 · 0 comments

Comments

@orgtre
Copy link
Owner

orgtre commented May 17, 2024

Currently, when inserting a new note from Anki, the first ankiorg-truncate-headings-at characters from the first field are used as note heading. If this fits the whole contents of the first field, nothing further is inserted for the first field. Howoever, if it doesn't fit, the whole contents of the first field are inserted after the note heading, but before the first subheading. Subsequent fields are inserted under separate subheadings.

On the other hand, when an existing note is updated from Anki each field is inserted under a separate subheading, even if the whole first field fits in the heading.

Preferably how the notes are inserted should be controlled by two user options (one option to skip first field if it fits in heading, one option whether it should be put in contents before first subheading or in separate subheading if it doesn't fit), and then adding and updating should adhere to these. ankiorg--update-org-note-fields and ankiorg--insert-note-fields-from-alist need to be changed to fix this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant