diff --git a/tmux/.tmux.conf b/tmux/.tmux.conf index f305464..a649660 100644 --- a/tmux/.tmux.conf +++ b/tmux/.tmux.conf @@ -2,7 +2,8 @@ set -g default-command "${SHELL}" # color support -set -g default-terminal 'xterm-256color' +set -g default-terminal 'tmux-256color' +set -ga terminal-overrides ',xterm-256color:RGB' set -ga terminal-overrides ',xterm-256color:Tc' # get rid of esc delay @@ -39,6 +40,11 @@ bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-pipe-and-cancel "wl-cop bind -T copy-mode-vi i send-keys -X cancel bind -T copy-mode-vi Escape send-keys -X cancel +# open new panes in the same directory as the current pane +# (braces to appease the tmux tree-sitter parser) +bind % { split-window -h -c "#{pane_current_path}" } +bind '"' { split-window -v -c "#{pane_current_path}" } +# bind c { new-window -c "#{pane_current_path}" } # plugins