weichenw / obsidian-hypothesis-plugin

An Obsidian.md plugin that syncs highlights from Hypothesis.
MIT License
235 stars 20 forks source link

[Feature request] Ability to mirror highlights, in the same order as on the page #50

Closed duxrat closed 2 years ago

duxrat commented 2 years ago

In my workflow, highlights order is very important as it gives context to other highlights - crucial for long articles. As I am aware that preserving order and existing edits is technically challenging, it's more of a mirror workflow, like https://github.com/jsonMartin/readwise-mirror . I don't edit those mirrored files, just reference them by persistent highlight id at the end.

Hypothesis is one of the few platforms that allow for extracting this order through the API. Screenshot 2022-05-19 at 14 24 04 Readwise makes use of it in https://github.com/readwiseio/obsidian-readwise, but it has many issues of its own and is an unnecessary intermediary.

So, it would be great if you could implement following story:

duxrat commented 2 years ago

I did some dirty changes to allow mirroring by deleting highlights before sync if someone is interested: https://github.com/yep-dev/obsidian-hypothesis-plugin/commit/67624d09a5284b9e3bda93d67971b0fd9d6fb383