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