Feature request "execute on paste with trailing line feed". #19927

Closed
opened 2026-01-31 06:57:39 +00:00 by claunia · 3 comments
Owner

Originally created by @big-edd on GitHub (May 23, 2023).

Please consider a setting "execute on paste with trailing line feed".

Currently a command will not execute when pasting text with a trailing LF (or CRLF).
This is a good feature for preventing unintentional execution, however there are times when this is desired.
When many commands are being pasted into the console, and pressing "Enter" is needed for each, it becomes cumbersome.

Any chance the setting "execute on paste with trailing line feed" (or similar) might be considered?

When pasting a command (text) with a trailing line feed, that command should be executed immediately.

Originally created by @big-edd on GitHub (May 23, 2023). Please consider a setting "execute on paste with trailing line feed". Currently a command will not execute when pasting text with a trailing LF (or CRLF). This is a good feature for preventing unintentional execution, however there are times when this is desired. When many commands are being pasted into the console, and pressing "Enter" is needed for each, it becomes cumbersome. Any chance the setting "execute on paste with trailing line feed" (or similar) might be considered? When pasting a command (text) with a trailing line feed, that command should be executed immediately.
claunia added the Issue-FeatureNeeds-TriageNeeds-Tag-FixNeeds-Attention labels 2026-01-31 06:57:39 +00:00
Author
Owner

@lhecker commented on GitHub (May 23, 2023):

Thanks for the feature request! However, I believe you can already do this:

  • Open settings (Ctrl+,)
  • Click "Open JSON file" in the bottom left
  • Add the following lines to the outer-most JSON object:
    "trimPaste": false,
    "multiLinePasteWarning": false,
    

Let me know if that doesn't work for you.

@lhecker commented on GitHub (May 23, 2023): Thanks for the feature request! However, I believe you can already do this: * Open settings (Ctrl+,) * Click "Open JSON file" in the bottom left * Add the following lines to the outer-most JSON object: ```json "trimPaste": false, "multiLinePasteWarning": false, ``` Let me know if that doesn't work for you.
Author
Owner

@big-edd commented on GitHub (May 25, 2023):

Before:
"trimPaste": false,
"multiLinePasteWarning": false,

Since this was in the email notification of this request being updated, I tried:
"trimPaste": false,
"multiLinePasteWarning": true,

Then I thought "no I do not want that warning".
Back to:
"trimPaste": false,
"multiLinePasteWarning": false,

.. .. and now it works.. .. What the..???

Seems that me flip-flopping multiLinePasteWarning has given it a kick along, and now it is behaving as expected.
Originally: false
Then: true
Then: false

Note: No other changes.
That's very strange behavior.

@big-edd commented on GitHub (May 25, 2023): Before: "trimPaste": false, "multiLinePasteWarning": false, Since this was in the email notification of this request being updated, I tried: "trimPaste": false, "multiLinePasteWarning": true, Then I thought "no I do not want that warning". Back to: "trimPaste": false, "multiLinePasteWarning": false, .. .. and now it works.. .. What the..??? Seems that me flip-flopping multiLinePasteWarning has given it a kick along, and now it is behaving as expected. Originally: false Then: true Then: false Note: No other changes. That's very strange behavior.
Author
Owner

@lhecker commented on GitHub (Aug 30, 2023):

That's very strange behavior.

I hope we can fix that soon! But that aside, I'm happy to hear that it's now working for you. I'll close the issue then. 🙂

@lhecker commented on GitHub (Aug 30, 2023): > That's very strange behavior. I hope we can fix that soon! But that aside, I'm happy to hear that it's now working for you. I'll close the issue then. 🙂
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#19927