From 4c72ec68c6d4f55e9e5e7212ab4a2cd4c8aeb9d0 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Thu, 3 Jul 2025 12:38:02 +0200 Subject: [PATCH] tmux: better pasting from buffers --- config/tmux/tmux.conf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index 66c6e5b..1822cd5 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -6,7 +6,8 @@ set -g prefix C-space bind C-space send-prefix bind R source-file "$XDG_CONFIG_HOME/tmux/tmux.conf"\; display "RELOADED" bind v copy-mode -bind p paste-buffer +bind P choose-buffer "paste-buffer -b '%%' -s ''" +bind p paste-buffer -s '' bind C command-prompt -p 'Save pane history:' \ -I '~/tmux.history' \ 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer'