diff options
author | nicm <nicm> | 2020-02-05 13:06:49 +0000 |
---|---|---|
committer | Nicholas Marriott <nicholas.marriott@gmail.com> | 2020-02-06 12:49:02 +0000 |
commit | 096f0d35a619bc8a4ea49f856964031d943484c4 (patch) | |
tree | 06ea0e57e358c637cce02b8acfd69be50c25100c | |
parent | 3ad4a7a571768410216c8615e9ea7a3b508a6b6a (diff) | |
download | rtmux-096f0d35a619bc8a4ea49f856964031d943484c4.tar.gz rtmux-096f0d35a619bc8a4ea49f856964031d943484c4.tar.bz2 rtmux-096f0d35a619bc8a4ea49f856964031d943484c4.zip |
Make list-keys description clearer in tmux.1 and remove an unused variable.
-rw-r--r-- | screen.c | 2 | ||||
-rw-r--r-- | tmux.1 | 38 |
2 files changed, 20 insertions, 20 deletions
@@ -154,8 +154,6 @@ screen_set_cursor_colour(struct screen *s, const char *colour) int screen_set_title(struct screen *s, const char *title) { - char *cp; - if (!utf8_isvalid(title)) return (0); free(s->title); @@ -2691,32 +2691,34 @@ command. .Op key .Xc .D1 (alias: Ic lsk ) -List all key bindings. -By default this shows all keys or any bindings for -.Ar key -in the syntax of the +List key bindings. +There are two forms: the default lists keys as .Ic bind-key -command. +commands; .Fl N -instead show keys and attached notes, i -.Ar key-table -if given or in the +lists only keys with attached notes and shows only the key and note for each +key. +.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 and .Em prefix -key tables by default. +key tables are listed by default; +.Fl T +also lists only keys in +.Ar key-table . .Fl P -specifies a prefix to print before each key. -With +specifies a prefix to print before each key and .Fl 1 -only the first matching key and note is shown. +lists only the first matching key. .Pp -Without -.Fl N , -.Fl T -prints only keys in -.Ar key-table , -otherwise all key tables are printed. .It Xo Ic send-keys .Op Fl FHlMRX .Op Fl N Ar repeat-count |