C-Q as prefix. C-Q z ignores mouse. C-Z e enables it back
This commit is contained in:
parent
bda6d613ca
commit
21efef201e
|
@ -1,4 +1,7 @@
|
||||||
# https://gist.github.com/spicycode/1229612
|
# https://gist.github.com/spicycode/1229612
|
||||||
|
unbind C-b
|
||||||
|
set -g prefix C-q
|
||||||
|
bind C-q send-prefix
|
||||||
# 0 is too far from ` ;)
|
# 0 is too far from ` ;)
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
|
||||||
|
@ -11,7 +14,7 @@ set -g status-keys vi
|
||||||
set -g history-limit 10000
|
set -g history-limit 10000
|
||||||
|
|
||||||
setw -g mode-keys vi
|
setw -g mode-keys vi
|
||||||
set -g mouse on
|
set -g mode-mouse on
|
||||||
setw -g monitor-activity on
|
setw -g monitor-activity on
|
||||||
|
|
||||||
bind-key v split-window -h
|
bind-key v split-window -h
|
||||||
|
@ -33,6 +36,10 @@ bind j select-pane -D
|
||||||
bind k select-pane -U
|
bind k select-pane -U
|
||||||
bind l select-pane -R
|
bind l select-pane -R
|
||||||
|
|
||||||
|
# mouse mode on-off
|
||||||
|
bind e set -g mode-mouse on
|
||||||
|
bind z set -g mode-mouse off
|
||||||
|
|
||||||
# Use Alt-vim keys without prefix key to switch panes
|
# Use Alt-vim keys without prefix key to switch panes
|
||||||
bind -n M-h select-pane -L
|
bind -n M-h select-pane -L
|
||||||
bind -n M-j select-pane -D
|
bind -n M-j select-pane -D
|
||||||
|
|
Loading…
Reference in New Issue