Skip to content

Commit

Permalink
Add search to tmux, explain mouse support for scrolling (#2036)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemisart committed Apr 8, 2024
1 parent 7f81a61 commit 1325a4c
Showing 1 changed file with 12 additions and 5 deletions.
17 changes: 12 additions & 5 deletions tmux.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 1325a4c

Please sign in to comment.