File tree Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Expand file tree Collapse file tree 2 files changed +29
-4
lines changed Original file line number Diff line number Diff line change @@ -4,6 +4,11 @@ Change Log
44[ master]
55--------
66
7+ ### Added
8+
9+ - Mouse support, controlled by ` yank_with_mouse ` and ` yank_selection_mouse `
10+ (@keidax )
11+
712[ v2.3.0] 2018-02-01
813-------------------
914
Original file line number Diff line number Diff line change @@ -209,13 +209,33 @@ You can change this by setting `@yank_selection`:
209209set -g @yank_selection ' primary' # or ' secondary' or ' clipboard'
210210```
211211
212+ With mouse support turned on (see below) the default clipboard for mouse
213+ selections is `primary`.
214+
215+ You can change this by setting `@yank_selection_mouse`:
216+
217+ ``` tmux
218+ # ~/.tmux.conf
219+
220+ set -g @yank_selection_mouse ' clipboard' # or ' primary' or ' secondary'
221+ ```
212222### Mouse Support
213223
214- When making a selection using `tmux` with `mode-mouse on` or
215- `mode- mouse copy-mode`, you cannot rely on the default ' release mouse after
216- selection to copy ' behavior .
224+ `tmux-yank` has mouse support enabled by default. It will only work if `tmux` ' s
225+ built-in mouse support is also enabled (with ` mouse on ` since ` tmux ` 2.1, or
226+ ` mode-mouse on ` in older versions) .
217227
218- Instead, press <kbd>y</kbd> before releasing mouse.
228+ To yank with the mouse, click and drag with the primary button to begin
229+ selection, and release to yank.
230+
231+ If you would prefer to disable this behavior, or provide your own bindings for
232+ the ` MouseDragEnd1Pane` event, you can do so with:
233+
234+ ` ` ` tmux
235+ # ~/.tmux.conf
236+
237+ set -g @yank_with_mouse off # or 'on'
238+ ` ` `
219239
220240# ## vi mode support
221241
You can’t perform that action at this time.
0 commit comments