-
-
Notifications
You must be signed in to change notification settings - Fork 46
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 uploading image attachments from clipboard #36
Conversation
I think the way that this should probably work is through the |
That's really nice, the vim way. |
I've released a version of modalkit that includes ulyssa/modalkit#83 and just pushed #45 which includes two examples of how to use If you add a match for |
f3ee82a
to
d59f60f
Compare
Thanks @ulyssa, those two things have been super easy to use! I have tried this PR with png and jpeg images. |
Reading the arboard docs again, there is no mime-type because the bytes are always RGBA8, so the |
d59f60f
to
2899d4f
Compare
Merged! Thank you for implementing this, @benjajaja ! |
The documentation for this is a bit unhelpful imo. E.g. this would be more helpful:
Follow the confirmation dialog.« |
@schrmh Thank you for catching that this was underdocumented! I've updated the website to describe both registers, and provide example descriptions of behaviour. |
:upload
argument is made optional. If omitted, then it will try to grab an image from the clipboard instead.The user might not know this behaviour and the command does not indicate that the clipboard will be grabbed and uploaded without any confirmation. There could be sensitive information in it.
There should be some mechanism to confirm/ask the user, or await a "manual paste" (Ctrl-V? Shift-Ctrl-V?). I don't really know how to go on about "command steps" or something like that. @ulyssa wdyt?