diff options
| author | xs <xs@xs.local> | 2026-11-09 00:39:46 +0800 |
|---|---|---|
| committer | xs <xs@xs.local> | 2026-11-09 00:39:46 +0800 |
| commit | fd00430789fb99d152e2ca392e9c36ffd0f12cab (patch) | |
| tree | 359341aa6ebf3872f9a4b7ac6bd328433f85922a /core | |
| parent | 208e3009fc795538c86c5b8ca2ee2c9e1dbd4c90 (diff) | |
tmux: prefix-/ opens the scrollback in a read-only vim popup (99%) with line numbers
Diffstat (limited to 'core')
| -rw-r--r-- | core/tmux.conf | 4 |
1 files changed, 4 insertions, 0 deletions
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 | |||
| 32 | set -g status-right-length 70 | 32 | set -g status-right-length 70 |
| 33 | 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" | 33 | 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" |
| 34 | 34 | ||
| 35 | # prefix + /: whole scrollback in a read-only vim popup with line numbers (:N, /search, y); :q closes it | ||
| 36 | # (replaces the default prefix + / "describe key"); capture goes via a named buffer so it targets this pane | ||
| 37 | 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" | ||
| 38 | |||
| 35 | # ===== Shared clipboard: RAM file /dev/shm/clip/buf on CLIP_HOST ===== | 39 | # ===== Shared clipboard: RAM file /dev/shm/clip/buf on CLIP_HOST ===== |
| 36 | %hidden CLIP_HOST="root@p.noml.ch" | 40 | %hidden CLIP_HOST="root@p.noml.ch" |
| 37 | # One persistent ssh link (opens on first use, one key touch). | 41 | # One persistent ssh link (opens on first use, one key touch). |
