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,8 +54,8 @@ bind -n SecondClick1Pane {
|
|||||||
} {
|
} {
|
||||||
copy-mode
|
copy-mode
|
||||||
send -X select-word
|
send -X select-word
|
||||||
|
send -X pipe-no-clear "xclip -selection primary"
|
||||||
}
|
}
|
||||||
send -X pipe-no-clear "xclip -selection primary"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bind -n TripleClick1Pane {
|
bind -n TripleClick1Pane {
|
||||||
@@ -65,8 +65,8 @@ bind -n TripleClick1Pane {
|
|||||||
} {
|
} {
|
||||||
copy-mode
|
copy-mode
|
||||||
send -X select-line
|
send -X select-line
|
||||||
|
send -X pipe-no-clear "xclip -selection primary"
|
||||||
}
|
}
|
||||||
send -X pipe-no-clear "xclip -selection primary"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# Scroll up 5 lines when entering copy-mode through the mouse wheel, send 5x`up`
|
# Scroll up 5 lines when entering copy-mode through the mouse wheel, send 5x`up`
|
||||||
|
|||||||
Reference in New Issue
Block a user