matrix-org / matrix-spec

The Matrix protocol specification
Apache License 2.0
173 stars 91 forks source link

Deep Linking in messages #898

Open MTRNord opened 2 years ago

MTRNord commented 2 years ago

(Note this is NOT https://github.com/matrix-org/matrix-doc/pull/3006 it is in fact the idea of the mentioned part 2)

Suggestion

Hi :)

Telegram and others have something like "Deep Linking" from messages. While this is in theory possible already by sending custom things with messages it is likely better to use relations here.

To make more clear where I come from this idea came up thinking about how to integrate figma into Matrix which lead to this "mockup" of what I would love to have:

Design wish

So the Spec Idea would be to define a uniform "relation type" for (deep) links into various apps to provide a way to have some action on a message directly.

Additional (not really needed but would be nice to have to make this fit into the rest of the ecosystem)

Another thing especially for the figma idea would be to have those deeplinks do actions on widgets :)

kevincox commented 2 years ago

It isn't clear to me what is being requested here. Why couldn't this just be <a href="https://figma.com/mydoc">Open in Figma</a>? Is this about the styling of the link or something else?

MTRNord commented 2 years ago

It isn't clear to me what is being requested here. Why couldn't this just be <a href="https://figma.com/mydoc">Open in Figma</a>? Is this about the styling of the link or something else?

Yes it is 2 things.

A) the obvious call to action. B) A possible way to make this compatible with the widget api to do things in a widget using those actions.

kevincox commented 2 years ago

Thanks. That short summary is much more clear 🙂 I suggest updating the title to mention widgets if that is the main goal.