Skip to content
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

Support for sending stdin/arbitrary strings? #12

Open
woodruffw opened this issue Jun 3, 2023 · 2 comments
Open

Support for sending stdin/arbitrary strings? #12

woodruffw opened this issue Jun 3, 2023 · 2 comments

Comments

@woodruffw
Copy link

First of all, thanks for this tool! It looks very useful, and I'd love to integrate it into some of my projects.

I see that support for files and URLs are currently supported, but the underlying NSSharingService API should work with anything that implements NSPasteboardWriting, which includes things things like NSStrings.

Give that: would you be interested in support for sending arbitrary strings and/or treating - as stdin so that it could be streamed in? If so, I'm happy to try and add support for that.

@vldmrkl
Copy link
Owner

vldmrkl commented Jun 8, 2023

@woodruffw sure, that'd be great to have. Please feel free to add support for it!
Just out of curiosity, what use cases do you have in mind?

@woodruffw
Copy link
Author

Glad to hear it! I'll poke around and try to add support tonight or tomorrow night.

Just out of curiosity, what use cases do you have in mind?

I have my own little password manager, and I'd like to be able to AirDrop passwords from my desktop to my phone and other devices: woodruffw/kbs2#234

I'm still not 100% sure if this is the best way to accomplish that, but I'm happy to add the feature regardless 🙂

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants