From cfad90ec8221764d366d17299ed0a2b34ebd734b Mon Sep 17 00:00:00 2001 From: srdusr Date: Sun, 22 Oct 2023 20:11:26 +0200 Subject: Testing nested tmux session settings --- .config/tmux/tmux.conf | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to '.config/tmux') diff --git a/.config/tmux/tmux.conf b/.config/tmux/tmux.conf index 0ead12f..933c9b5 100644 --- a/.config/tmux/tmux.conf +++ b/.config/tmux/tmux.conf @@ -127,7 +127,6 @@ 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-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' @@ -147,8 +146,8 @@ bind-key -T copy-mode-vi 'C-l' select-pane -R bind-key -T copy-mode-vi 'C-\' select-pane -l # Change horizontal split % and Vertical split " to h and v respectively and change current working directory -bind v split-window -h -c "#{pane_current_path}" -bind h split-window -v -c "#{pane_current_path}" +bind | split-window -h -c "#{pane_current_path}" +bind - split-window -v -c "#{pane_current_path}" # Pane resizing, then shift + vi-directional keys, default is D,U,L,R bind -r H resize-pane -L 20 @@ -167,7 +166,7 @@ bind-key ! break-pane -d -n _hidden_pane bind-key @ join-pane -s $.0 # Send Pane to another session/window -bind-key j command-prompt -p "send pane to:" "join-pane -t '%%'" +#bind-key j command-prompt -p "send pane to:" "join-pane -t '%%'" #―――――――――――――――――――――――――――――――――――――――――― -- cgit v1.2.3