feat(tmux): use verbose subcommands for clarity
This commit is contained in:
parent
8c873f7469
commit
58150fb99b
2 changed files with 8 additions and 7 deletions
|
|
@ -48,17 +48,18 @@ bind -r Down resizep -D 5
|
|||
unbind \'; bind \' splitw -hc '#{pane_current_path}'
|
||||
unbind \-; bind \- splitw -vc '#{pane_current_path}'
|
||||
|
||||
unbind y; bind y if -F '#{pane_in_mode}' 'send -X cancel' 'copy-mode'
|
||||
unbind /; bind / if -F '#{pane_in_mode}' { send -X cancel } { copy-mode ; command-prompt -p '/' { send -X search-forward -- '%%' } }
|
||||
unbind ?; bind ? if -F '#{pane_in_mode}' { send -X cancel } { copy-mode ; command-prompt -p '?' { send -X search-backward -- '%%' } }
|
||||
unbind y; bind y if -F '#{pane_in_mode}' 'send-keys -X cancel' 'copy-mode'
|
||||
unbind /; bind / if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; command-prompt -p '/' { send -X search-forward -- '%%' } }
|
||||
unbind ?; bind ? if -F '#{pane_in_mode}' { send-keys -X cancel } { copy-mode ; command-prompt -p '?' { send -X search-backward -- '%%' } }
|
||||
|
||||
bind -T copy-mode-vi v send -X begin-selection
|
||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||
bind -T copy-mode-vi v send-keys -X begin-selection
|
||||
bind -T copy-mode-vi y send-keys -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||
|
||||
unbind b; bind b set status\; refresh -S
|
||||
unbind m; bind m set -g mouse\; run 'mux bar'\; refresh -S
|
||||
unbind m; bind m set -g mouse\; run-shell 'mux bar'\; refresh -S
|
||||
|
||||
unbind ^; bind ^ last-window
|
||||
unbind w; bind w kill-pane;
|
||||
|
||||
unbind e; bind e neww -n 'tmux.conf' "sh -c 'nvim $XDG_CONFIG_HOME/nix/config/tmux/tmux.conf; tmux source $XDG_CONFIG_HOME/tmux/tmux.conf'"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue