tmux/↕
This commit is contained in:
parent
e9e12b6b64
commit
6f396db454
1 changed files with 22 additions and 25 deletions
47
sh/tmux.sh
47
sh/tmux.sh
|
@ -127,45 +127,42 @@ set-option -g status-position top
|
||||||
# │ key │
|
# │ key │
|
||||||
# ╰─────╯
|
# ╰─────╯
|
||||||
|
|
||||||
# select sessions with Alt & ↑ | ↓
|
# detach client
|
||||||
|
bind-key -n F6 detach-client
|
||||||
|
|
||||||
|
# new window
|
||||||
|
bind-key -n F2 new-window
|
||||||
|
|
||||||
|
# select pane
|
||||||
|
bind-key -n C-S-Down select-pane -D
|
||||||
|
bind-key -n C-S-Left select-pane -L
|
||||||
|
bind-key -n C-S-Right select-pane -R
|
||||||
|
bind-key -n C-S-Up select-pane -U
|
||||||
|
|
||||||
|
# switch session
|
||||||
bind-key -n M-Down switch-client -n
|
bind-key -n M-Down switch-client -n
|
||||||
bind-key -n M-Up switch-client -p
|
bind-key -n M-Up switch-client -p
|
||||||
|
|
||||||
|
# switch window
|
||||||
|
bind-key -n M-Left previous-window
|
||||||
|
bind-key -n M-Right next-window
|
||||||
|
|
||||||
# ╭─────┬────────╮
|
# ╭─────┬────────╮
|
||||||
# │ key │ prefix │
|
# │ key │ prefix │
|
||||||
# ╰─────┴────────╯
|
# ╰─────┴────────╯
|
||||||
|
|
||||||
|
# split window
|
||||||
|
bind-key h split-window -h
|
||||||
|
bind-key v split-window -v
|
||||||
|
|
||||||
# reload configuration
|
# reload configuration
|
||||||
bind-key r source-file ${file} \\; display-message 'source-file ${file}'
|
bind-key r source-file ${file} \\; display-message 'source-file ${file}'
|
||||||
|
|
||||||
# toggle mouse
|
# toggle mouse
|
||||||
bind-key t set-option -g mouse \\; display-message 'mouse = #{mouse}'
|
bind-key t set-option -g mouse \\; display-message 'mouse = #{mouse}'
|
||||||
|
|
||||||
# ╭─╮
|
# swap window
|
||||||
# ╰─╯
|
|
||||||
|
|
||||||
# bind key to detach client
|
|
||||||
bind-key -n F6 detach-client
|
|
||||||
|
|
||||||
# swap window with next or previous
|
|
||||||
bind-key M-Left swap-window -t -1
|
bind-key M-Left swap-window -t -1
|
||||||
bind-key M-Right swap-window -t +1
|
bind-key M-Right swap-window -t +1
|
||||||
|
|
||||||
# create new window with F2
|
|
||||||
bind-key -n F2 new-window
|
|
||||||
# previous or next window with Alt & ← | →
|
|
||||||
bind-key -n M-Left previous-window
|
|
||||||
bind-key -n M-Right next-window
|
|
||||||
|
|
||||||
# select panes with Ctrl & Shift & ←↑↓→
|
|
||||||
bind-key -n C-S-Down select-pane -D
|
|
||||||
bind-key -n C-S-Left select-pane -L
|
|
||||||
bind-key -n C-S-Right select-pane -R
|
|
||||||
bind-key -n C-S-Up select-pane -U
|
|
||||||
|
|
||||||
# horizontal split with H
|
|
||||||
bind-key h split-window -h
|
|
||||||
# vertical split with V
|
|
||||||
bind-key v split-window -v
|
|
||||||
"
|
"
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue