dotfiles

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README

commit 1f748ab7629b3252c5483236888fb0da097fac1e
parent c9ec7caa11df384d85e00e501e5de7c176c25c0d
Author: Janis Pagel <janis.pagel@ims.uni-stuttgart.de>
Date:   Tue,  9 Apr 2019 16:39:58 +0200

Create bindings for easier window switching

Diffstat:
Mtmux.conf | 20+++++++++-----------
1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/tmux.conf b/tmux.conf @@ -3,7 +3,7 @@ ######################################################### ############################################# -########## re-binding ####################### +########## (re)-binding ####################### ############################################# # GNU-Screen compatible prefix @@ -17,9 +17,9 @@ bind - split-window -v # reload config file bind r source-file ~/.tmux.conf -# key for switching to last used window -bind-key C-p last-window -bind-key C-y last-pane +# switch windows using Ctrl-n for next and Ctrl-p for previous window +bind -n M-n next-window +bind -n M-p last-window # switch panes using Alt-arrow without prefix bind -n M-Left select-pane -L @@ -27,13 +27,14 @@ bind -n M-Right select-pane -R bind -n M-Up select-pane -U bind -n M-Down select-pane -D +# show window list +bind -n M-w choose-tree + ################################################################## ###################### status bar ################################ ################################################################## set-option -g status on -# for tmux version < 2.1 -#set -g status-utf8 on set -g status-interval 1 # default 15 secs # visual notification of activity in other windows @@ -62,7 +63,6 @@ set -g window-status-current-format "" ################################################################# # do not allow automatic renaming of window names - set-window-option -g automatic-rename off set-option -g allow-rename off @@ -80,20 +80,18 @@ set-window-option -g pane-active-border-style '' set -g mode-keys vi # mouse mode - # only for tmux < v2.1 #set -g mode-mouse on #set -g mouse-select-pane on - set -g mouse on -# allows scrolling in a tmux panel without going into scroll mode +# allows mouse scrolling in a tmux panel without going into scroll mode bind -n WheelUpPane if-shell -F -t = "#{mouse_any_flag}" "send-keys -M" "if -Ft= '#{pane_in_mode}' 'send-keys -M' 'copy-mode -e; send-keys -M'" # allows to choose panes by scrolling down into them bind -n WheelDownPane select-pane -t= \; send-keys -M -# sets the scroll back limit on a certain value +# sets the scroll back limit to a certain value set-option -g history-limit 50000 # sets the default coding to utf-8 for tmux version < 2.1