diff options
author | Nicholas Marriott <nicm@openbsd.org> | 2009-07-28 07:03:32 +0000 |
---|---|---|
committer | Nicholas Marriott <nicm@openbsd.org> | 2009-07-28 07:03:32 +0000 |
commit | 86785004baf4086816b5d6684b9d0e4c56b58ea6 (patch) | |
tree | 822c8656bcf8c550a62c5bd00cb072f92542b48a /tmux.1 | |
parent | 2da48644837cd51cfe5a9628140866f06e049e50 (diff) | |
download | rtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.tar.gz rtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.tar.bz2 rtmux-86785004baf4086816b5d6684b9d0e4c56b58ea6.zip |
Next step towards customisable mode keys: build each default table of keys into
a named tree on start and use that for lookups. Also add command to string
translation tables and modify list-keys to show the the mode key bindings (new
-t argument).
Diffstat (limited to 'tmux.1')
-rw-r--r-- | tmux.1 | 39 |
1 files changed, 38 insertions, 1 deletions
@@ -331,10 +331,29 @@ The following keys are supported as appropriate for the mode: .It Li "Cursor right" Ta "l" Ta "Right" .It Li "Start selection" Ta "Space" Ta "C-Space" .It Li "Cursor up" Ta "k" Ta "Up" -.It Li "Delete to end of line" Ta "D or C" Ta "C-k" +.It Li "Delete to end of line" Ta "D" Ta "C-k" .It Li "Paste buffer" Ta "p" Ta "C-y" .El .Pp +These key bindings are defined in a set of named tables: +.Em vi-edit +and +.Em emacs-edit +for keys used when line editing at the command prompt; +.Em vi-choice +and +.Em emacs-choice +for keys used when choosing from lists (such as produced by the +.Ic window-choose +command) or in output mode; and +.Em vi-copy +and +.Em emacs-copy +used in copy and scroll modes. +The tables may be viewed with the +.Ic list-keys +command. +.Pp The paste buffer key pastes the first line from the top paste buffer on the stack. .Sh BUFFERS @@ -847,13 +866,31 @@ List all clients attached to the server. List the syntax of all commands supported by .Nm . .It Xo Ic list-keys +.Op Ar Fl t Ar key-table .Xc .D1 (alias: Ic lsk ) List all key bindings. +Without +.Fl t +the primary key bindings - those executed when preceded by the prefix key - +are printed. Keys bound without the prefix key (see .Ic bind-key .Fl n ) are enclosed in square brackets. +.Pp +With +.Fl t , +the key bindings in +.Ar key-table +are listed; this may be one of: +.Em vi-edit , +.Em emacs-edit , +.Em vi-choice , +.Em emacs-choice , +.Em vi-copy +or +.Em emacs-copy . .It Xo Ic list-sessions .Xc .D1 (alias: Ic ls ) |