Jump-forward, jump-backward in copy mode, based on vi's F and f commands.

This commit is contained in:
Micah Cowan
2010-03-16 17:30:58 +00:00
parent aa8f9018ea
commit 009d8d2ea7
4 changed files with 155 additions and 6 deletions

18
tmux.1
View File

@@ -1,4 +1,4 @@
.\" $Id: tmux.1,v 1.238 2010-03-15 22:03:38 nicm Exp $
.\" $Id: tmux.1,v 1.239 2010-03-16 17:30:58 micahcowan Exp $
.\"
.\" Copyright (c) 2007 Nicholas Marriott <nicm@users.sourceforge.net>
.\"
@@ -610,7 +610,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 "FunctionXXXXXXXXXXXXXX" "viXXXXXXXXXX" "emacs" -offset indent
.Bl -column "FunctionXXXXXXXXXXXXXXXXX" "viXXXXXXXXXX" "emacs" -offset indent
.It Sy "Function" Ta Sy "vi" Ta Sy "emacs"
.It Li "Back to indentation" Ta "^" Ta "M-m"
.It Li "Bottom of history" Ta "G" Ta "M-<"
@@ -629,6 +629,10 @@ The following keys are supported as appropriate for the mode:
.It Li "Go to line" Ta ":" Ta "g"
.It Li "Half page down" Ta "C-d" Ta "M-Down"
.It Li "Half page up" Ta "C-u" Ta "M-Up"
.It Li "Jump forward" Ta "f" Ta "f"
.It Li "Jump backward" Ta "F" Ta "F"
.It Li "Jump again" Ta ";" Ta ";"
.It Li "Jump again in reverse" Ta "," Ta ","
.It Li "Next page" Ta "C-f" Ta "Page down"
.It Li "Next space" Ta "W" Ta ""
.It Li "Next space, end of word" Ta "E" Ta ""
@@ -666,6 +670,16 @@ next word and previous word to the start of the previous word.
The three next and previous space keys work similarly but use a space alone as
the word separator.
.Pp
The jump commands enable quick movement within a line.
For instance, with the default bindings (in either vi or emacs mode),
you can type
.Ql f/ ,
and the cursor will jump to the next slash character on the current line.
You can then type
.Ql \&;
to cause the cursor to jump to the next occurrence of a slash.
(These are based on vi editor commands.)
.Pp
Commands in copy mode may be prefaced by an optional repeat count.
With vi key bindings, a prefix is entered using the number keys; with
emacs, the Alt (meta) key and a number begins prefix entry.