version 1.529, 2017/01/24 20:15:32 |
version 1.530, 2017/01/24 21:50:22 |
|
|
With vi key bindings, a prefix is entered using the number keys; with |
With vi key bindings, a prefix is entered using the number keys; with |
emacs, the Alt (meta) key and a number begins prefix entry. |
emacs, the Alt (meta) key and a number begins prefix entry. |
.Pp |
.Pp |
Mode key bindings are defined in two tables: |
|
.Em vi-choice |
|
and |
|
.Em emacs-choice |
|
for keys used when choosing from lists (such as produced by the |
|
.Ic choose-window |
|
command). |
|
.Pp |
|
The synopsis for the |
The synopsis for the |
.Ic copy-mode |
.Ic copy-mode |
command is: |
command is: |
|
|
.Bl -tag -width Ds |
.Bl -tag -width Ds |
.It Xo Ic bind-key |
.It Xo Ic bind-key |
.Op Fl nr |
.Op Fl nr |
.Op Fl t Ar mode-table |
|
.Op Fl T Ar key-table |
.Op Fl T Ar key-table |
.Ar key Ar command Op Ar arguments |
.Ar key Ar command Op Ar arguments |
.Xc |
.Xc |
|
|
.Ic repeat-time |
.Ic repeat-time |
option. |
option. |
.Pp |
.Pp |
If |
|
.Fl t |
|
is present, |
|
.Ar key |
|
is bound in |
|
.Ar mode-table . |
|
.Pp |
|
To view the default bindings and possible commands, see the |
To view the default bindings and possible commands, see the |
.Ic list-keys |
.Ic list-keys |
command. |
command. |
.It Xo Ic list-keys |
.It Xo Ic list-keys |
.Op Fl t Ar mode-table |
|
.Op Fl T Ar key-table |
.Op Fl T Ar key-table |
.Xc |
.Xc |
.D1 (alias: Ic lsk ) |
.D1 (alias: Ic lsk ) |
|
|
.Fl T |
.Fl T |
only |
only |
.Ar key-table . |
.Ar key-table . |
.Pp |
|
With |
|
.Fl t , |
|
the key bindings in |
|
.Ar mode-table |
|
are listed; this may be one of: |
|
.Em vi-choice |
|
or |
|
.Em emacs-choice . |
|
.It Xo Ic send-keys |
.It Xo Ic send-keys |
.Op Fl lMRX |
.Op Fl lMRX |
.Op Fl N Ar repeat-count |
.Op Fl N Ar repeat-count |
|
|
the secondary prefix key, to a window as if it was pressed. |
the secondary prefix key, to a window as if it was pressed. |
.It Xo Ic unbind-key |
.It Xo Ic unbind-key |
.Op Fl an |
.Op Fl an |
.Op Fl t Ar mode-table |
|
.Op Fl T Ar key-table |
.Op Fl T Ar key-table |
.Ar key |
.Ar key |
.Xc |
.Xc |
.D1 (alias: Ic unbind ) |
.D1 (alias: Ic unbind ) |
Unbind the command bound to |
Unbind the command bound to |
.Ar key . |
.Ar key . |
.Fl n , |
.Fl n |
.Fl T |
|
and |
and |
.Fl t |
.Fl T |
are the same as for |
are the same as for |
.Ic bind-key . |
.Ic bind-key . |
If |
If |