metatext
metatext copied to clipboard
Share sheet action to "Open in Metatext"
Is your feature request related to a problem? Please describe. When I encounter a Mastodon HTTPS link in one of these contexts, I want to be able to open it in Metatext:
- Safari or another web browser.
- Generally, any app that's capable of opening a share sheet for a URL.
Describe the solution you'd like Implement an "Open in Metatext" Action app extension that takes an HTTPS URL. If the user has multiple Mastodon accounts, Metatext should offer the user a choice of which one to open it with. If the user has only one, Metatext should just proceed to try to open it.
Opening the URL will probably depend on #31, which provides a method for resolving an arbitrary URL as a Mastodon user or post.
If the link doesn't resolve to a Mastodon user or post, an error message should be shown informing the user that they tried to open something that probably isn't a Mastodon URL.
Describe alternatives you've considered
- Apple's Universal Links feature won't work because Metatext doesn't own arbitrary Mastodon instances.
- Apple's browser entitlement seems like overkill. Since Metatext is not a true browser, just an app that wants to open some kinds of HTTPS URL, it would be unlikely to be granted this entitlement anyway.
- A Share app extension could be used to implement this feature, but would conflict with Metatext later introducing a Share action that lets you post a URL to Mastodon.
Additional context
The third-party Reddit client Apollo implements an "Open in Apollo" Action for opening links to Reddit. This would be exactly how I'd want Metatext to do it.
Apollo error for non-Reddit URLs:
Additionally, a Safari web extension to add an Open in Metatext link in context could be an interesting solution.
This would be really excellent, it's currently a bit painful copy/pasting URLs between safari and the app.
@jzzocc would you have any interest in a PR for this? I'm implementing it as an action extension that attempts to open the acted-upon URL in the search view, and may have something prod-ready soon.
(It didn't take me a year and a half to implement, I just forgot 😅)
This could be a great candidate for a PR, thanks
@jzzocc Great! Implementing it in #207.