You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fyi Windows Terminal + WSL2 + zsh shell + Arch Linux I also had an issue where the default shift + enter does not work (it submits the message to the LLM). But as @adamdottv mentioned, I reset the keymap to be ctrl + enter or ctrl + j (see below) and it works great! For others who may run into the same issue.
NOTE: you see I added the leader keybind there because it appears as if you set any keybind, the leader keybind no longer is set by default so you have to explicitly add it. cc @adamdottv
# Let tmux recognize Shift+Enter from iTerm2, then forward as CSI u bytes
set -s extended-keys on
set -as terminal-features 'xterm*:extkeys'
bind -n S-Enter send-keys -H 1b 5b 31 33 3b 32 75
my terminal-features are different to yours, and I don't seem to need extended-keys to have shift+enter create new lines, so I'm not sure what the minimal required configs are, but the key seems to be sending hex-encoded representation of the CSI key
environment:
MacOS
tmux
ghostty
neovim
newlines with shift+enter now working consistently regardless where opencode is opened
Activity
adamdotdevin commentedon Jun 18, 2025
i just overhauled keybinds completely, check the readme; you can now configure newline to a different key, lmk if that's a solution for you!
GitMurf commentedon Jun 18, 2025
fyi
Windows Terminal + WSL2 + zsh shell + Arch LinuxI also had an issue where the defaultshift + enterdoes not work (it submits the message to the LLM). But as @adamdottv mentioned, I reset the keymap to bectrl + enterorctrl + j(see below) and it works great! For others who may run into the same issue.NOTE: you see I added the leader keybind there because it appears as if you set any keybind, the leader keybind no longer is set by default so you have to explicitly add it. cc @adamdottv
net commentedon Jun 19, 2025
FWIW shift+enter works for me in tmux and Ghostty.
aminroosta commentedon Aug 20, 2025
I had the same issue with tmux and ghostty, the following workaround solved it for me.
and
princejoogie commentedon Jan 4, 2026
for kitty users, i added this to my kitty.conf
+ map shift+enter send_text all \x1b[13;2ufix(developer): add defense-in-depth against git operation bypass (#168)
oricho123 commentedon Feb 18, 2026
This did it for me (for claude code usage)
larrybotha commentedon Feb 21, 2026
@oricho123 excellent, thanks
I only needed the send-key config:
larrybotha/dotfiles@7a2a76b
i.e.
bind -n S-Enter send-keys -H 1b 5b 31 33 3b 32 75my
terminal-featuresare different to yours, and I don't seem to needextended-keysto haveshift+entercreate new lines, so I'm not sure what the minimal required configs are, but the key seems to be sending hex-encoded representation of the CSI keyenvironment:
newlines with
shift+enternow working consistently regardless where opencode is openedchore: bump version to 0.2.8 (anomalyco#167)
scottlittle commentedon May 13, 2026
And likewise for wezterm users, I added this to my wezterm.lua:
DePingus commentedon Jun 13, 2026
Just FYI for future searchers...
This works, but you also have to enable extended-keys in your
~/.tmux.conffeat(es-app): tail-first transcript load (anomalyco#167)