Add bind M-Enter to open new pane em tmux (#5785)

This commit is contained in:
Vitor Melo
2026-05-14 11:40:20 +02:00
committed by GitHub
parent 3e098f6dd5
commit e766f0ac28
+4
View File
@@ -13,6 +13,10 @@ bind -T copy-mode-vi v send -X begin-selection
bind -T copy-mode-vi y send -X copy-selection-and-cancel
# Pane Controls
bind -n M-Enter run-shell \
"[[ $(tmux list-panes | wc -l) -eq 1 ]] && \
tmux splitw -h -c '#{pane_current_path}' || \
tmux splitw -v -c '#{pane_current_path}'"
bind h split-window -v -c "#{pane_current_path}"
bind v split-window -h -c "#{pane_current_path}"
bind x kill-pane