gemini-cli icon indicating copy to clipboard operation
gemini-cli copied to clipboard

Shift+Enter not working on Mac

Open nicoloceneda opened this issue 1 year ago • 16 comments

What happened?

The /help menu says that Shift+Enter should result in a new line, but it does not work and just submits the prompt.

What did you expect to happen?

Shift+Enter should result in a new line.

Client information

CLI Version          0.1.7                                   │
│ Git Commit           55cc809                                 │
│ Model                gemini-2.5-pro                          │
│ Sandbox              no sandbox                              │
│ OS                   darwin                                  │
│ Auth Method          OAuth 

Login information

Google Account

Anything else we need to know?

No response

nicoloceneda avatar Jun 28 '25 14:06 nicoloceneda

Sorry about this, this may be a documentation thing. Right now, option-enter should work on mac terminal, and you can also escape newlines with a \

bbiggs avatar Jun 28 '25 15:06 bbiggs

@bbiggs I've just tried CMD ENTER on my Mac and nothing. I can't check my version as using npx and this doesnt work:

> /version

✕ Unknown command: /version

palladius avatar Jun 28 '25 15:06 palladius

Sorry about this, this may be a documentation thing. Right now, option-enter should work on mac terminal, and you can also escape newlines with a \

Option+Enter does not work either

nicoloceneda avatar Jun 28 '25 15:06 nicoloceneda

same shift+enter did not start a new line (on windows too)

tentax143 avatar Jun 28 '25 15:06 tentax143

TIL /about same issue with 0.1.8 on Mac

Image

Image

palladius avatar Jun 28 '25 15:06 palladius

Ok sorry, so i tried on latest Mac:

  • shit enter doesnt work
  • command enter doesnt work
  • option enter DOES work.

Image

palladius avatar Jun 28 '25 15:06 palladius

I renamed this to "on Mac" hope its ok.

palladius avatar Jun 28 '25 15:06 palladius

same shift+enter did not start a new line (on windows too)

Ctrl+Enter works on Windows. Image

welovfree avatar Jun 28 '25 16:06 welovfree

Which windows version?

tentax143 avatar Jun 28 '25 16:06 tentax143

Which windows version?

Windows 11 Version 24H2 (OS Build 26100.4061)

welovfree avatar Jun 28 '25 16:06 welovfree

https://github.com/user-attachments/assets/df8fe6ba-de4e-47b5-965b-36d8550120e7

i didnt work for me on windows

Device name God_of_conquest Processor 13th Gen Intel(R) Core(TM) i7-13620H 2.40 GHz Installed RAM 16.0 GB (15.8 GB usable) Device ID 23D3DA3A-C54B-437F-8944-8C53E0370A4A Product ID 00342-42646-76245-AAOEM System type 64-bit operating system, x64-based processor Pen and touch No pen or touch input is available for this display

Edition Windows 11 Home Single Language Version 24H2 Installed on ‎07-‎06-‎2025 OS build 26100.4351 Experience Windows Feature Experience Pack 1000.26100.107.0

@welovfree

tentax143 avatar Jun 29 '25 03:06 tentax143

Didn't work on Mac M1 by all three combinations

And somehow it installed version 0.1.7 by npm install

PavelNartov avatar Jun 30 '25 08:06 PavelNartov

try CTRL-J or ALT-Enter personally i would prefer: enter = newline. ctrl-enter = submit.

nerdCopter avatar Jun 30 '25 19:06 nerdCopter

ctrl+j indeed works on mac.

My preferred choice would also be: enter = newline ctrl+enter = submit

nicoloceneda avatar Jun 30 '25 19:06 nicoloceneda

Using \ + Enter

Image

wildcatDownstairs avatar Jul 01 '25 00:07 wildcatDownstairs

This is being tracked in #849,

sethtroisi avatar Jul 01 '25 19:07 sethtroisi