-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathkeymaps.tmux
36 lines (26 loc) · 988 Bytes
/
keymaps.tmux
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# Bind Prefix to C-Space
unbind C-Space
set -g prefix C-Space
bind C-Space send-prefix
# More intuitive splits
bind-key "|" split-window -h -c "#{pane_current_path}"
bind-key "\\" split-window -fh -c "#{pane_current_path}"
bind-key "-" split-window -v -c "#{pane_current_path}"
bind-key "_" split-window -fv -c "#{pane_current_path}"
# Swap windows
bind -r "<" swap-window -d -t -1
bind -r ">" swap-window -d -t +1
# Join pane
bind-key j choose-window 'join-pane -h -s "%%"'
bind-key J choose-window 'join-pane -s "%%"'
# Toggle between windows
bind-key Space last-window
# Toggle between sessions
bind-key C-Space switch-client -l
# Add binding to reload tmux.conf for fast, iterative development
bind r source-file ~/.tmux.conf \; display "~/.tmux.conf reloaded!"
# Keep current path when creating new window
bind c new-window -c "#{pane_current_path}"
# Go to a marked pane
bind \` switch-client -t'{marked}'
bind -n C-z run-shell "ps -o state= -o comm= -t '#{pane_tty}'"