From 1325a4c6e6ac268c2efac301581931d399a4dfbc Mon Sep 17 00:00:00 2001 From: Mathis Chenuet <9201969+artemisart@users.noreply.github.com> Date: Mon, 8 Apr 2024 10:34:11 +0200 Subject: [PATCH] Add search to tmux, explain mouse support for scrolling (#2036) --- tmux.md | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/tmux.md b/tmux.md index 19b6ea7585..69c4f5253c 100644 --- a/tmux.md +++ b/tmux.md @@ -33,13 +33,13 @@ category: CLI ### Scrolling - C-b [ # Enter scroll mode then press up and down + C-b [ # Enter scroll mode then press up and down, you can also scroll with mouse support enabled (`set -g mouse on` in `~/.tmux.conf`) ### Copy/paste - C-b [ # 1. Enter scroll mode first. - Space # 2. Start selecting and move around. - Enter # 3. Press enter to copy. + C-b [ # 1. Enter scroll mode first + Space # 2. Start selecting and move around + Enter # 3. Press enter to copy C-b ] # Paste ### Panes @@ -68,9 +68,16 @@ category: CLI C-b ( ) # Switch through sessions $ tmux attach +### Search in buffer + + C-b [ # 1. Enter scroll mode first, you can also scroll with mouse support enabled + C-s # 2. Enter search mode, type pattern then press Enter to start search + n or N # 3. Go to the previous or next match + C-c # 4. Exit search and scroll mode + ### Niceties - C-b t # Time + C-b t # Display a clock, press any key to quit ## Status formats