diff --git a/modules/shell/tmux.nix b/modules/shell/tmux.nix index 597d4de..7f7e000 100644 --- a/modules/shell/tmux.nix +++ b/modules/shell/tmux.nix @@ -23,9 +23,23 @@ in { } tmuxPlugins.sensible tmuxPlugins.vim-tmux-navigator + tmuxPlugins.yank ]; extraConfig = '' set-option -sa terminal-overrides ",xterm*:Tc" + set -g mouse on + + set -g base-index 1 + set -g pane-base-index 1 + set-window-option -g pane-base-index 1 + set-option -g renumber-windows on + + bind-key -T copy-mode-vi v send-keys -X begin-selection + bind-key -T copy-mode-vi C-v send-keys -X rectangle-toggle + bind-key -T copy-mode-vi y send-keys -X copy-selection-and-cancel + + bind '"' split-window -v -c "#{pane_current_path}" + bind % split-window -v -c "#{pane_current_path}" unbind C-b set -g prefix C-Space