Implement Paste UI for selecting recipient peer and other paste related stuff#488
Closed
schlagmichdoch wants to merge 16 commits intoSnapDrop:masterfrom
Closed
Implement Paste UI for selecting recipient peer and other paste related stuff#488schlagmichdoch wants to merge 16 commits intoSnapDrop:masterfrom
schlagmichdoch wants to merge 16 commits intoSnapDrop:masterfrom
Conversation
…se as event for paste mode deactivation
…rt for ios shortcuts sharing
Contributor
Author
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
Contributor
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/