From 21cd1a8af95c023368b2f6bff6d853bdb77ea31e Mon Sep 17 00:00:00 2001 From: Dave Gallant Date: Wed, 28 Aug 2024 21:48:32 -0400 Subject: [PATCH] Add tmux-open and vi bindings --- home/default.nix | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/home/default.nix b/home/default.nix index ef545b0..ff09742 100644 --- a/home/default.nix +++ b/home/default.nix @@ -270,6 +270,12 @@ in { set -g @continuum-restore 'on' ''; } + { + plugin = open; + extraConfig = '' + set -g @plugin 'tmux-plugins/tmux-open' + ''; + } ]; extraConfig = '' set-window-option -g automatic-rename on @@ -302,7 +308,12 @@ in { set -g status-right '#(gitmux #{pane_current_path})' - unbind -T copy-mode-vi MouseDragEnd1Pane + #unbind -T copy-mode-vi MouseDragEnd1Pane + set-window-option -g mode-keys vi + bind-key -T copy-mode-vi v send -X begin-selection + bind-key -T copy-mode-vi V send -X select-line + bind-key -T copy-mode-vi y send -X copy-pipe-and-cancel 'xclip -in -selection clipboard' + ''; };