From 2f2a2accd001eb0b63bd2f31ccdc9ebde27c59dc Mon Sep 17 00:00:00 2001 From: oz6un Date: Tue, 14 Jul 2026 11:46:25 +0300 Subject: [PATCH] feat: tmux extended-keys so Claude Code gets Shift+Enter for multi-line MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Claude Code's /terminal-setup refuses to run inside tmux, but that command isn't the fix — the requirement is tmux forwarding modified keys to the app. extended-keys on + terminal-features extkeys make tmux forward Shift+Enter to Claude Code, which auto-detects it (no manual keybinding). Terminal must send it (Ghostty does); mobile keeps the universal \ + Return fallback. Co-Authored-By: Claude Fable 5 --- files/tmux.conf | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/files/tmux.conf b/files/tmux.conf index 688cbe9..4f1df90 100644 --- a/files/tmux.conf +++ b/files/tmux.conf @@ -1,5 +1,10 @@ set -g default-terminal "tmux-256color" set -ag terminal-overrides ",*:RGB" +# Forward modified keys (Shift+Enter etc.) to apps inside tmux — lets Claude Code +# take Shift+Enter for multi-line prompts (its /terminal-setup can't run in tmux). +# Needs a terminal that sends them (Ghostty does); mobile falls back to \ + Return. +set -s extended-keys on +set -as terminal-features "xterm*:extkeys" set -g default-shell /usr/bin/fish set -g mouse on set -g set-clipboard on