Browse Source

made _apply_bindings() work with tmux 3.4 stock bindings, fixes #541

my-config
Gregory Pakosz 3 years ago
parent
commit
96d085eaa7
  1. 6
      .tmux.conf

6
.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/(?<!command-prompt -p )\b(new-session)\b(?!\s+-)/{$&}/g if /\bdisplay-menu\b/" \
# -e "s/(?<!command-prompt -p )\b(new-session)\b(?!\s+(?:-|}))/{$&}/g if /\bdisplay-menu\b/" \
# -e ';' \
# -e "s/(?<!\bcommand-prompt -p )\bnew-session\b(?! -s)/command-prompt -p new-session 'new-session -s \"%%\"'/g" \
# "$cfg"

Loading…
Cancel
Save