tmux: Get rid of "Not in a mode" error
The copy command should only be executed when not in a mode (i.e. alternate?). This gets rid of the error message "Not in a mode" when double/triple clicking inside of vim etc..
This commit is contained in:
@@ -54,9 +54,9 @@ bind -n SecondClick1Pane {
|
||||
} {
|
||||
copy-mode
|
||||
send -X select-word
|
||||
}
|
||||
send -X pipe-no-clear "xclip -selection primary"
|
||||
}
|
||||
}
|
||||
|
||||
bind -n TripleClick1Pane {
|
||||
select-pane -t=
|
||||
@@ -65,9 +65,9 @@ bind -n TripleClick1Pane {
|
||||
} {
|
||||
copy-mode
|
||||
send -X select-line
|
||||
}
|
||||
send -X pipe-no-clear "xclip -selection primary"
|
||||
}
|
||||
}
|
||||
|
||||
# Scroll up 5 lines when entering copy-mode through the mouse wheel, send 5x`up`
|
||||
# when the current pane is in alternate mode and discard the `-e` flag passed to
|
||||
|
||||
Reference in New Issue
Block a user