From e766f0ac28f5eee3a66d17f379b27c2a0c86862a Mon Sep 17 00:00:00 2001 From: Vitor Melo Date: Thu, 14 May 2026 06:40:20 -0300 Subject: [PATCH] Add bind M-Enter to open new pane em tmux (#5785) --- config/tmux/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 40293937..cbab9ad5 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -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