Skip to content

Commit 0b2eafc

Browse files
committed
refactor(tmux): remove tilish plugin
1 parent bbd2dac commit 0b2eafc

2 files changed

Lines changed: 26 additions & 36 deletions

File tree

config/tmux/README.md

Lines changed: 0 additions & 31 deletions
This file was deleted.

config/tmux/tmux.conf

Lines changed: 26 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -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}"
3030
unbind '"'
3131
unbind %
3232
unbind i
3333
bind-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
3961
source-file ~/ghq/github.com/folke/tokyonight.nvim/extras/tmux/tokyonight_moon.tmux
@@ -54,7 +76,6 @@ set -g @plugin 'tmux-plugins/tpm'
5476
set -g @plugin 'tmux-plugins/tmux-sensible'
5577
set -g @plugin 'tmux-plugins/tmux-yank'
5678
set -g @plugin 'tmux-plugins/tmux-prefix-highlight'
57-
set -g @plugin 'jabirali/tmux-tilish'
5879
set -g @plugin 'tmux-plugins/tmux-resurrect'
5980
set -g @plugin 'tmux-plugins/tmux-continuum'
6081

0 commit comments

Comments
 (0)