sxyazi / yazi

💥 Blazing fast terminal file manager written in Rust, based on async I/O.
https://yazi-rs.github.io
MIT License
16.01k stars 372 forks source link

Paste files to clipboard #1353

Closed LGraz closed 3 months ago

LGraz commented 3 months ago

Please describe the problem you're trying to solve

I want to copy a file (i.e. a picture) and paste it to a GUI (e.g. whatsappWeb or ChatGPT). Until now I open a GUI fm (Thunar / Nautilus) to do this job which feels frustrating.

Would you be willing to contribute this feature?

Describe the solution you'd like

New copy_file_to_clipboard command. Or automatic behavior when yanking files.

Additional context

So far I tried on wayland: wl-copy --type image/png < 20181105_191237.jpg does the Job for me in the terminal Somehow, specifying the wrong MIME type is necessary to get it work.

sxyazi commented 3 months ago

Does this tip work for you? https://yazi-rs.github.io/docs/tips#selected-files-to-clipboard

github-actions[bot] commented 2 months ago

I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.