Option to set the characters considered word separators in copy mode, from

Micah Cowan.
This commit is contained in:
Nicholas Marriott
2010-02-22 20:41:16 +00:00
parent efbcf8747d
commit 6767072c9d
4 changed files with 67 additions and 38 deletions

15
tmux.1
View File

@ -649,11 +649,13 @@ The following keys are supported as appropriate for the mode:
.Pp
The next and previous word keys use space and the
.Ql - ,
.Ql _ ,
.Ql \&"
.Ql _
and
.Ql @
characters as word delimiters.
characters as word delimiters by default, but this can be adjusted by
setting the
.Em word-separators
window option.
Next word moves to the start of the next word, next word end to the end of the
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
@ -2031,6 +2033,13 @@ Like
.Ar window-status-format ,
but is the format used when the window is the current window.
.Pp
.It Ic word-separators Ar string
Sets the window's conception of what characters are considered word
separators, for the purposes of the next and previous word commands in
copy mode.
The default is
.Ql \ -_@ .
.Pp
.It Xo Ic xterm-keys
.Op Ic on | off
.Xc