chore(.tmux.conf): add binding for searching with / and ? to improve navigation in tmux

feat(.tmux.conf): set default directory for new horizontal and vertical splits to current pane's directory for better context
fix(.tmux.conf): fix pane resize binding to resize down instead of up for better consistency with other bindings
This commit is contained in:
David Ibia
2024-01-30 16:13:15 +01:00
parent 044695bc61
commit 91bde47885

View File

@@ -10,7 +10,8 @@ set-window-option -g mode-keys vi
unbind r unbind r
bind r source-file ~/.tmux.conf \; display "Reloaded!" bind r source-file ~/.tmux.conf \; display "Reloaded!"
# Set binding for searching with / and ?
bind-key / copy-mode \; send-key ?
# Setting up vi binds for tmux copy mode # Setting up vi binds for tmux copy mode
bind-key -T copy-mode-vi "v" send-keys -X begin-selection bind-key -T copy-mode-vi "v" send-keys -X begin-selection
@@ -20,13 +21,11 @@ unbind -T copy-mode-vi MouseDragEnd1Pane
# Setting up vertical split with | # Setting up vertical split with |
unbind % unbind %
bind | split-window -h bind | split-window -h -c '#{pane_current_path}'
# Setting up horizontal split with - # Setting up horizontal split with -
unbind '"' unbind '"'
bind - split-window -v bind - split-window -v -c '#{pane_current_path}'
# Setting up pane resize with hjkl # Setting up pane resize with hjkl
bind -r j resize-pane -D 5 bind -r j resize-pane -D 5