Add search to tmux, explain mouse support for scrolling (#2036)

This commit is contained in:
Mathis Chenuet 2024-04-08 10:34:11 +02:00 committed by GitHub
parent 7f81a61d0d
commit 1325a4c6e6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 12 additions and 5 deletions

17
tmux.md
View File

@ -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