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

Strip or replace tabs when pasting #6134

Open
mdalacu opened this issue May 22, 2020 · 3 comments
Open

Strip or replace tabs when pasting #6134

mdalacu opened this issue May 22, 2020 · 3 comments
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Milestone

Comments

@mdalacu
Copy link

mdalacu commented May 22, 2020

Environment

Microsoft Windows [Version 10.0.18363.836]
Windows Terminal Version: 1.0.1401.0

Any other software?
Google Sheets or any other software that delimits columns in clipboard by TAB character


# Steps to reproduce
Have multiple commands written in google sheets one per row but with parts of it in different cells

# Expected behavior

When you paste in normal cmd window the TAB caracter gets ignored. 

# Actual behavior

When you paste commands containing TAB caracter autocompletition triggers and the command gets corrupted

<img width="810" alt="Annotation 2020-05-22 160454" src="https://user-images.githubusercontent.com/14089766/82670799-7bfc5680-9c46-11ea-84aa-e3eec4e22286.png">
@ghost ghost added Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting Needs-Tag-Fix Doesn't match tag requirements labels May 22, 2020
@mdalacu
Copy link
Author

mdalacu commented May 22, 2020

Annotation 2020-05-22 160454

@DHowett
Copy link
Member

DHowett commented May 25, 2020

So, this is one of those weird problems. This is because the data coming out of Google Sheets has raw tab characters in it. (I know you know that, but I was doing exposition!) A compliant terminal (the traditional console host is not a compliant terminal) must pass that tab character through as-is.

This is, of course, resulting in tab completion as though you had pressed Tab yourself.

Maybe we should have a setting configuring what happens to Tab when you paste it in.

@DHowett DHowett added the Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something label May 25, 2020
@DHowett DHowett changed the title Paste from google Sheets Strip or replace tabs when pasting May 25, 2020
@DHowett DHowett added Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal. and removed Needs-Author-Feedback The original author of the issue/PR needs to come back and respond to something labels May 25, 2020
@ghost ghost removed the Needs-Tag-Fix Doesn't match tag requirements label May 25, 2020
@DHowett DHowett removed the Needs-Triage It's a new issue that the core contributor team needs to triage at the next triage meeting label May 25, 2020
@DHowett DHowett added this to the Terminal Backlog milestone May 25, 2020
@ghost ghost added the In-PR This issue has a related PR label Jun 17, 2020
@ghost ghost removed the In-PR This issue has a related PR label Sep 7, 2020
@zadjii-msft zadjii-msft modified the milestones: Terminal Backlog, Backlog Jan 4, 2022
@zadjii-msft
Copy link
Member

zadjii-msft commented Apr 5, 2023

Huh #9380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-TerminalControl Issues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.) Help Wanted We encourage anyone to jump in on these. Issue-Task It's a feature request, but it doesn't really need a major design. Product-Terminal The new Windows Terminal.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants