amoscardino / linkthing

A client app for linkding built with Ionic.
MIT License
69 stars 1 forks source link

Create bookmark from share sheet #20

Open amoscardino opened 1 year ago

gingerbeardman commented 1 year ago

I'm really interested in this feature so I'm doing some reading.

I'll be happy to contribute.

Apparently native share extension is required

gingerbeardman commented 1 year ago

So I think there are two options:

  1. Share Extension as Mini-App
    • would require a lot of duplicate functionality
    • needs to be written in Swift/Obj-C
    • high maintenance cost

  1. Share Extension as URL Forwarder
    • no duplication of functionality
    • low maintenance cost
    • simply passes URL into main app
    • tutorial & source

Notes:

George-Miao commented 1 year ago

This would be really nice to have!

joriskdzaack commented 1 year ago

I would be very interested in this functionality as well. Aside from that, the app seems perfekt for linkding.

gingerbeardman commented 1 year ago

I'm using BookmarkCompanion app to get Linkding on the Share Sheet.

I didn't write the app I just found it on the App Store.

It's tagging interface is quite long-winded but otherwise it's good.

@joriskdzaack

joriskdzaack commented 1 year ago

Thank you very much, @gingerbeardman!

amoscardino commented 1 year ago

I do have some updates on this. I've got something working where the app can be launched from a URL to open directly into the Add modal. It's using Capacitor's appUrlOpen event but the consistency of it is very bad. It basically only works when the app is not running in the background. Once I can get that working better, adding a share extension seems like it should be pretty straightforward.

I should get an update out soon seeing as there's some list view enhancements with tags that seem pretty solid. That update would include the new URL scheme (bugs and all).

amoscardino commented 1 year ago

Version 1.4 has been submitted to the App Store. Once it passes review, you can try out the new URL scheme. The format is linkthing://bookmarks/add?url=<URL GOES HERE>. This can be used in a shortcut to be in share sheets right away.

kaiwei commented 1 month ago

Is there a way to add the link “silently”, without switching app focus to the LinkThing app itself, to avoid breaking mental mode / concentration as I power through a sea of RSS articles?

amoscardino commented 1 month ago

@kaiwei There isn't a way to do that with Ionic/Capacitor. I'm sure a custom share extension could make it happen, but at that point I might as well learn Swift and rebuild the app to be fully native. As it stands, I just don't have the time or energy for that. Sorry.

kaiwei commented 1 month ago

No problem at all. Am already grateful for the current state of things!