Option to automatically trim trailing linefeed(s) before pasting from clipboard #14321

Open
opened 2026-01-31 04:07:08 +00:00 by claunia · 0 comments
Owner

Originally created by @NeilMacMullen on GitHub (Jun 23, 2021).

Description of the new feature/enhancement

Many applications (such as Excel or PowerBI) have an annoying habit of adding a linefeed when copying selected text to the clipboard. When this text is then pasted to Terminal it results in this kind of warning dialog...

image

In these circumstances the extraneous linefeed is almost never desirable but it's frustrating to keep being interrupted by the warning dialog.

In the case that the clipboard text ends with a mixture of linefeeds and whitespace AND removing this trailing portion would result in no remaining linefeeds then either:

  • automatically remove the trailing portion (possibly after consulting a new setting to check desired behaviour)
  • Add an extra button to the dialog to allow the user to "paste without trailing linefeed"
  • Provide an option to convert linefeeds to line-continuation characters (obviously would need to be shell specific)
  • other options?
Originally created by @NeilMacMullen on GitHub (Jun 23, 2021). # Description of the new feature/enhancement Many applications (such as Excel or PowerBI) have an annoying habit of adding a linefeed when copying selected text to the clipboard. When this text is then pasted to Terminal it results in this kind of warning dialog... ![image](https://user-images.githubusercontent.com/9131337/123127996-abc9ef00-d442-11eb-82b9-947e40673411.png) In these circumstances the extraneous linefeed is almost never desirable but it's frustrating to keep being interrupted by the warning dialog. <!-- A clear and concise description of what you want to happen. --> In the case that the clipboard text ends with a mixture of linefeeds and whitespace AND removing this trailing portion would result in no remaining linefeeds then either: - automatically remove the trailing portion (possibly after consulting a new setting to check desired behaviour) - Add an extra button to the dialog to allow the user to "paste without trailing linefeed" - Provide an option to convert linefeeds to line-continuation characters (obviously would need to be shell specific) - other options?
claunia added the Issue-FeatureResolution-Duplicate labels 2026-01-31 04:07:08 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#14321