vercel / hyper

A terminal built on web technologies
https://hyper.is
MIT License
43.2k stars 3.51k forks source link

Add rz sz support #2874

Open leovan opened 6 years ago

leovan commented 6 years ago

Issue

I wish we can add rz sz support. It means Hyper can open a file open or save as dialog when we use rz or sz. Something like iTerm2, though it is not supported officially, someone give an alternative solution: https://github.com/mmastrac/iterm2-zmodem

albinekb commented 6 years ago

What is rz sz? 🤔

leovan commented 6 years ago

rz and sz are commands of lrzsz package (see: https://ohse.de/uwe/software/lrzsz.html). When we can access a server directly, we usually use scp to transfer files. But when we access a server through a jump server, rz and sz are really useful commands for file transfer. According to the manual, it uses XMODEM, YMODEM ZMODEM file transfer protocols. But sorry I don't know much about how it works.

leovan commented 6 years ago

Sorry I cannot write nodejs codes, but I found a repo may help with this problem, https://github.com/FGasper/zmodemjs

albinekb commented 6 years ago

Nice! Using that you can write a plugin to hyper that enables it. @chabou do we have a way to add custom plugins to xterm via a hyper plugin?

chabou commented 6 years ago

Not yet but issue created: https://github.com/zeit/hyper/issues/2903 Awesome idea

hectorqin commented 6 years ago

I modified the hyper-status plugin and support the interactive upload and receive similar to rz/sz. It's an ugly patch, that requires ssh enable the ControlMaster option or use ssh public key authentication . hyper-statusline

FishGoddess commented 11 months ago

rz/sz on hyper is always blocking... Is there any good soluations? thx~

image