1
0
Fork 0
mirror of synced 2024-05-28 21:01:09 -04:00

Compare commits

...

1 commit

Author SHA1 Message Date
Gregory Pakosz 461d064af7 fixed _apply_bindings() not supporting
- copy-end-of-line
  - copy-end-of-line-and-cancel
  - copy-pipe-no-clear
  - copy-selection-no-clear
2023-12-03 17:15:14 +01:00

View file

@ -900,12 +900,13 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration'
#
# if [ -n "$command" ]; then
# if ! _is_disabled "$tmux_conf_copy_to_os_clipboard" && _is_true "$tmux_conf_copy_to_os_clipboard"; then
# perl -p -i -e "s/(?!.*?$command)\bcopy-(?:selection|pipe)(-and-cancel)?\b/copy-pipe\1 '$command'/g" "$cfg"
# perl -p -i -e
# "s/(?!.*?$command)\bcopy-(?:selection|pipe)(-end-of-line|-and-cancel|-end-of-line-and-cancel|-no-clear)?\b/copy-pipe\1 '$command'/g" "$cfg"
# else
# if [ "$_tmux_version" -ge 320 ]; then
# perl -p -i -e "s/\bcopy-pipe(-and-cancel)?\b\s+(\"|')?$command\2?/copy-pipe\1/g" "$cfg"
# perl -p -i -e "s/\bcopy-pipe(-end-of-line|-and-cancel|end-of-line-and-cancel|-no-clear)?\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"
# perl -p -i -e "s/\bcopy-pipe(-end-of-line|-and-cancel|end-of-line-and-cancel|-no-clear)?\b\s+(\"|')?$command\2?/copy-selection\1/g" "$cfg"
# fi
# fi
# fi