mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-04-24 02:25:41 +08:00
feat(tmux): F12 to passthru
This commit is contained in:
parent
4e3ce4f9d9
commit
a7074fc940
@ -25,10 +25,17 @@ bind - split-window -v -c "#{pane_current_path}"
|
||||
bind | split-window -h -c "#{pane_current_path}"
|
||||
|
||||
# other key bindings
|
||||
## prefix r: reload conf
|
||||
bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
|
||||
## prefix m: toggle mouse mode
|
||||
bind m run 'old=$(tmux show -gv mouse); new="off"; if [ "$old" = "off" ]; then new="on"; fi; tmux set -g mouse $new && tmux display-message toggle\ mouse\ mode\ $new'
|
||||
## prefix C-x: pane sync
|
||||
bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
||||
## prevent jumping to end after mouse selection
|
||||
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x
|
||||
## F12: passthru
|
||||
bind -T root F12 set prefix None \; set key-table off \; set status-bg red \; refresh-client -S
|
||||
bind -T off F12 set -u prefix \; set -u key-table \; set -u status-bg \; refresh-client -S
|
||||
|
||||
# styles
|
||||
# status bar
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user