mirror of
https://github.com/boxpositron/absolute-dotfiles.git
synced 2026-02-28 03:30:37 +00:00
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:
@@ -10,7 +10,8 @@ set-window-option -g mode-keys vi
|
||||
unbind r
|
||||
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
|
||||
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 |
|
||||
unbind %
|
||||
bind | split-window -h
|
||||
|
||||
bind | split-window -h -c '#{pane_current_path}'
|
||||
|
||||
# Setting up horizontal split with -
|
||||
unbind '"'
|
||||
bind - split-window -v
|
||||
|
||||
bind - split-window -v -c '#{pane_current_path}'
|
||||
|
||||
# Setting up pane resize with hjkl
|
||||
bind -r j resize-pane -D 5
|
||||
|
||||
Reference in New Issue
Block a user