made _apply_bindings() work with tmux 3.2 stock bindings, fixes #472
This commit is contained in:
parent
3bfec1a25a
commit
760bf4fabd
10
.tmux.conf
10
.tmux.conf
|
@ -785,9 +785,13 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
#
|
||||
# if [ -n "$command" ]; then
|
||||
# if _is_enabled "$tmux_conf_copy_to_os_clipboard"; then
|
||||
# perl -p -i -e "s/\bcopy-selection(-and-cancel)?\b/copy-pipe\1 '$command'/g" "$cfg"
|
||||
# perl -p -i -e "s/(?!.*?$command)\bcopy-(?:selection|pipe)(-and-cancel)?\b/copy-pipe\1 '$command'/g" "$cfg"
|
||||
# else
|
||||
# perl -p -i -e "s/\bcopy-pipe(-and-cancel)?\b\s+(\"|')?$command\2/copy-selection\1/g" "$cfg"
|
||||
# if [ $_tmux_version -ge 320 ]; then
|
||||
# perl -p -i -e "s/\bcopy-pipe(-and-cancel)?\b\s+(\"|')?$command\2?/copy-pipe\1/g" "$cfg"
|
||||
# else
|
||||
# perl -p -i -e "s/\bcopy-pipe(-and-cancel)?\b\s+(\"|')?$command\2?/copy-selection\1/g" "$cfg"
|
||||
# fi
|
||||
# fi
|
||||
# fi
|
||||
#
|
||||
|
@ -998,7 +1002,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration'
|
|||
# tmux_conf_theme_prefix_bg=${tmux_conf_theme_prefix_bg:-none}
|
||||
# tmux_conf_theme_prefix_attr=${tmux_conf_theme_prefix_attr:-none}
|
||||
#
|
||||
# tmux_conf_theme_mouse=${tmux_conf_theme_mouse:-↗} # U+2197
|
||||
# tmux_conf_theme_mouse=${tmux_conf_theme_mouse:-↗} # U+2197
|
||||
# tmux_conf_theme_mouse_fg=${tmux_conf_theme_mouse_fg:-none}
|
||||
# tmux_conf_theme_mouse_bg=${tmux_conf_theme_mouse_bg:-none}
|
||||
# tmux_conf_theme_mouse_attr=${tmux_conf_theme_mouse_attr:-none}
|
||||
|
|
Loading…
Reference in New Issue