metatext icon indicating copy to clipboard operation
metatext copied to clipboard

Share sheet action to "Open in Metatext"

Open VyrCossont opened this issue 3 years ago • 6 comments

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:

  1. Safari or another web browser.
  2. 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

  1. Apple's Universal Links feature won't work because Metatext doesn't own arbitrary Mastodon instances.
  2. 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.
  3. 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. EB7ABB31-98EA-4D83-8B03-E5464A7DCE09

Apollo error for non-Reddit URLs: A6631A9A-483D-4FC7-9C2C-905CD1BEE29F

VyrCossont avatar Apr 27 '21 04:04 VyrCossont

Additionally, a Safari web extension to add an Open in Metatext link in context could be an interesting solution.

codybrom avatar Nov 11 '22 18:11 codybrom

This would be really excellent, it's currently a bit painful copy/pasting URLs between safari and the app.

sammcj avatar Nov 13 '22 02:11 sammcj

@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.

VyrCossont avatar Nov 20 '22 07:11 VyrCossont

(It didn't take me a year and a half to implement, I just forgot 😅)

VyrCossont avatar Nov 20 '22 08:11 VyrCossont

This could be a great candidate for a PR, thanks

jzzocc avatar Nov 21 '22 01:11 jzzocc

@jzzocc Great! Implementing it in #207.

VyrCossont avatar Nov 21 '22 01:11 VyrCossont