aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.action.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2026-01-20 10:13:37 +0100
committerGitHub <noreply@github.com>2026-01-20 10:13:37 +0100
commit03c86d09cf301db9a62427170f956a632812d67e (patch)
tree5eee73d6201cbe2066ec258a0b7612e84e97aa6d /zellij-utils/assets/prost/api.action.rs
parentFix: allow 0% coordinate specification for floating panes (#4609) (diff)
downloadsl0ppij-03c86d09cf301db9a62427170f956a632812d67e.tar.gz
sl0ppij-03c86d09cf301db9a62427170f956a632812d67e.tar.xz
sl0ppij-03c86d09cf301db9a62427170f956a632812d67e.zip
Allow toggling pane frames for specific panes (#4615)
* initial implementation * add borderless to edit and plugin cli commands * allow changing existing pane to borderless * allow setting in layouts and keybindings * get to work through the existing plugin api commands * fix when applying (swap) layouts * fix tests * allow setting pane as bordered (borderful?) when changing its coordinates (eg. through the cli) * allow explicitly setting a pane as bordered or borderless without toggling * rustfmt * adjust snapshots * docs(changelog): add PR
Diffstat (limited to 'zellij-utils/assets/prost/api.action.rs')
-rw-r--r--zellij-utils/assets/prost/api.action.rs20
1 files changed, 19 insertions, 1 deletions
diff --git a/zellij-utils/assets/prost/api.action.rs b/zellij-utils/assets/prost/api.action.rs
index 52ab0ab0..b7ccb156 100644
--- a/zellij-utils/assets/prost/api.action.rs
+++ b/zellij-utils/assets/prost/api.action.rs
@@ -183,6 +183,8 @@ pub struct FloatingPaneLayout {
pub pane_initial_contents: ::core::option::Option<::prost::alloc::string::String>,
#[prost(uint32, optional, tag="11")]
pub logical_position: ::core::option::Option<u32>,
+ #[prost(bool, optional, tag="12")]
+ pub borderless: ::core::option::Option<bool>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -288,7 +290,7 @@ pub struct OverrideLayoutPayload {
pub struct Action {
#[prost(enumeration="ActionName", tag="1")]
pub name: i32,
- #[prost(oneof="action::OptionalPayload", tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53")]
+ #[prost(oneof="action::OptionalPayload", tags="2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54")]
pub optional_payload: ::core::option::Option<action::OptionalPayload>,
}
/// Nested message and enum types in `Action`.
@@ -394,6 +396,8 @@ pub mod action {
NewInPlacePanePayload(super::NewInPlacePanePayload),
#[prost(message, tag="53")]
OverrideLayoutPayload(super::OverrideLayoutPayload),
+ #[prost(message, tag="54")]
+ SetPaneBorderlessPayload(super::SetPaneBorderlessPayload),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -632,6 +636,17 @@ pub struct FloatingPaneCoordinates {
pub height: ::core::option::Option<SplitSize>,
#[prost(bool, optional, tag="5")]
pub pinned: ::core::option::Option<bool>,
+ #[prost(bool, optional, tag="6")]
+ pub borderless: ::core::option::Option<bool>,
+}
+/// SetPaneBorderlessPayload specifies the pane and borderless state
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct SetPaneBorderlessPayload {
+ #[prost(message, optional, tag="1")]
+ pub pane_id: ::core::option::Option<PaneId>,
+ #[prost(bool, tag="2")]
+ pub borderless: bool,
}
/// NewPanePlacement specifies where a new pane should be placed
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -1025,6 +1040,7 @@ pub enum ActionName {
NewBlockingPane = 91,
NewInPlacePane = 92,
OverrideLayout = 93,
+ SetPaneBorderless = 94,
}
impl ActionName {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1124,6 +1140,7 @@ impl ActionName {
ActionName::NewBlockingPane => "NewBlockingPane",
ActionName::NewInPlacePane => "NewInPlacePane",
ActionName::OverrideLayout => "OverrideLayout",
+ ActionName::SetPaneBorderless => "SetPaneBorderless",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1220,6 +1237,7 @@ impl ActionName {
"NewBlockingPane" => Some(Self::NewBlockingPane),
"NewInPlacePane" => Some(Self::NewInPlacePane),
"OverrideLayout" => Some(Self::OverrideLayout),
+ "SetPaneBorderless" => Some(Self::SetPaneBorderless),
_ => None,
}
}