|
|
@ -93,19 +93,20 @@ bind-key -t vi-copy 'y' copy-selection |
|
|
|
|
|
|
|
|
|
|
|
# Smart pane switching with awareness of Vim splits. |
|
|
|
# Smart pane switching with awareness of Vim splits. |
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator |
|
|
|
# See: https://github.com/christoomey/vim-tmux-navigator |
|
|
|
is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ |
|
|
|
# is_vim="ps -o state= -o comm= -t '#{pane_tty}' \ |
|
|
|
| grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|n?vim?x?)(diff)?$'" |
|
|
|
# | grep -iqE '^[^TXZ ]+ +(\\S+\\/)?g?(view|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-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-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-key -n C-l if-shell "$is_vim" "send-keys C-l" "select-pane -R" |
|
|
|
# bind-key -n C-\ if-shell "$is_vim" "send-keys C-\\" "select-pane -l" |
|
|
|
# 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-h select-pane -L |
|
|
|
bind-key -T copy-mode-vi C-j select-pane -D |
|
|
|
# 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-k select-pane -U |
|
|
|
bind-key -T copy-mode-vi C-l select-pane -R |
|
|
|
# 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-\ select-pane -l |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
bind C-l send-keys 'C-l' |
|
|
|
|
|
|
|
|
|
|
|
# -------------------------------- color begin -------------------------------- |
|
|
|
# -------------------------------- color begin -------------------------------- |
|
|
|
|
|
|
|
|
|
|
@ -159,6 +160,8 @@ if "test ! -d ~/.tmux/plugins/tpm" \ |
|
|
|
set -g @plugin 'tmux-plugins/tpm' |
|
|
|
set -g @plugin 'tmux-plugins/tpm' |
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible' |
|
|
|
set -g @plugin 'tmux-plugins/tmux-sensible' |
|
|
|
set -g @plugin 'tmux-plugins/tmux-yank' |
|
|
|
set -g @plugin 'tmux-plugins/tmux-yank' |
|
|
|
|
|
|
|
set -g @plugin 'tmux-plugins/tmux-open' |
|
|
|
|
|
|
|
set -g @plugin 'christoomey/vim-tmux-navigator' |
|
|
|
|
|
|
|
|
|
|
|
# Other examples: |
|
|
|
# Other examples: |
|
|
|
# set -g @plugin 'github_username/plugin_name' |
|
|
|
# set -g @plugin 'github_username/plugin_name' |
|
|
@ -168,3 +171,6 @@ set -g @plugin 'tmux-plugins/tmux-yank' |
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) |
|
|
|
# Initialize TMUX plugin manager (keep this line at the very bottom of tmux.conf) |
|
|
|
run '~/.tmux/plugins/tpm/tpm' |
|
|
|
run '~/.tmux/plugins/tpm/tpm' |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
set -g @open-S 'https://www.google.com/search?q=' |
|
|
|
|
|
|
|
|
|
|
|