Add a third option which replaces newlines by spaces when pasting content with multiple lines #12891

Open
opened 2026-01-31 03:28:12 +00:00 by claunia · 0 comments
Owner

Originally created by @FremyCompany on GitHub (Mar 6, 2021).

Description of the new feature/enhancement

When pasting in the Terminal a command line that ends with a line break, my options are either to paste and run the command, or abort the operation. Most of the times, I actually want to paste while trimming the trailing line break, such that I can edit the command I am pasting.

image

Proposed technical implementation details (optional)

When pasting, a new button would appear in the confirmation dialog, that would allow to paste while trimming line breaks (if the string contains line breaks that are not trimmed, replace them by a space?)

Originally created by @FremyCompany on GitHub (Mar 6, 2021). # Description of the new feature/enhancement When pasting in the Terminal a command line that ends with a line break, my options are either to paste and run the command, or abort the operation. Most of the times, I actually want to paste while trimming the trailing line break, such that I can edit the command I am pasting. ![image](https://user-images.githubusercontent.com/364405/110218078-ede11c00-7eb7-11eb-8527-1ca33ea88f01.png) # Proposed technical implementation details (optional) When pasting, a new button would appear in the confirmation dialog, that would allow to paste while trimming line breaks (if the string contains line breaks that are not trimmed, replace them by a space?)
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#12891