noembryo / KoHighlights

KOHighlights is a utility for viewing KOReader's highlights and/or export them to simple text, html, csv or markdown files.
MIT License
128 stars 5 forks source link

Include Chapter Titles But Only Once Per Chapter (not on every annotation) #28

Closed AaronKnowls closed 1 year ago

AaronKnowls commented 1 year ago

When exporting markdown directly from KoReader, it groups the highlights with the titles of the chapters, which I find quite useful.

Example:

The Molecule of More
##### Daniel Z. Lieberman, Michael E. Long
## Chapter 1 LOVE
### Page 35 @ 01 March 2022 05:19 PM
*The scientists who...

Being able to do that with this brilliant plugin would be fantastic.

noembryo commented 1 year ago

I would love to add this too, but unfortunately it is not possible, since I don't really render the book as KOReader does. I just parse the metadata file, and it has no Chapter information for the highlights.

AaronKnowls commented 1 year ago

I would love to add this too, but unfortunately it is not possible, since I don't really render the book as KOReader does. I just parse the metadata file, and it has no Chapter information for the highlights.

I understand. Thanks!

noembryo commented 1 year ago

Actually, looking at some newer metadata files, I noticed that there is a chapter value for every highlight. 🤦‍♂️ That means that it might be added to the next release.. 😉

AaronKnowls commented 1 year ago

Actually, looking at some newer metadata files, I noticed that there is a chapter value for every highlight. 🤦‍♂️ That means that it might be added to the next release.. 😉

That's brilliant!!! Thank you so much for not giving up on this :)

noembryo commented 1 year ago

Added on v.1.7.0.0..

AaronKnowls commented 1 year ago

Wow, you made my day noembryo!