Enter newline in prompt with shift+enter

Resolved 💬 7 comments Opened Aug 31, 2025 by frees11 Closed Sep 3, 2025
💡 Likely answer: A maintainer (gpeal, contributor) responded on this thread — see the highlighted reply below.

What feature would you like to see?

Can we also support shift+enter when entering newline in prompt like competition has? Ctrl+j is kinda wtf

Are you interested in implementing this feature?

_No response_

Additional information

_No response_

View original on GitHub ↗

7 Comments

MarkusJLechner · 10 months ago

Instead of hardcoded shortcuts, it would be nice to be able to configure in the config

pidgeon777 · 10 months ago
pidgeon777 · 10 months ago
### What feature would you like to see? Can we also support shift+enter when entering newline in prompt like competition has? Ctrl+j is kinda wtf ### Are you interested in implementing this feature? _No response_ ### Additional information _No response_

Or even better, Enter for adding newline, Ctrl+Enter for sending the input.

Hotkeys should be configurable.

MaurUppi · 10 months ago

Had you tried Shift + Enter? It works on codex-cli 0.27.0, and even the status line is shown
⏎ send Ctrl+J newline Ctrl+T transcript Ctrl+C quit

0.29.0
⏎ send Shift+⏎ newline Ctrl+T transcript Ctrl+C quit

frees11 · 10 months ago

Thats great thank you, I wasn't aware, that I can use shift+enter now, I am
happy now, one minor thing would be to have correct label in gui, but
anyway great job.

On Wed, Sep 3, 2025 at 3:07 PM 4Ants @.***> wrote:

MaurUppi left a comment (openai/codex#2995) <https://github.com/openai/codex/issues/2995#issuecomment-3249183132> Had you tried shelf+Enter? It works on codex-cli 0.27.0, and even status line is shown ⏎ send Ctrl+J newline Ctrl+T transcript Ctrl+C quit — Reply to this email directly, view it on GitHub <https://github.com/openai/codex/issues/2995#issuecomment-3249183132>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AAO2LS276ZPEXGCJNLDISW33Q3R2DAVCNFSM6AAAAACFIQWBZGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZTENBZGE4DGMJTGI> . You are receiving this because you authored the thread.Message ID: @.***>

--
---
S pozdravom
Ing. Radoslav Bačik
email: @.***
tel CR: +420722476209
tel SR: +421949441929
Skype:radoslav.bacik
GTalk:radoslav.bacik

gpeal contributor · 10 months ago

Shift + enter is now supported. If it doesn't work, it's because your terminal doesn't support enhanced keyboard reporting. Most modern terminals (iTerm, ghostty, etc. do)

iyosifov · 5 months ago

@gpeal What protocol or exact mode constitutes "enhanced keyboard reporting" precisely? I tried shift + enter in Gnome Terminal and it didn't work. I'd love to file a bug report against them but I'll need more details for that.