Wishlist: Warn on multi line paste

Bug #1810924 reported by Per Lundberg
14
This bug affects 2 people
Affects Status Importance Assigned to Milestone
Terminator
New
Undecided
Unassigned

Bug Description

iTerm2, a terminal emulator for macOS, has a very nice feature called "Warn before multi line paste", which will warn you when pasting text containing newlines (briefly mentioned here:
https://gitlab.com/gnachman/iterm2/issues/5268, don't have a Mac so I cannot provide a screenshot)

It would be incredibly nice if a similar function could be added to Terminator. I quite often paste (especially from the primary selection) by mistake, and pasting n lines of random text in your terminal is seldom a very good idea. Detecting that the text being pasted contains one or more newlines, asking the user if he/she is really sure about the paste would be incredibly helpful to me. Because others might feel differently, this should probably a configurable setting.

Revision history for this message
Egmont Koblinger (egmont-gmail) wrote :

FYI: bash can already treat pasted multiline text safely, see its enable-bracketed-paste mode.

Revision history for this message
Per Lundberg (perlun) wrote :

Thanks @egmont-gmail. For reference, here are some more details around this: https://cirw.in/blog/bracketed-paste

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.