From 96d085eaa702a5c2b003961e46aa5378d7e6d93e Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Thu, 9 Dec 2021 22:37:22 +0100 Subject: [PATCH] made _apply_bindings() work with tmux 3.4 stock bindings, fixes #541 --- .tmux.conf | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index e2e4d76..cc8ecd0 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -744,7 +744,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # tmux_conf_new_window_retain_current_path=${tmux_conf_new_window_retain_current_path:-false} # if _is_enabled "$tmux_conf_new_window_retain_current_path"; then # perl -p -i -e " -# s/\bnew-window\b(?!\s+-)/{$&}/g if /\bdisplay-menu\b/ +# s/\bnew-window\b(?!\s+(?:-|}))/{$&}/g if /\bdisplay-menu\b/ # ; # s/\bnew-window\b/new-window -c '#\{pane_current_path\}'/g" \ # "$cfg" @@ -762,7 +762,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # # if _is_enabled "$tmux_conf_new_pane_retain_current_path"; then # perl -p -i -e " -# s/\bsplit-window\b(?!\s+-)/{$&}/g if /\bdisplay-menu\b/ +# s/\bsplit-window\b(?!\s+(?:-|}))/{$&}/g if /\bdisplay-menu\b/ # ; # s/\bsplit-window\b/split-window -c '#{pane_current_path}'\1/g # ; @@ -775,7 +775,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # tmux_conf_new_session_prompt=${tmux_conf_new_session_prompt:-false} # if _is_enabled "$tmux_conf_new_session_prompt"; then # perl -p -i \ -# -e "s/(?