From 2ace7f24a9a9fa43ab765becf29c40181af61a08 Mon Sep 17 00:00:00 2001 From: Ogulcan Celik Date: Mon, 15 Jun 2026 19:12:13 +0300 Subject: docs: sync #613 key-combo docs for 0.7.0 and credit @dmmulroy --- website/src/content/docs/cli-reference.mdx | 7 +++++++ website/src/content/docs/socket-api.mdx | 6 ++++++ 2 files changed, 13 insertions(+) (limited to 'website/src/content/docs') diff --git a/website/src/content/docs/cli-reference.mdx b/website/src/content/docs/cli-reference.mdx index 74320f8a..f1079995 100644 --- a/website/src/content/docs/cli-reference.mdx +++ b/website/src/content/docs/cli-reference.mdx @@ -145,6 +145,13 @@ herdr pane send-keys [key ...] herdr pane run ``` +`` uses Herdr key-combo syntax: plain printable keys such as `a`, +special keys such as `enter`, `tab`, `esc`, `backspace`, `left`, `right`, +`up`, and `down`, modifier chords such as `ctrl+h`, `control+j`, `alt+x`, +and `shift+tab`, function keys such as `f1`, and named punctuation such as +`minus`, `plus`, and `backtick`. Legacy `C-c` and `c-c` are accepted as +aliases for `ctrl+c`. + `pane run` submits text plus Enter atomically. Prefer it over `send-text` plus `send-keys Enter` for commands. Report agent state from custom hooks: diff --git a/website/src/content/docs/socket-api.mdx b/website/src/content/docs/socket-api.mdx index 2f430a74..74697fd8 100644 --- a/website/src/content/docs/socket-api.mdx +++ b/website/src/content/docs/socket-api.mdx @@ -99,6 +99,12 @@ Pane control methods use public pane ids such as `w1:p1`. Methods whose schema makes `pane_id` optional use the server's active focused pane when it is omitted. `pane.move` always requires the source `pane_id`. +`pane.send_keys` and `pane.send_input.keys` accept Herdr key-combo strings: +plain printable keys, special keys like `enter` and `esc`, modifier chords +like `ctrl+h`, `control+j`, `alt+x`, and `shift+tab`, function keys like +`f1`, and named punctuation like `minus` and `plus`. They do not accept +`prefix+` binding strings. + ```json {"id":"req_current","method":"pane.current","params":{"caller_pane_id":"w1:p1"}} {"id":"req_layout","method":"pane.layout","params":{"pane_id":"w1:p1"}} -- cgit v1.2.3