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_
7 Comments
Instead of hardcoded shortcuts, it would be nice to be able to configure in the config
https://github.com/openai/codex/issues/3049
Or even better,
Enterfor adding newline,Ctrl+Enterfor sending the input.Hotkeys should be configurable.
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 quit0.29.0
⏎ send Shift+⏎ newline Ctrl+T transcript Ctrl+C quitThats 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:
--
---
S pozdravom
Ing. Radoslav Bačik
email: @.***
tel CR: +420722476209
tel SR: +421949441929
Skype:radoslav.bacik
GTalk:radoslav.bacik
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)
@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.