Add tmux yanking
This commit is contained in:
parent
556bf0d7c0
commit
cae9f0e7f4
@ -110,6 +110,7 @@
|
||||
keyMode = "vi";
|
||||
customPaneNavigationAndResize = true;
|
||||
plugins = with pkgs.tmuxPlugins; [
|
||||
yank
|
||||
vim-tmux-navigator
|
||||
];
|
||||
extraConfig = ''
|
||||
@ -142,6 +143,15 @@
|
||||
# Correct colors
|
||||
set -g default-terminal "tmux-256color"
|
||||
set -ga terminal-overrides ",*256col*:Tc"
|
||||
|
||||
# Keybindings for yank
|
||||
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
|
||||
|
||||
# Open split with current working directory
|
||||
bind '"' split-window -v -c "#{pane_current_path}"
|
||||
bind % split-window -h -c "#{pane_current_path}"
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user