Chrysostomus / manjaro-zsh-config

Zsh configuration package for manjaro
MIT License
124 stars 52 forks source link

Add option to paste protect/edit when multiline is being pasted into the terminal #47

Open Jesse-6 opened 11 months ago

Jesse-6 commented 11 months ago

I think this to be a necessary feature, because when pasting multiline, every line is executed, and a "mispaste" could do very harm. So, an option of a prompt with a yes or no and the text in an edit box for review of what is being pasted and even modify it before commit pasting will be very handy. I can tell you that I once have shutdown the internet of an entire city, because while managing a core switch on a Telecom Provider, I accidentaly paste the entire switch code back instead of a single IP address, that I've assumed it surely was in the clipboard when I did it. This feature could avoid this happening while using any CLI inside Zsh terminal - for example. As a successfull case of this implementation, I suggest you verify the Windows software MobaXTerm. And I'm indeed using it inside Linux instead of Zsh, when this harm might have any chance to happen. And it's kinda ugly wo use a Windows software that emulates Linux terminal, running on Wine, that runs Windows applications on Linux to emulate a Linux terminal in a Windows app running inside Linux... ;) Hope you understand, I'm not a native english speaker.