mirror of
https://github.com/tmux/tmux.git
synced 2024-12-13 01:48:47 +00:00
Sync OpenBSD patchset 365:
Support J and K for scroll up and scroll down in copy mode with vi keys, suggested by martynas.
This commit is contained in:
parent
64e9d07b1b
commit
1eb665832a
@ -1,4 +1,4 @@
|
||||
/* $Id: mode-key.c,v 1.32 2009-10-06 14:10:10 tcunha Exp $ */
|
||||
/* $Id: mode-key.c,v 1.33 2009-10-07 17:13:59 tcunha Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 2008 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
@ -161,6 +161,8 @@ const struct mode_key_entry mode_key_vi_copy[] = {
|
||||
{ '0', 0, MODEKEYCOPY_STARTOFLINE },
|
||||
{ ':', 0, MODEKEYCOPY_GOTOLINE },
|
||||
{ '?', 0, MODEKEYCOPY_SEARCHUP },
|
||||
{ 'J', 0, MODEKEYCOPY_SCROLLDOWN },
|
||||
{ 'K', 0, MODEKEYCOPY_SCROLLUP },
|
||||
{ '\002' /* C-b */, 0, MODEKEYCOPY_PREVIOUSPAGE },
|
||||
{ '\003' /* C-c */, 0, MODEKEYCOPY_CANCEL },
|
||||
{ '\004' /* C-d */, 0, MODEKEYCOPY_HALFPAGEDOWN },
|
||||
|
10
tmux.1
10
tmux.1
@ -1,4 +1,4 @@
|
||||
.\" $Id: tmux.1,v 1.179 2009-10-06 14:14:07 tcunha Exp $
|
||||
.\" $Id: tmux.1,v 1.180 2009-10-07 17:13:59 tcunha Exp $
|
||||
.\"
|
||||
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
|
||||
.\"
|
||||
@ -14,7 +14,7 @@
|
||||
.\" IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING
|
||||
.\" OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
||||
.\"
|
||||
.Dd $Mdocdate: October 6 2009 $
|
||||
.Dd $Mdocdate: October 7 2009 $
|
||||
.Dt TMUX 1
|
||||
.Os
|
||||
.Sh NAME
|
||||
@ -490,7 +490,7 @@ The keys available depend on whether emacs or vi mode is selected
|
||||
.Ic mode-keys
|
||||
option).
|
||||
The following keys are supported as appropriate for the mode:
|
||||
.Bl -column "FunctionXXXXXXXXXXXX" "viXXXXXX" "emacs" -offset indent
|
||||
.Bl -column "FunctionXXXXXXXXXXXX" "viXXXXXXXXX" "emacs" -offset indent
|
||||
.It Sy "Function" Ta Sy "vi" Ta Sy "emacs"
|
||||
.It Li "Back to indentation" Ta "^" Ta "M-m"
|
||||
.It Li "Clear selection" Ta "Escape" Ta "C-g"
|
||||
@ -509,8 +509,8 @@ The following keys are supported as appropriate for the mode:
|
||||
.It Li "Previous page" Ta "C-u" Ta "Page up"
|
||||
.It Li "Previous word" Ta "b" Ta "M-b"
|
||||
.It Li "Quit mode" Ta "q" Ta "Escape"
|
||||
.It Li "Scroll down" Ta "C-Down" Ta "C-Down"
|
||||
.It Li "Scroll up" Ta "C-Up" Ta "C-Up"
|
||||
.It Li "Scroll down" Ta "C-Down or J" Ta "C-Down"
|
||||
.It Li "Scroll up" Ta "C-Up or K" Ta "C-Up"
|
||||
.It Li "Search again" Ta "n" Ta "n"
|
||||
.It Li "Search backward" Ta "?" Ta "C-r"
|
||||
.It Li "Search forward" Ta "/" Ta "C-s"
|
||||
|
Loading…
Reference in New Issue
Block a user