Skip to content

Commit

Permalink
Change "put selection" key binding to Y
Browse files Browse the repository at this point in the history
Previously this was `Ctrl-y` but that overrode the default vi-copy mode
key binding.

Closes #27
  • Loading branch information
Bruno Sutic committed Dec 6, 2014
1 parent c41a84e commit 0d212c2
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Changelog

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

### v1.0.0, Dec 06, 2014
- simplify README
Expand Down
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ Enables copying to system clipboard in Tmux. Works on Linux and OS X.

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

Note: screencast shows using the "put selection" feature with `Ctrl-y` key
binding in copy mode. In `v2.0.0` this key binding was changed to `Y` (shift-y).

### Key bindings

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

**copy mode** bindings:
- `y` - copy selection to system clipboard
- `Ctrl-y` - "put" selection - equivalent to copying a selection, and pasting it to the command line
- `Y` (shift-y) - "put" selection - equivalent to copying a selection, and
pasting it to the command line
- `Alt-y` - performs both of the above: copy to system clipboard and
put to command line

Expand Down
2 changes: 1 addition & 1 deletion scripts/key_binding_helpers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ yank_line_option="@yank_line"
yank_default="y"
yank_option="@copy_mode_yank"

put_default="C-y"
put_default="Y"
put_option="@copy_mode_put"

yank_put_default="M-y"
Expand Down

0 comments on commit 0d212c2

Please sign in to comment.