Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Context-appropriately automatically load highlights for a given page #29

Open
Stvad opened this issue Jan 3, 2023 · 3 comments
Open

Comments

@Stvad
Copy link
Contributor

Stvad commented Jan 3, 2023

There are several cases when it seems appropriate to automatically load highlights for the page

  • When you annotated the page before you should have an option to automatically load the annotations each time you visit the page
  • When someone gives you a specially formatted link (that'd embed an information that page X is annotated with highlights in room Y)
    • As a one subcase of that I can see extension being one of the handler for "matrix.to" links
  • When a page embeds a special metadata tag indicating that there are public annotations available for it in Room Z
@DanilaFe
Copy link
Owner

All of these are great, but a special metadata tag in particular is an excellent idea that I can't believe I didn't think of myself.

@Stvad
Copy link
Contributor Author

Stvad commented Jan 21, 2023

I've been thinking about it in the context of writing https://vlad.roam.garden/Bringing-knowledge-and-conversation-closer-together which, I think, you may find interesting! Would appreciate any thoughts you have on it!

@DanilaFe
Copy link
Owner

Hi @Stvad, I've added some preliminary support for auto-joining suggested rooms into matrix-highlight recently. In particular, it looks for a

    <meta name="matrix-highlight-comments" content="$ROOM_ID">

tag in the page, and if it finds one, it automatically activates the extension. The rooms are displayed in a new "suggested rooms" tab. The only trouble is that it seems like right now, to retrieve room info (name, events), it needs to be readable by anyone (public room with "everyone can see" history). Other than that, it seems to work well!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants