mirror of
https://github.com/tmux/tmux.git
synced 2025-01-08 08:58:47 +00:00
Make list-keys description clearer in tmux.1 and remove an unused variable.
This commit is contained in:
parent
265164d251
commit
fb29242168
2
screen.c
2
screen.c
@ -155,8 +155,6 @@ screen_set_cursor_colour(struct screen *s, const char *colour)
|
|||||||
int
|
int
|
||||||
screen_set_title(struct screen *s, const char *title)
|
screen_set_title(struct screen *s, const char *title)
|
||||||
{
|
{
|
||||||
char *cp;
|
|
||||||
|
|
||||||
if (!utf8_isvalid(title))
|
if (!utf8_isvalid(title))
|
||||||
return (0);
|
return (0);
|
||||||
free(s->title);
|
free(s->title);
|
||||||
|
42
tmux.1
42
tmux.1
@ -2691,32 +2691,34 @@ command.
|
|||||||
.Op key
|
.Op key
|
||||||
.Xc
|
.Xc
|
||||||
.D1 (alias: Ic lsk )
|
.D1 (alias: Ic lsk )
|
||||||
List all key bindings.
|
List key bindings.
|
||||||
By default this shows all keys or any bindings for
|
There are two forms: the default lists keys as
|
||||||
.Ar key
|
|
||||||
in the syntax of the
|
|
||||||
.Ic bind-key
|
.Ic bind-key
|
||||||
command.
|
commands;
|
||||||
.Fl N
|
.Fl N
|
||||||
instead show keys and attached notes, i
|
lists only keys with attached notes and shows only the key and note for each
|
||||||
.Ar key-table
|
key.
|
||||||
if given or in the
|
.Pp
|
||||||
|
With the default form, all key tables are listed by default.
|
||||||
|
.Fl T
|
||||||
|
lists only keys in
|
||||||
|
.Ar key-table .
|
||||||
|
.Pp
|
||||||
|
With the
|
||||||
|
.Fl N
|
||||||
|
form, only keys in the
|
||||||
.Em root
|
.Em root
|
||||||
and
|
and
|
||||||
.Em prefix
|
.Em prefix
|
||||||
key tables by default.
|
key tables are listed by default;
|
||||||
.Fl P
|
|
||||||
specifies a prefix to print before each key.
|
|
||||||
With
|
|
||||||
.Fl 1
|
|
||||||
only the first matching key and note is shown.
|
|
||||||
.Pp
|
|
||||||
Without
|
|
||||||
.Fl N ,
|
|
||||||
.Fl T
|
.Fl T
|
||||||
prints only keys in
|
also lists only keys in
|
||||||
.Ar key-table ,
|
.Ar key-table .
|
||||||
otherwise all key tables are printed.
|
.Fl P
|
||||||
|
specifies a prefix to print before each key and
|
||||||
|
.Fl 1
|
||||||
|
lists only the first matching key.
|
||||||
|
.Pp
|
||||||
.It Xo Ic send-keys
|
.It Xo Ic send-keys
|
||||||
.Op Fl FHlMRX
|
.Op Fl FHlMRX
|
||||||
.Op Fl N Ar repeat-count
|
.Op Fl N Ar repeat-count
|
||||||
|
Loading…
Reference in New Issue
Block a user