feat: import digest highlights as Readwise-style markdown#83
Conversation
d1e1099 to
b50fb2e
Compare
Add a new 'Import digest' command that converts Supernote digest .txt exports into Readwise-style Obsidian markdown files. - Parse digest blocks extracting title, author, year from path - Derive category from directory structure (#books, #articles, etc.) - Group highlights by book, one markdown file per book - Sort highlights by chapter, then page, then modify time - Configurable output folder (default: 'Supernote Digests') - Overwrites existing files on re-import (idempotent)
b50fb2e to
ddf2e63
Compare
|
Update: Added two improvements since the initial PR:
Example output for an RFC PDF: # RFC8216 - HTTP Live Streaming
## Metadata
- Full Title: RFC8216 - HTTP Live Streaming
- Category: #highlights
- Read Date: 2026-06-17
## Highlights
- allows a receiver to adapt the bit rate (Page 3)
- in order to maintain uninterrupted playback at the best possible quality (Page 4)
... |
|
Note on path format variability: The digest file path format varies depending on where the document is stored on the Supernote. Books in organized folders follow a The parser handles this gracefully by falling back to the full filename (minus extension) as the title when fewer than 2 |
📢 things to highlight with this PR:
1: it's ai-generated.
2: don't feel any obligation to merge (literally zero hard feelings :smiling), i just figured i'd contribute to your upstream incase others would find it useful as SuperNotes' "digest" feature is literally why I purchased the device over other e-ink devices because I saw your plugin existed and assumed it had this functionality and if it didn't i was just going to fork your amazing plugin ❤️
(Thank so much for your amazing work on this plugin! ❤️)
3: if you want, I could record a demo similar to the ones in the README to demonstrate the functionality.
Summary
Add a new "Import digest" command that converts Supernote digest
.txtexports into Readwise-style Obsidian markdown files.How to use
.txt.txtfileOutput folder is configurable in Settings (default:
Supernote Digests).Digest file format
The digest export is a series of blocks, each representing a single highlight. The schema is this block repeated:
Sorting
The digest output appears to be unsorted, so the plugin sorts highlights by chapter (if it exists -- articles may not have chapters), then page, then modify time.
Confirmed that SuperNote digests are NOT unsorted, but rather sorting is based on page alone (which is often not what you want) this is a limitation of the SuperNote partner app digest sorting functionality.
Output format
The output format is inspired by Readwise's Obsidian plugin. One markdown file per book/document:
Design decisions
---delimited filename in the path. Category is derived from the directory structure (/Books/→#books,/Articles/→#articles).Supernote Digests, configurable in plugin settings.Testing
Tested locally via BRAT - Beta Reviewer's Auto-update Tool for Obsidian (GitHub).
I did test overwriting behavior (just edited an imported digest manually to delete the highlights section) then re-imported the digest
Changing the import location / folder name
Things I have NOT tested
what if you make digest changes on the SuperNote (presumably, it just overwrites everything again, hence why I chose a simple "overwrite" import strategy instead of merges)
digests can contain handwritten annotations. I did not test these. I think they just get dropped.
Have a great rest of your day! 👋