C-Q as prefix. C-Q z ignores mouse. C-Z e enables it back
This commit is contained in:
@@ -1,4 +1,7 @@
|
||||
# https://gist.github.com/spicycode/1229612
|
||||
unbind C-b
|
||||
set -g prefix C-q
|
||||
bind C-q send-prefix
|
||||
# 0 is too far from ` ;)
|
||||
set -g base-index 1
|
||||
|
||||
@@ -11,7 +14,7 @@ set -g status-keys vi
|
||||
set -g history-limit 10000
|
||||
|
||||
setw -g mode-keys vi
|
||||
set -g mouse on
|
||||
set -g mode-mouse on
|
||||
setw -g monitor-activity on
|
||||
|
||||
bind-key v split-window -h
|
||||
@@ -33,6 +36,10 @@ bind j select-pane -D
|
||||
bind k select-pane -U
|
||||
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
|
||||
bind -n M-h select-pane -L
|
||||
bind -n M-j select-pane -D
|
||||
|
||||
Reference in New Issue
Block a user