claudiodangelis / qrcp

:zap: Transfer files over wifi from your computer to your mobile device by scanning a QR code without leaving the terminal.
https://qrcp.sh
MIT License
9.89k stars 524 forks source link

Add url yank on y #323

Closed Kuchteq closed 6 months ago

Kuchteq commented 6 months ago

I sometimes use qrcp to transfer some files across virtual machines (I know there are better ways but I'm lazy in that aspect and it just works) so I added the y key to yank the url. Really simple.

claudiodangelis commented 6 months ago

Hello @Kuchteq , thanks for taking the time for this. The proposed solution would unfortunately only work on Wayland-based linux systems, while qrcp is supported on a wider range of systems and architectures. I can suggest using a combination of the --port and --path flags to have a predictible URL, for example:

qrcp --port=8080 --path=x /some/file

This way, qrcp will always use the http://<your IP>:8080/send/x URL. Both port and path can be set in the configuration file, so you won't even need to set the parameters at each run. Hope this helps, Claudio