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

Description: The CLI currently lacks an intuitive way to enter multiline commands or text.

Open rugalbernsteinn opened this issue 1 year ago • 9 comments

What happened?

Feature Request: Add a keyboard shortcut for multiline input.

What did you expect to happen?

Description: The CLI currently lacks an intuitive way to enter multiline commands or text. Standard shortcuts like Shift+Enter or Ctrl+Enter do not work. Please implement a keyboard shortcut or a special command (like !multiline) to enable multiline input mode. This would significantly improve usability when pasting code blocks or writing longer scripts.

Client information

  • CLI Version: 0.1.7
  • Git Commit: 55cc809
  • Operating System: linux v22.17.0
  • Sandbox Environment: no sandbox
  • Model Version: gemini-2.5-pro
  • Memory Usage: 186.3 MB

Login information

No response

Anything else we need to know?

No response

rugalbernsteinn avatar Jul 03 '25 07:07 rugalbernsteinn

Could you try typing in /help command in the CLI? It should show you the command for multiline. In linux usually Ctrl+J works

devpool007 avatar Jul 03 '25 10:07 devpool007

@rugalbernsteinn 👋 Thanks for opening an issue! As @devpool007 says, /help describes Ctrl + J for new line. You can also do option + Enter on Mac for new lines.

fhinkel avatar Jul 03 '25 10:07 fhinkel

thanks geniuses @fhinkel @devpool007

Image/help

Image

rugalbernsteinn avatar Jul 04 '25 10:07 rugalbernsteinn

First of all, please be respectful @rugalbernsteinn Secondly what version are you using of the CLI?

Image

I have 0.1.9 and it shows the correct newline commands

devpool007 avatar Jul 04 '25 10:07 devpool007

whenever I try and paste in large amounts of text it breaks apart the messages and confuses the cli. In the first version I tried this it wasn't an issue but after I updated it no longer puts the entire clipboard in one textbox.

Jordain avatar Jul 04 '25 11:07 Jordain

Apologies @devpool007 i am using CLI Version: 0.1.7. It looks like it has been updated to version 0.1.9 and /help command now shows ctrl+j option. Sorry for bothering you. I'm actually mad at the guy named @fhinkel

rugalbernsteinn avatar Jul 04 '25 15:07 rugalbernsteinn

@rugalbernsteinn The Shift+Enter key combination is frequently used to enter multiple lines.

doggy8088 avatar Jul 06 '25 07:07 doggy8088

Pasting multiple lines is not working, I just paste it into text document and link it with @document

bukowa avatar Nov 01 '25 18:11 bukowa

opt+enter just enters a newline in macOS

cpita-work avatar Apr 16 '26 19:04 cpita-work