-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implement Paste UI for selecting recipient peer and other paste related stuff #488
Conversation
…se as event for paste mode deactivation
…rt for ios shortcuts sharing
About 4:I fiddled around with shortcuts some more and made sharing of images directly from gallery possible. Somehow images copied to clipboard via shortcuts have an empty type array. This updated shortcut now detects images and reconverts them to their format and only copies them afterwords which solves the issue: Sharing of images from the gallery works perfectly now👌
I have not found a workaround for videos, files or folders, so for that base64 encoding would still be the way to go. |
…ting "filename" argument in url
This pull request enhances the paste clipboard functionality introduced with #108 .
Main changes:
About 1-3:
Overall this pull request extends the possiblities to share items with peers via snapdrop without conflicting with the standard ux at all. As @sonicblis suggested, a paste UI is added to let user select the recipient directly.
The new paste mode adds a workflow which resembles apples airdrop even further:
About 4:
This flag simplifies the workflow even further by entering paste mode directly:
(url is replaced with snapdrop.net)
In order to get clipboard data on user action (selecting the recipient), we use the Asynchronous Clipboard API, which is supported by all browsers but firefox. If it's not supported users will get notified and can use CMD+V or paste into paste-area
iOS Shortcut
My overall goal was to implement a way to send photos, text or urls on ios via snapdrop directly from the ios share menu:
To do this we can use the built-in app Shortcuts
Shortcut Link:
https://routinehub.co/shortcut/12867/
It works perfectly for URLs and texts and images copied from other pages:
About 5:
Somehow images and files copied to clipboard from gallery and files app can not be inserted into websites so I came up with the idea of base64 encoding them with shortcuts
This feature could be used by iOS users by adding the shorcut to their device. The current UX implementation is not conflicited.
Shortcut Link (could than be added to the list of Third-Party Apps):
https://routinehub.co/shortcut/12868/