From 91d34358ec0a659f38dd8309eff1a75fdb808b3e Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Thu, 4 Jul 2024 11:57:01 +0200 Subject: [PATCH] tmux: Use `%1` instead of `%%` According to the manpage all occurrences of `%1` are replaced, but only the first of `%%`. The binding also worked with `%%`, but better stick to the docs. --- .config/tmux/tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 1fdb17b..2f17d6a 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -140,11 +140,11 @@ bind -T copy-mode-vi y \ } { command-prompt -k -p (operator-pending) { # do line-wise yank on yy - if -F "#{==:%%,y}" { + if -F "#{==:%1,y}" { send -X select-line } { send -X begin-selection - send "%%" + send "%1" } send -X copy-pipe }