Skip to content

Issues with Pasting multi line text #12920

@iuli4n

Description

@iuli4n

What happened?

Three issues so far (on windows powershell).

Let's say I have the following lines of text that are copied to the clipboard.
LINE1
LINE2
LINE3

Issues when I try to paste these using right-click:

  1. If I paste them to the CLI, the lines will be concatenated together without newlines separating them (the newlines are removed and the result is LINE1LINE2LINE3).

  2. If I first type something into the CLI (ex: "read back the following:"), then use ctrl+enter to go to a new line, and then paste the lines, the CLI actually executes the first line multiple times (one time for each line pasted):
    read back the following:
    read back the following:
    read back the following:
    read back the following:

  3. Ctrl+V doesn't work to paste in windows, only right-click. But outside of gemini, Ctrl+V works fine in powershell.

The solution for me is to push CTRL+X twice so that I edit the cli text buffer, and there i can put my lines.

What did you expect to happen?

For each:

  1. I expected the CLI text box to contain:
    LINE1
    LINE2
    LINE3

  2. I expected the CLI text box to contain the following and not execute.
    read back the following:
    LINE1
    LINE2
    LINE3

  3. I expected paste to work with CTRL+V (just like it does for other powershell programs, especially since CTRL+C works in the cli)

Client information

Client Information

Run gemini to enter the interactive CLI, then run the /about command.

> /about
─────────────────────────────────────────────────────────╮
│                                                         │
│ About Gemini CLI                                        │
│                                                         │
│ CLI Version        0.14.0                               │
│ Git Commit         230056cc                             │
│ Model              auto                                 │
│ Sandbox            no sandbox                           │
│ OS                 win32                                │
│ Auth Method        OAuth                                │
│                                                         │
╰─────────────────────────────────────────────────────────╯

Login information

google account

Anything else we need to know?

I searched github issues but couldn't find an open bug related to this.

Metadata

Metadata

Assignees

Labels

area/coreIssues related to User Interface, OS Support, Core Functionalitypriority/p1Important and should be addressed in the near term.status/possible-duplicate

Type

No fields configured for Bug.

Projects

Status

Closed

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions