README.md 921 Bytes
Newer Older
Mohcine Chraibi's avatar
Mohcine Chraibi committed
1 2 3 4 5 6 7
# Configuration of tmux

1. Clone project and copy files to HOME

```
mkdir tmp_tmux
git clone https://gitlab.version.fz-juelich.de/chraibi1/tmux.git tmp_tmux
Mohcine Chraibi's avatar
Mohcine Chraibi committed
8
cp -r tmp_tmux/* ~
Mohcine Chraibi's avatar
Mohcine Chraibi committed
9 10 11 12 13 14 15
rm -r tmp_tmux
tmux
```


# Keystrokes

Mohcine Chraibi's avatar
Mohcine Chraibi committed
16 17 18 19 20 21
- `Ctrl-a r`: refresh tmux after changing `.tmux.conf`
- `Ctrl-a ,`: change name of the window
- `Ctrl-a v`: split vertically
- `Ctrl-a h`: split horizontally
- `Ctrl-a [`: enter text-mode to navigate the window (`q` to exit)
- `Ctrl-a x`: close windows (answer question with y)
Mohcine Chraibi's avatar
Mohcine Chraibi committed
22 23 24

## Navigation windows

Mohcine Chraibi's avatar
Mohcine Chraibi committed
25
- `Ctrl-a c`: new window 
Mohcine Chraibi's avatar
Mohcine Chraibi committed
26 27 28 29 30
- `Ctrl-p`: previous window
- `Ctrl-n`: next window
- `Ctrl-arrow`: navigate panes (up, down, left, right)
- `Ctrl-number`: number of window

Mohcine Chraibi's avatar
Mohcine Chraibi committed
31 32 33 34 35 36 37 38 39 40 41 42 43
## Copy text

- `Ctrl-space`
- move with arrows to mark text
- `Alt-w`: copy
- `Ctrl-y`: paste


## Search

- Enter text mode with `Ctrl-[`
- `Ctrl-s`: start searching forwards
- `Ctrl-r`: start searching backwards
Mohcine Chraibi's avatar
Mohcine Chraibi committed
44 45 46


![](tmux1.mov)