mirror of
https://codeberg.org/leana8959/.files.git
synced 2026-02-03 15:39:41 +00:00
home/tmux: improve copy mode
This commit is contained in:
parent
5c311bbfdb
commit
9c9f71f7ff
2 changed files with 6 additions and 0 deletions
|
|
@ -103,5 +103,10 @@ bind -T off F12 \
|
|||
refresh-client -S
|
||||
|
||||
# Better copy
|
||||
# -X flag prevents tmux leaving selection mode, which is jumpy and annoying
|
||||
bind v copy-mode
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi enter send-keys -X copy-selection
|
||||
bind -T copy-mode-vi MouseDown1Pane select-pane \; send-keys -X clear-selection
|
||||
bind -T copy-mode-vi MouseDrag1Pane select-pane \; send-keys -X begin-selection
|
||||
unbind -T copy-mode-vi MouseDragEnd1Pane
|
||||
|
|
|
|||
|
|
@ -29,6 +29,7 @@
|
|||
programs.tmux.extraConfig = lib.mkBefore ''
|
||||
# sessionizer binds
|
||||
bind -n C-f run-shell "tmux new-window tmux-sessionizer"
|
||||
bind -T copy-mode-vi C-f run-shell "tmux new-window tmux-sessionizer"
|
||||
'';
|
||||
|
||||
home.packages = with pkgs; [
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue