mirror of
https://github.com/herdrdev/herdr.git
synced 2026-11-06 16:06:22 +00:00
feat: add configurable pane screen and scrollback clearing (#4383)
This commit is contained in:
@@ -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(_)
|
||||
|
||||
@@ -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")]
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user