mirror of
https://github.com/DictXiong/dotfiles.git
synced 2026-04-15 14:15:41 +08:00
feat(tmux): prevent tmux from exiting copy mode after selection with mouse
see: - https://www.reddit.com/r/tmux/comments/v73005/how_to_prevent_tmux_from_exiting_copy_mode_after/ - https://www.reddit.com/r/tmux/comments/1ltms6a/how_to_select_text_in_tmux_without_having_it_jump/
This commit is contained in:
parent
ed98a56e05
commit
4e3ce4f9d9
@ -28,6 +28,7 @@ bind | split-window -h -c "#{pane_current_path}"
|
|||||||
bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
|
bind r source-file ~/.tmux.conf \; display-message "tmux.conf reloaded"
|
||||||
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'
|
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'
|
||||||
bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
bind C-x set-window-option synchronize-panes\; display-message "synchronize-panes is now #{?pane_synchronized,on,off}"
|
||||||
|
bind -T copy-mode-vi MouseDragEnd1Pane send-keys -X copy-selection -x
|
||||||
|
|
||||||
# styles
|
# styles
|
||||||
# status bar
|
# status bar
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user