summaryrefslogtreecommitdiff
path: root/.config/tmux
diff options
context:
space:
mode:
authoryuzu-eva <stevenhu@web.de>2024-10-01 12:17:24 +0200
committeryuzu-eva <stevenhu@web.de>2024-10-01 12:17:24 +0200
commit06f7453ca95fe2583ddf4bac058f3170de9fc2af (patch)
treeed1c2250332c91091e71bdf4b5bb62d6a896045d /.config/tmux
parent704c581ac08aefe8c77a71c5d9166b38ec729afa (diff)
removed tmux-navigator; changed to sudo; changed some keybinds
Diffstat (limited to '.config/tmux')
-rw-r--r--.config/tmux/tmux.conf32
1 files changed, 16 insertions, 16 deletions
diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf
index e2f9959..af55944 100644
--- a/.config/tmux/tmux.conf
+++ b/.config/tmux/tmux.conf
@@ -52,23 +52,23 @@ bind -n M-l resize-pane -R 5
# Smart pane switching with awareness of Vim splits.
# 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'
-tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
-if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
- "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
-if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
- "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
+# 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'
+# tmux_version='$(tmux -V | sed -En "s/^tmux ([0-9]+(.[0-9]+)?).*/\1/p")'
+# if-shell -b '[ "$(echo "$tmux_version < 3.0" | bc)" = 1 ]' \
+# "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\' 'select-pane -l'"
+# if-shell -b '[ "$(echo "$tmux_version >= 3.0" | bc)" = 1 ]' \
+# "bind-key -n 'C-\\' if-shell \"$is_vim\" 'send-keys C-\\\\' 'select-pane -l'"
-bind-key -T copy-mode-vi 'C-H' select-pane -L
-bind-key -T copy-mode-vi 'C-J' select-pane -D
-bind-key -T copy-mode-vi 'C-K' select-pane -U
-bind-key -T copy-mode-vi 'C-L' select-pane -R
-bind-key -T copy-mode-vi 'C-\' select-pane -l
+# bind-key -T copy-mode-vi 'C-H' select-pane -L
+# bind-key -T copy-mode-vi 'C-J' select-pane -D
+# bind-key -T copy-mode-vi 'C-K' select-pane -U
+# bind-key -T copy-mode-vi 'C-L' select-pane -R
+# bind-key -T copy-mode-vi 'C-\' select-pane -l
bind C-l send-keys 'C-l'
bind C-k send-keys 'C-k'