Wishlist: Warn on multi line paste

Bug #1810924 reported by Per Lundberg on 2019-01-08
This bug affects 2 people
Affects Status Importance Assigned to Milestone

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.

Egmont Koblinger (egmont-gmail) wrote :

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

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  Edit
Everyone can see this information.

Other bug subscribers