fix(tmux): restore clear-screen as prefix + Ctrl+l

vim-tmux-navigator captures plain Ctrl+l for right-pane navigation, which
shadows the shell's clear-screen, and prefix + l is already bound to
resize-pane. Add the navigator's documented passthrough so
Ctrl+Space, Ctrl+l clears the terminal.
This commit is contained in:
Claude 2026-06-11 15:31:30 +00:00
parent d7bb34e1ef
commit 48fba064b7
No known key found for this signature in database

View file

@ -42,6 +42,10 @@ bind -r h resize-pane -L 5
# Use m key to maximize pane
bind -r m resize-pane -Z
# vim-tmux-navigator captures plain Ctrl+l for pane navigation, which breaks
# the shell's clear-screen. Restore it as "Prefix + Ctrl+l".
bind C-l send-keys 'C-l'
# Enable vi mode to allow us to use vim keys to move around in copy mode (Prefix + [ places us in copy mode)
set-window-option -g mode-keys vi
set -g @yank_selection_mouse 'clipboard' # Fix mouse drag copy behavior