From 429c2f9b0adef3daa408a1746888af22de8bd7f7 Mon Sep 17 00:00:00 2001 From: Fernando Schauenburg Date: Wed, 14 Feb 2024 03:05:27 +0100 Subject: [PATCH] tmux: add a key binding to capture a pane's history --- config/tmux/tmux.conf | 3 +++ 1 file changed, 3 insertions(+) diff --git a/config/tmux/tmux.conf b/config/tmux/tmux.conf index e44ee29..71c1d0e 100644 --- a/config/tmux/tmux.conf +++ b/config/tmux/tmux.conf @@ -7,6 +7,9 @@ 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 C command-prompt -p 'Save pane history:' \ + -I '~/tmux.history' \ + 'capture-pane -S -32768 ; save-buffer %1 ; delete-buffer' # Window/pane management (new windows/panes use the path in current pane) bind c new-window -c '#{pane_current_path}'