Skip to content

Commit

Permalink
fixed _apply_bindings() not supporting
Browse files Browse the repository at this point in the history
  - copy-end-of-line
  - copy-end-of-line-and-cancel
  - copy-pipe-no-clear
  - copy-selection-no-clear

fixes #666
  • Loading branch information
gpakosz committed Jan 25, 2024
1 parent 123ad5c commit c318d08
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .tmux.conf
Original file line number Diff line number Diff line change
Expand Up @@ -950,12 +950,12 @@ 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
Expand Down

0 comments on commit c318d08

Please sign in to comment.