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

enable Shift + Enter to add new space and Scroll bar in input field

Open nylla8444 opened this issue 1 year ago • 4 comments

What would you like to be added?

Currently there is no way to add new space in the cli. it is kind of frustrating that everytime my muscle memory kicks in and press shift + Enter for new line it automatically sends it.

And if possible a scroll bar as currently you need to spam the arrow key to go at the top of your prompt when it becomes so long.

Why is this needed?

This is useful for user readability. As usually when user entered a long prompt, it is a pain in the head to read a long text, sometimes you yourself can not understand it.

Additional context

Image

nylla8444 avatar Jul 03 '25 17:07 nylla8444

HI @nylla8444 if you run /help it will show you keyboard shortcuts:

Keyboard Shortcuts:                                                                                                                                             │
│ Enter - Send message                                                                                                                                            │
│ Ctrl+J - New line                                                                                                                                               │
│ Up/Down - Cycle through your prompt history                                                                                                                     │
│ Alt+Left/Right - Jump through words in the input                                                                                                                │
│ Esc - Cancel operation                                                                                                                                          │
│ Ctrl+C - Quit application

Ctrl+J is what you are looking for 😄

jackwotherspoon avatar Jul 03 '25 17:07 jackwotherspoon

There's an open issue to add shift+return as a feature: https://github.com/google-gemini/gemini-cli/issues/849

olivi-eh avatar Jul 03 '25 17:07 olivi-eh

nice, thanks guys

nylla8444 avatar Jul 03 '25 18:07 nylla8444

ctrl+enter to new line

Developer-fahim avatar Jul 11 '25 18:07 Developer-fahim