derricw / siggo

a TUI for signal messenger, written in Go
GNU General Public License v3.0
320 stars 9 forks source link

Add support for attaching content in clipboard #35

Closed Limero closed 3 years ago

Limero commented 3 years ago

This adds a feature that when in normal mode, pressing p or CTRL+V will paste the current text from clipboard, or if it's file (such as an image) it will attach it to the message.

A limitation with this solution is that attached files will be stored in a temporary file, so they are not persisant. I'm open for suggestions on a better way to store them.

Also, I wasn't able to bind CTRL+Shift+V in normal mode, but I think this paste method should be used there as well.

derricw commented 3 years ago

Dope. I will try this out when I get home tonight!

derricw commented 3 years ago

Looks good! Thanks @Limero