From c3ae99aa9443e72c940b64a53c85865bc9c9c6c1 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Wed, 29 May 2024 14:33:02 +0200 Subject: [PATCH] tmux: Fix broken target window flag tmux stopped supporting format strings for the -t flag --- .config/tmux/tmux.conf | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 108b544..b187729 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -51,15 +51,18 @@ bind < splitw -v -c "#{pane_current_path}" unbind '"' bind > splitw -h -c "#{pane_current_path}" +# tmux stopped supporting format string for -t, thus run-shell is bind -N "Create a new window behind the current one with the same CWD" \ - c neww -a -c "#{pane_current_path}" -t #{active_window_index} + c run-shell \ + "tmux neww -at #{active_window_index} -c \"#{pane_current_path}\"" bind -N "Break off the current pane to a new window behind the current one" \ - ! breakp -a -t #{active_window_index} + ! run-shell "tmux breakp -at #{active_window_index}" bind -N "Source the config file" \ - R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; \ - display "Sourced $XDG_CONFIG_HOME/tmux/tmux.conf" + R \ + source-file "$XDG_CONFIG_HOME/tmux/tmux.conf" \; \ + display "Sourced $XDG_CONFIG_HOME/tmux/tmux.conf" # Fullscreen pane (toggle) bind F resizep -Z