highlighter icon indicating copy to clipboard operation
highlighter copied to clipboard

[Feature Request] A way to organize all highlights.

Open kaifuj opened this issue 5 years ago • 4 comments

First, I really like this extension. It helps a lot while reading documentions. Thanks!

I think a overall panel (e.g. using options page) allowing organize or just simply view all highlights would be a great feature to have.

kaifuj avatar Dec 01 '19 04:12 kaifuj

Hi, thanks for your interest in this project! I also think this would be a great addition, it's just a matter of finding the time to code it.

Here's a bit more detail for anyone (or my future self!) who wants to implement this. Currently when un-highlighting something, the following things are stored:

  1. The original highlight
  2. Another highlight containing the selected region that the user wants to un-highlight

When loading highlights after a user re-opens that webpage, the highlights are applied in order and a highlight that is applied on top of an existing one has the effect of un-highlighting. Therefore we get the desired behavior.

However, what this means is that it is not super trivial to get all highlights on the page. When stuff was unhighlighted, simply reading all the highlights from storage there is no easy way to differentiate between a highlight and an "un-highlight".

jeromepl avatar Dec 01 '19 18:12 jeromepl

In v3.0 you can now view a list of all highlights on the current page. However I am leaving this issue up since there seems to be some interest in having a list of all highlights no matter the page they are from. For example, and as suggested here, in an options page (when right-clicking the extension icon)

jeromepl avatar Jul 24 '20 17:07 jeromepl

After v4, it is no longer possible to un-highlight part of a highlighted text. Users have to use the "delete" button instead. This change simplifies the data storage a lot and will simplify development of features like this one here (except if we want to make it compatible with highlights stored pre v4)

jeromepl avatar Jul 29 '22 12:07 jeromepl

Is it possible to add an additional download button to export all the highlights to a file ?

gudh avatar Jan 29 '23 02:01 gudh