summaryrefslogtreecommitdiffstats
path: root/tmux.1
diff options
context:
space:
mode:
authornicm <nicm>2022-12-16 08:13:40 +0000
committernicm <nicm>2022-12-16 08:13:40 +0000
commit3b3f42053a5f11af5285392a5a072facbc16f4a9 (patch)
treef25bf77a7a4d0c46aa701fe6b23439fa1effc913 /tmux.1
parent7e497c7f2303b29b0f44fe360a78c44ca86b87f9 (diff)
Add send-keys -K to handle keys directly as if typed (so look up in key
table). GitHub issue 3361.
Diffstat (limited to 'tmux.1')
-rw-r--r--tmux.111
1 files changed, 9 insertions, 2 deletions
diff --git a/tmux.1 b/tmux.1
index 4f314110..2a2e54bf 100644
--- a/tmux.1
+++ b/tmux.1
@@ -3212,13 +3212,14 @@ lists only the first matching key.
lists the command for keys that do not have a note rather than skipping them.
.Tg send
.It Xo Ic send-keys
-.Op Fl FHlMRX
+.Op Fl FHKlMRX
+.Op Fl c Ar target-client
.Op Fl N Ar repeat-count
.Op Fl t Ar target-pane
.Ar key Ar ...
.Xc
.D1 Pq alias: Ic send
-Send a key or keys to a window.
+Send a key or keys to a window or client.
Each argument
.Ar key
is the name of the key (such as
@@ -3227,6 +3228,12 @@ or
.Ql NPage )
to send; if the string is not recognised as a key, it is sent as a series of
characters.
+If
+.Fl K
+is given, keys are sent to
+.Ar target-client ,
+so they are looked up in the client's key table, rather than to
+.Ar target-pane .
All arguments are sent sequentially from first to last.
If no keys are given and the command is bound to a key, then that key is used.
.Pp