@@ -25,15 +25,37 @@ bind-key -T copy-mode-vi 'C-v' send -X begin-selection \; send -X rectangle-togg
2525# ## Key bindings
2626
2727# split panes using | and -
28- bind | split-window -h
29- bind - split-window -v
28+ bind | split-window -h -c " #{pane_current_path} "
29+ bind - split-window -v -c " #{pane_current_path} "
3030unbind ' "'
3131unbind %
3232unbind i
3333bind-key -r i run-shell " tmux neww cht" # need vimpager. See config.fish
3434
35- # Tilish
36- set -g @tilish-default ' main-vertical'
35+ # new window with the same cwd as current window
36+ bind-key c new-window -c " #{pane_current_path}"
37+
38+ # kill pane without confirmation
39+ unbind-key x
40+ bind-key x kill-pane
41+
42+ # resize panes with vim keys
43+ bind-key -r C-h resize-pane -L 1
44+ bind-key -r C-j resize-pane -D 1
45+ bind-key -r C-k resize-pane -U 1
46+ bind-key -r C-l resize-pane -R 1
47+
48+
49+ bind-key -r M-h resize-pane -L 5
50+ bind-key -r M-j resize-pane -D 5
51+ bind-key -r M-k resize-pane -U 5
52+ bind-key -r M-l resize-pane -R 5
53+
54+ # move between panes with vim keys
55+ bind-key h select-pane -L
56+ bind-key j select-pane -D
57+ bind-key k select-pane -U
58+ bind-key l select-pane -R
3759
3860# ## Colors and Styles
3961source-file ~ /ghq/github.com/folke/tokyonight.nvim/extras/tmux/tokyonight_moon.tmux
@@ -54,7 +76,6 @@ set -g @plugin 'tmux-plugins/tpm'
5476set -g @plugin ' tmux-plugins/tmux-sensible'
5577set -g @plugin ' tmux-plugins/tmux-yank'
5678set -g @plugin ' tmux-plugins/tmux-prefix-highlight'
57- set -g @plugin ' jabirali/tmux-tilish'
5879set -g @plugin ' tmux-plugins/tmux-resurrect'
5980set -g @plugin ' tmux-plugins/tmux-continuum'
6081
0 commit comments