Skip to content

Strip or replace tabs when pasting #6134

Open

Description

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">

Activity

  1. ghost added
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 22, 2020
  2. ghost added
    Needs-Tag-FixDoesn't match tag requirements
    on May 22, 2020
  3. mdalacu commented on May 22, 2020

    @mdalacu
    Author

    Annotation 2020-05-22 160454

  4. DHowett commented on May 25, 2020

    @DHowett
    Member

    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.

  5. changed the title [-]Paste from google Sheets[/-] [+]Strip or replace tabs when pasting[/+] on May 25, 2020
  6. added
    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)
    Help WantedWe encourage anyone to jump in on these.
    Issue-TaskIt's a feature request, but it doesn't really need a major design.
    and removed
    Needs-Author-FeedbackThe original author of the issue/PR needs to come back and respond to something
    on May 25, 2020
  7. ghost removed
    Needs-Tag-FixDoesn't match tag requirements
    on May 25, 2020
  8. removed
    Needs-TriageIt's a new issue that the core contributor team needs to triage at the next triage meeting
    on May 25, 2020
  9. ghost added
    In-PRThis issue has a related PR
    on Jun 17, 2020
  10. ghost removed
    In-PRThis issue has a related PR
    on Sep 7, 2020
  11. zadjii-msft commented on Apr 5, 2023

    @zadjii-msft
    Member

    Huh #9380

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Area-TerminalControlIssues pertaining to the terminal control (input, selection, keybindings, mouse interaction, etc.)Help WantedWe encourage anyone to jump in on these.Issue-TaskIt's a feature request, but it doesn't really need a major design.Product-TerminalThe new Windows Terminal.

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions