feat: add configurable pane screen and scrollback clearing (#4383)

This commit is contained in:
Can Celik
2026-09-19 14:47:18 +03:00
committed by GitHub
parent 3f2a6e743f
commit cc7c696cd0
27 changed files with 403 additions and 1 deletions
+1
View File
@@ -59,6 +59,7 @@ pub(crate) fn request_changes_ui(request: &Request) -> bool {
| Method::PaneFocusDirection(_)
| Method::PaneResize(_)
| Method::PaneScroll(_)
| Method::PaneClear(_)
| Method::PaneEditScrollback(_)
| Method::PaneFocus(_)
| Method::PaneInputSet(_)
+2
View File
@@ -165,6 +165,8 @@ pub enum Method {
PaneResize(PaneResizeParams),
#[serde(rename = "pane.scroll")]
PaneScroll(PaneScrollParams),
#[serde(rename = "pane.clear")]
PaneClear(PaneTarget),
#[serde(rename = "pane.edit_scrollback")]
PaneEditScrollback(PaneTarget),
#[serde(rename = "pane.selection.read")]
+1
View File
@@ -457,6 +457,7 @@ pub(crate) fn api_method_name(method: &Method) -> &'static str {
Method::PaneFocusDirection(_) => "pane.focus_direction",
Method::PaneResize(_) => "pane.resize",
Method::PaneScroll(_) => "pane.scroll",
Method::PaneClear(_) => "pane.clear",
Method::PaneEditScrollback(_) => "pane.edit_scrollback",
Method::PaneSelectionRead(_) => "pane.selection.read",
Method::PaneCopyMotion(_) => "pane.copy_motion",