aboutsummaryrefslogtreecommitdiff
path: root/tmux/tmux.conf
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/tmux.conf')
-rw-r--r--tmux/tmux.conf34
1 files changed, 16 insertions, 18 deletions
diff --git a/tmux/tmux.conf b/tmux/tmux.conf
index 626a22e..a47df0b 100644
--- a/tmux/tmux.conf
+++ b/tmux/tmux.conf
@@ -9,17 +9,22 @@ set -g status-position bottom
set -g status-keys emacs
# If you mark a pane with c-b m you can swap it tapping this
-bind-key M-s swap-pane
+bind -N "Swap with marked pane" M-S swap-pane
+bind -N "Swap with marked pane" '`' swap-pane
# Pretty nifty little option to mirror input for all panes
-bind M-s set synchronize-panes
+bind -N "Syncronize input between panes" M-s set synchronize-panes
# Allow the hotkeys to be switched using M-x to C-x, M-b to C-b, and so forth
-bind M-x set prefix C-x
-bind M-b set prefix C-b
-bind M-a set prefix C-a
+bind -N "Change prefix" M-x set prefix C-x
+bind -N "Change prefix" M-b set prefix C-b
+bind -N "Change prefix" M-a set prefix C-a
+
+bind -N "Resize pane to 35% width" '|' resizep -x 35%
+bind -N "Resize pane to 35% height" '\' resizep -y 35%
+bind -N "Resize pane to 35% with and height, but prompt first" \
+ '+' command-prompt -I "resizep -x 35% -y 35%"
-# set -g mode-mouse on
set -g mode-keys vi
# set -g aggressive-resize on
@@ -53,17 +58,16 @@ set-option -g history-limit 16000
set -sg escape-time 0
# Select panes with vim like bindings
-bind-key M-k select-pane -U
-bind-key M-j select-pane -D
-bind-key M-h select-pane -L
-bind-key M-l select-pane -R
+bind-key -N "Select pane above" M-k select-pane -U
+bind-key -N "Select pane below" M-j select-pane -D
+bind-key -N "Select pane to the left" M-h select-pane -L
+bind-key -N "Select pane to the right" M-l select-pane -R
# Reload configuration
bind-key r source ~/.tmux.conf
# Respawn the pane # Useful if you have `set -g remain-on-exit on` or so
-bind-key M-r respawn-pane
-
+bind-key -N "Respawn pane" M-r respawn-pane
# Change the status line a little bit, most are close to defaults
set -g status-left-length 35
@@ -81,11 +85,5 @@ set -g set-titles-string "tmux: #{session_name} [#I]#{window_name} -- #T"
# Does not seem to work with the native terminal.
set -g mouse on
-# Old mouse method
-# set-option -g mode-mouse on
-# set-option -g mouse-resize-pane on
-# set-option -g mouse-select-pane on
-# set-option -g mouse-select-window on
-
# If you want any local configuration
source ~/.tmux.conf.local