Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jesse-6 opened this issue Sep 19, 2023 · 0 comments

Comments

@Jesse-6
Copy link

Jesse-6 commented Sep 19, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant