hyper icon indicating copy to clipboard operation
hyper copied to clipboard

Add rz sz support

Open leovan opened this issue 7 years ago • 7 comments

  • [x] I am on the latest Hyper.app version
  • [x] I have searched the issues of this repo and believe that this is not a duplicate
  • OS version and name: OSX 10.13.4
  • Hyper.app version: 2.0.0
  • Link of a Gist with the contents of your .hyper.js: N/A
  • Relevant information from devtools (CMD+ALT+I on macOS, CTRL+SHIFT+I elsewhere): N/A
  • The issue is reproducible in vanilla Hyper.app: N/A

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

leovan avatar Apr 19 '18 00:04 leovan

What is rz sz? 🤔

albinekb avatar Apr 19 '18 08:04 albinekb

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 avatar Apr 19 '18 08:04 leovan

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

leovan avatar Apr 22 '18 02:04 leovan

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?

albinekb avatar Apr 22 '18 15:04 albinekb

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

chabou avatar Apr 22 '18 21:04 chabou

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

hectorqin avatar Aug 14 '18 10:08 hectorqin

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

image

FishGoddess avatar Sep 27 '23 10:09 FishGoddess