Is there an app URL scheme that can be used with Arctic? Like if I wanted to open a Lemmy post using the address I could do arctic://openURL/lemmypost.com/postUrlID
I recently started using the newly released Tapestry by The Iconfactory and it allows you to follow rss feeds and all kinds of other things (so Lemmy communities as well). It also lets you define your own custom apps to open for the various feeds and would love to have it open Arctic to the post when I tap the item in Tapestry.
Thanks a bunch for building this fantastic app!
By the way, here is Tapestry’s documentation on how to use the URL schemes, in case you wanna take a look.
https://iconfactory.happyfox.com/kb/article/149-opening-tapestry-timeline-items-in-third-party-apps/
Yes, Arctic does support URL schemes. I made it as simple as possible, no need to grab the post_id or comment_id. Just simply pass it the URL to any post, comment, user, or community. This also works for most MBin URLS. The url scheme for Arctic is
arctic://open-in?url=%7Bcontent_url%7D
for example to open this post you’d usearctic://open-url?url=https%3A%2F%2Flemmy.world%2Fpost%2F25543739
Tapestry looks interesting, it’s been a while since I’ve found any rss readers that I actually enjoyed using, I’ll have to check that out. I definitely like that it supports URL schemes rather than opening in a browser.
Looking at the Tapestry documentation, you will likely want to use the
__URL_ENCODED__
substitution variable for Arctic eg:arctic://open-in?url=__URL_ENCODED__
I should probably add a section in Arctic settings to list the supported URL schemes. Right now they are only listed in the Changelog, and they are all buried.
If you have any issues with it feel free to let me know know and I’ll help you out, or add new schemes if needed.
Glad you’re enjoying Arctic!!
Awesome, that worked exactly the way I was hoping it would work! Thanks for getting back to me and helping out, really dig being able to sort of integrate Arctic and Tapestry in a way that makes it feel seamless. I like being able to pull in new posts from certain communities with Tapestry and browsing Lemmy in general with Arctic. Makes for a cool combination!
I’ll mine the changelog for some more possible uses for the URL schemes. I’ve also been building a lot of shortcuts lately and they’re always useful in that context.
By the way, something else that Tapestry can do that’s pretty cool is you can build custom connectors for other services and use them to connect to miscellaneous content services. Attempting to dust off the bits of JavaScript I used to know to see about building a Lemmy connector. Would be interesting to pull in messages and replies I think.
That’s great, glad that worked as intended!
I pushed an update last night that added a settings page that includes all the URL Schemes for Arctic. I need to clean it up a bit, and I’ll probably add some more schemes for things like search, tab selection, post and comments by ID, etc. but at least for now there is a home for displaying the schemes.
The lemmy API is quite easy to use, you could even skip login by copying the JWT from another session to authenticate the custom connector (unless you can prompt for username and password in the connector) either way, it should be achievable.