From fd00430789fb99d152e2ca392e9c36ffd0f12cab Mon Sep 17 00:00:00 2001 From: xs Date: Mon, 9 Nov 2026 00:39:46 +0800 Subject: tmux: prefix-/ opens the scrollback in a read-only vim popup (99%) with line numbers --- core/tmux.conf | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'core/tmux.conf') diff --git a/core/tmux.conf b/core/tmux.conf index 8a21bef..a1851d0 100644 --- a/core/tmux.conf +++ b/core/tmux.conf @@ -32,6 +32,10 @@ set -g status-interval 1 set -g status-right-length 70 set -g status-right "#{?pane_in_mode,line #{e|+:#{scroll_position},#{e|-:#{e|-:#{pane_height},1},#{copy_cursor_y}}}/#{history_size} ,}\"#{=21:pane_title}\" %H:%M %d-%b-%y" +# prefix + /: whole scrollback in a read-only vim popup with line numbers (:N, /search, y); :q closes it +# (replaces the default prefix + / "describe key"); capture goes via a named buffer so it targets this pane +bind-key / capture-pane -J -S - -b scrollback \; display-popup -E -w 99% -h 99% "f=\$(mktemp); tmux save-buffer -b scrollback \$f; tmux delete-buffer -b scrollback; vim -M -c 'set number' + \$f; rm -f \$f" + # ===== Shared clipboard: RAM file /dev/shm/clip/buf on CLIP_HOST ===== %hidden CLIP_HOST="root@p.noml.ch" # One persistent ssh link (opens on first use, one key touch). -- cgit