EINDEX / logseq-copilot

Logseq Copilot is a Browser extension that allows you to access your Logseq via your browser.
https://logseq-copilot.eindex.me
GNU General Public License v3.0
235 stars 21 forks source link

Annotation Support #37

Open mobedoor opened 10 months ago

mobedoor commented 10 months ago

Since Copilot already supports webclipping, I'd like to make a feature request. Could you extend it to be more of a page clipper such that all annotations made on a certain page are saved under one Block eg for url https://www.usatoday.com/story/tech/news/2023/08/09/google-will-begin-deleting-inactive-accounts-in-december/70560101007/

[[Clip]] Google will begin deleting inactive accounts in December 2023

Bonus features would be to

  1. Add a floating highlight button
  2. Highlighting the clipped text a certain color upon clipping.
  3. Re-highlight the clipped sections upon revisiting the page.
EINDEX commented 10 months ago

Thanks for your suggestion.

I will think about how to archive this.


Here is response for 3 bouns features.

For the first feature: we have an option to enable floating botton currently, but some people think this is annoying so the default toggle is disabled.

For second: I want to do this after the third feature is working, otherwise, the experience will not good as the user's expectation.

For the third feature: I want to archive this too, recently I found there is an API that may access logseq plugin storage. But not having time to test it yet.

https://github.com/logseq/logseq/blob/7de92849dd8ab98f3feb220b51206f55d32a8125/src/main/logseq/api.cljs#L254-L268

If this thing works, the third feature can be done. the experience will be better. Just for some cases the content change or dom change of main content will impact the annotation.

mobedoor commented 9 months ago

Thank you for considering it.