Cannot get trimPaste to work (I am running preview) #16748

Closed
opened 2026-01-31 05:21:36 +00:00 by claunia · 1 comment
Owner

Originally created by @MrM40 on GitHub (Feb 11, 2022).

Windows Terminal version

1.12.10334.0

Windows build number

19043.1348

Other Software

No response

Steps to reproduce

I added the option to settings.json

Clipboard01

If I try to paste a string like "Hello " with or without trailing LF nothing is trimmed.

Also if I paste a multi-line string like
multiliine
From notepad++, UTF-8

I get a warning about multi-line pasting and if I say OK all whitespaces and LF's are pasted too?

Expected Behavior

No response

Actual Behavior

That all whitespaces and/or CRs and/or LFs will be trimmed away before pasting into WT

Originally created by @MrM40 on GitHub (Feb 11, 2022). ### Windows Terminal version 1.12.10334.0 ### Windows build number 19043.1348 ### Other Software _No response_ ### Steps to reproduce I added the option to settings.json ![Clipboard01](https://user-images.githubusercontent.com/16258063/153586164-5d594895-650e-405a-ac3b-954bc34a0766.jpg) If I try to paste a string like "Hello " with or without trailing LF nothing is trimmed. Also if I paste a multi-line string like ![multiliine](https://user-images.githubusercontent.com/16258063/153587024-cee56f48-54d2-4897-864b-859174a43680.jpg) _From notepad++, UTF-8_ I get a warning about multi-line pasting and if I say OK all whitespaces and LF's are pasted too? ### Expected Behavior _No response_ ### Actual Behavior That all whitespaces and/or CRs and/or LFs will be trimmed away before pasting into WT
Author
Owner

@zadjii-msft commented on GitHub (Feb 11, 2022):

trimPaste was only added in 1.13. https://github.com/microsoft/terminal/pull/11473#issuecomment-1029277464

@zadjii-msft commented on GitHub (Feb 11, 2022): `trimPaste` was only added in 1.13. https://github.com/microsoft/terminal/pull/11473#issuecomment-1029277464
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/terminal#16748