aboutsummaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf36
1 files changed, 26 insertions, 10 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index 6b3ad73..15606e2 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -127,16 +127,32 @@ bind -n M-0 select-window -t :=0
# See: https://github.com/christoomey/vim-tmux-navigator
is_vim="ps -o state= -o comm= -t '#{pane_tty}' | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|l?n?vim?x?)(diff)?$'"
-bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
-bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
-bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
-bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
-
-# Bind "Ctrl+hjkl" to navigate between panes in the nested session
-bind -Tnav -n C-h select-pane -L
-bind -Tnav -n C-j select-pane -D
-bind -Tnav -n C-k select-pane -U
-bind -Tnav -n C-l select-pane -R
+#bind-key -n 'C-h' if-shell "$is_vim" 'send-keys C-h' 'select-pane -L'
+#bind-key -n 'C-j' if-shell "$is_vim" 'send-keys C-j' 'select-pane -D'
+#bind-key -n 'C-k' if-shell "$is_vim" 'send-keys C-k' 'select-pane -U'
+#bind-key -n 'C-l' if-shell "$is_vim" 'send-keys C-l' 'select-pane -R'
+
+# {{{ keybinds: select-pane
+bind -Tnav h select-pane -L
+bind h select-pane -L
+bind -Tnav C-h select-pane -L
+bind C-h select-pane -L
+bind -Tnav j select-pane -D
+bind j select-pane -D
+bind -Tnav C-j select-pane -D
+bind C-j select-pane -D
+bind -Tnav k select-pane -U
+bind k select-pane -U
+bind -Tnav C-k select-pane -U
+bind C-k select-pane -U
+bind -Tnav l select-pane -R
+bind l select-pane -R
+bind -Tnav C-l select-pane -R
+bind C-l select-pane -R
+bind -Tnav p select-pane -l
+bind p select-pane -l
+bind -Tnav C-p select-pane -l
+bind C-p select-pane -l
tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \