From cc7c696cd0772e466da403eb4e3f00f4e8d8ae1e Mon Sep 17 00:00:00 2001 From: Can Celik Date: Sat, 19 Sep 2026 14:47:18 +0300 Subject: feat: add configurable pane screen and scrollback clearing (#4383) --- docs/next/api/herdr-api.schema.json | 16 ++++++++++++++++ docs/next/website/src/data/config-reference.json | 6 ++++++ 2 files changed, 22 insertions(+) (limited to 'docs') diff --git a/docs/next/api/herdr-api.schema.json b/docs/next/api/herdr-api.schema.json index 26299e79..6f8b4f20 100644 --- a/docs/next/api/herdr-api.schema.json +++ b/docs/next/api/herdr-api.schema.json @@ -5707,6 +5707,22 @@ ], "type": "object" }, + { + "properties": { + "method": { + "const": "pane.clear", + "type": "string" + }, + "params": { + "$ref": "#/schemas/request/$defs/PaneTarget" + } + }, + "required": [ + "method", + "params" + ], + "type": "object" + }, { "properties": { "method": { diff --git a/docs/next/website/src/data/config-reference.json b/docs/next/website/src/data/config-reference.json index cf102f4b..ece9a833 100644 --- a/docs/next/website/src/data/config-reference.json +++ b/docs/next/website/src/data/config-reference.json @@ -697,6 +697,12 @@ "default": "\"prefix+e\"", "description": "Open the focused pane scrollback in $EDITOR." }, + { + "key": "keys.clear_pane", + "type": "keybinding", + "default": "unset", + "description": "Clear the focused pane screen and scrollback, keeping the current cursor line and its visible soft-wrapped rows. Sends no input to the running program and does nothing on the alternate screen (for example, Vim). Unset by default; for example, clear_pane = \"prefix+ctrl+k\"." + }, { "key": "keys.copy_mode", "type": "keybinding", -- cgit v1.2.3