Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multiple Line Paste #15045

Closed
mmanueljoao opened this issue Mar 25, 2023 · 2 comments
Closed

Multiple Line Paste #15045

mmanueljoao opened this issue Mar 25, 2023 · 2 comments
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase

Comments

@mmanueljoao
Copy link

Windows Terminal version

1.16.10262.0

Windows build number

10.0.22621.0

Other Software

No response

Steps to reproduce

I'm getting mixed information about whether muliple line pasting is or is not available.

At this time, when trying to paste this example

# this is a comment 
if ($env:PublicIPv4 -ne (curl -s https://checkip.amazonaws.com/) ) {
	# this is another comment
    $env:PublicIPv4 = (curl -s https://checkip.amazonaws.com/) 
} 
# yet another comment

Windows Terminal pastes and executes the first line, then the executes the complete if block and then waits for me for the last line.

Should this be the default behavior ?

Expected Behavior

image

Actual Behavior

image

@mmanueljoao mmanueljoao added Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 25, 2023
@zadjii-msft
Copy link
Member

Thanks for the report! This is because PsReadline's Ctrl+V handler and Terminal's Ctrl+V handler operate a little differently. There have been a pile of discussions on this in the past. I think there was a more specific on, but I can't seem to find it. For reference, see:

I think ultimately, we decided to track this upstream in PsReadline, here:

/dup PowerShell/PSReadLine#1471

If PowerShell is your primary shell, you can always unbind ctrl+v in the Terminal settings, which will let PsReadLine handle it.

@microsoft-github-policy-service
Copy link
Contributor

Hi! We've identified this issue as a duplicate of one that exists on somebody else's Issue Tracker. Please make sure you subscribe to the referenced external issue for future updates. Thanks for your report!

@microsoft-github-policy-service microsoft-github-policy-service bot added Resolution-External For issues that are outside this codebase Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting and removed Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting labels Mar 27, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Issue-Bug It either shouldn't be doing this or needs an investigation. Needs-Tag-Fix Doesn't match tag requirements Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Resolution-External For issues that are outside this codebase
Projects
None yet
Development

No branches or pull requests

2 participants