-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Description
not really sure if this is a tmux or opencode issue, but when I'm on tmux hitting shift+enter sends the request instead of creating a new line.
I totally nuke my tmux config just to make sure it's related to any of my packages on tmux, didn't work
unbind C-b
set -g prefix C-a
bind C-a send-prefix
bind r source-file ~/.config/tmux/tmux.conf
set-option -g default-terminal "tmux-256color"
set-window-option -g xterm-keys on
set-option -ga terminal-overrides ",xterm-ghostty:XT"
(also have passthrough on before)
My current workaround is this
# tmux config
bind-key -n S-Enter if-shell '[ "#{pane_current_command}" = "opencode" ] || [ "#{window_name}" = "opencode" ]' \
"send-keys M-Enter" \
"send-keys S-Enter"
# opencode config
{
"keybinds": {
"input_submit": "enter",
"input_newline": "alt+enter,ctrl+j",
Metadata
Metadata
Assignees
Labels
No labels