Skip to content

Commit 0d212c2

Browse files
author
Bruno Sutic
committed
Change "put selection" key binding to Y
Previously this was `Ctrl-y` but that overrode the default vi-copy mode key binding. Closes #27
1 parent c41a84e commit 0d212c2

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

CHANGELOG.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22

33
### master
4+
- change copy mode "put selection" key binding to `Y` so that vi mode `Ctrl-y`
5+
is not overriden.
46

57
### v1.0.0, Dec 06, 2014
68
- simplify README

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ Enables copying to system clipboard in Tmux. Works on Linux and OS X.
66

77
[![screencast screenshot](/video/screencast_img.png)](https://vimeo.com/102039099)
88

9+
Note: screencast shows using the "put selection" feature with `Ctrl-y` key
10+
binding in copy mode. In `v2.0.0` this key binding was changed to `Y` (shift-y).
11+
912
### Key bindings
1013

1114
- `prefix + y` - copies text from the command line to clipboard.<br/>
@@ -19,7 +22,8 @@ Enables copying to system clipboard in Tmux. Works on Linux and OS X.
1922

2023
**copy mode** bindings:
2124
- `y` - copy selection to system clipboard
22-
- `Ctrl-y` - "put" selection - equivalent to copying a selection, and pasting it to the command line
25+
- `Y` (shift-y) - "put" selection - equivalent to copying a selection, and
26+
pasting it to the command line
2327
- `Alt-y` - performs both of the above: copy to system clipboard and
2428
put to command line
2529

scripts/key_binding_helpers.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ yank_line_option="@yank_line"
44
yank_default="y"
55
yank_option="@copy_mode_yank"
66

7-
put_default="C-y"
7+
put_default="Y"
88
put_option="@copy_mode_put"
99

1010
yank_put_default="M-y"

0 commit comments

Comments
 (0)