mirror of
https://github.com/prurigro/darkcloud-tmuxconfig.git
synced 2024-12-27 11:04:34 -05:00
Start counting windows/panes @ 1 and add direct switching with M-[0-9]
This commit is contained in:
parent
b062b88ade
commit
94c093e087
3 changed files with 31 additions and 2 deletions
|
@ -32,6 +32,7 @@
|
|||
* `?` and `/`: Show help for available key bindings and commands respectively.
|
||||
* `y` and `Ctrl-p`: Enter __copy mode__ and paste from the copy buffer respectively.
|
||||
* (**copy mode**) `v`, `y` and `Escape`: Begin selection, copy selection and cancel **copy mode** respectively.
|
||||
* `Alt-[0-9]` (no prefix): Switch directly to the given window.
|
||||
|
||||
## Credits ##
|
||||
|
||||
|
|
|
@ -22,7 +22,9 @@ bind Space send-prefix
|
|||
# SETTINGS
|
||||
#
|
||||
# general
|
||||
set-option -g default-terminal "screen-256color" #set $TERM to screen-256color for compatibility with programs expecting colour
|
||||
set-option -g default-terminal "screen-256color" #set $TERM variable (urxvt users use: rxvt-unicode-256color)
|
||||
set-option -g base-index 1 #start counting windows at 1 instead of 0 (for more logical keboard-switching)
|
||||
set-option -g pane-base-index 1 #start counting panes at 1 instead of 0
|
||||
set-option -g renumber-windows on #when a window is closed, renumber the remaining windows
|
||||
set-option -g set-titles on #attempt to set the terminal title
|
||||
set-option -g set-titles-string "#I:#P - #W - #T" #string used to set the terminal title
|
||||
|
@ -113,6 +115,18 @@ bind C-p paste-buffer
|
|||
bind -t vi-copy y copy-selection
|
||||
bind -t vi-copy v begin-selection
|
||||
bind -t vi-copy Escape cancel
|
||||
#
|
||||
# bind ctrl-[0-9] to switching directly to the respective window
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-2 select-window -t 2
|
||||
bind -n M-3 select-window -t 3
|
||||
bind -n M-4 select-window -t 4
|
||||
bind -n M-5 select-window -t 5
|
||||
bind -n M-6 select-window -t 6
|
||||
bind -n M-7 select-window -t 7
|
||||
bind -n M-8 select-window -t 8
|
||||
bind -n M-9 select-window -t 9
|
||||
bind -n M-0 select-window -t 10
|
||||
|
||||
# STATUS LINE
|
||||
#
|
||||
|
|
|
@ -22,7 +22,9 @@ bind Space send-prefix
|
|||
# SETTINGS
|
||||
#
|
||||
# general
|
||||
set-option -g default-terminal "screen-256color" #set $TERM to screen-256color for compatibility with programs expecting colour
|
||||
set-option -g default-terminal "screen-256color" #set $TERM variable (urxvt users use: rxvt-unicode-256color)
|
||||
set-option -g base-index 1 #start counting windows at 1 instead of 0 (for more logical keboard-switching)
|
||||
set-option -g pane-base-index 1 #start counting panes at 1 instead of 0
|
||||
set-option -g renumber-windows on #when a window is closed, renumber the remaining windows
|
||||
set-option -g set-titles on #attempt to set the terminal title
|
||||
set-option -g set-titles-string "#I:#P - #W - #T" #string used to set the terminal title
|
||||
|
@ -113,6 +115,18 @@ bind C-p paste-buffer
|
|||
bind -t vi-copy y copy-selection
|
||||
bind -t vi-copy v begin-selection
|
||||
bind -t vi-copy Escape cancel
|
||||
#
|
||||
# bind ctrl-[0-9] to switching directly to the respective window
|
||||
bind -n M-1 select-window -t 1
|
||||
bind -n M-2 select-window -t 2
|
||||
bind -n M-3 select-window -t 3
|
||||
bind -n M-4 select-window -t 4
|
||||
bind -n M-5 select-window -t 5
|
||||
bind -n M-6 select-window -t 6
|
||||
bind -n M-7 select-window -t 7
|
||||
bind -n M-8 select-window -t 8
|
||||
bind -n M-9 select-window -t 9
|
||||
bind -n M-0 select-window -t 10
|
||||
|
||||
# STATUS LINE
|
||||
#
|
||||
|
|
Loading…
Reference in a new issue