aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.plugin_command.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.plugin_command.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.plugin_command.rs')
-rw-r--r--zellij-utils/assets/prost/api.plugin_command.rs28
1 files changed, 27 insertions, 1 deletions
diff --git a/zellij-utils/assets/prost/api.plugin_command.rs b/zellij-utils/assets/prost/api.plugin_command.rs
index 7caeb247..d11cc9e0 100644
--- a/zellij-utils/assets/prost/api.plugin_command.rs
+++ b/zellij-utils/assets/prost/api.plugin_command.rs
@@ -3,7 +3,7 @@
pub struct PluginCommand {
#[prost(enumeration="CommandName", tag="1")]
pub name: i32,
- #[prost(oneof="plugin_command::Payload", 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, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134")]
+ #[prost(oneof="plugin_command::Payload", 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, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 93, 94, 95, 96, 97, 98, 99, 100, 101, 102, 103, 104, 105, 106, 107, 108, 109, 110, 111, 112, 113, 114, 119, 120, 121, 122, 123, 124, 125, 126, 127, 128, 129, 130, 131, 132, 133, 134, 135, 136")]
pub payload: ::core::option::Option<plugin_command::Payload>,
}
/// Nested message and enum types in `PluginCommand`.
@@ -251,6 +251,10 @@ pub mod plugin_command {
DumpSessionLayoutPayload(super::DumpSessionLayoutPayload),
#[prost(message, tag="134")]
GetFocusedPaneInfoPayload(super::GetFocusedPaneInfoPayload),
+ #[prost(message, tag="135")]
+ TogglePaneBorderlessPayload(super::TogglePaneBorderlessPayload),
+ #[prost(message, tag="136")]
+ SetPaneBorderlessPayload(super::SetPaneBorderlessPayload),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -461,6 +465,20 @@ pub struct SetFloatingPanePinnedPayload {
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct TogglePaneBorderlessPayload {
+ #[prost(message, optional, tag="1")]
+ pub pane_id: ::core::option::Option<PaneId>,
+}
+#[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,
+}
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChangeHostFolderPayload {
#[prost(string, tag="1")]
pub new_host_folder: ::prost::alloc::string::String,
@@ -891,6 +909,8 @@ pub struct FloatingPaneCoordinates {
pub height: ::core::option::Option<FixedOrPercentValue>,
#[prost(bool, optional, tag="5")]
pub pinned: ::core::option::Option<bool>,
+ #[prost(bool, optional, tag="6")]
+ pub borderless: ::core::option::Option<bool>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
@@ -1392,6 +1412,8 @@ pub enum CommandName {
RenameLayout = 181,
GetLayoutDir = 182,
GetFocusedPaneInfo = 183,
+ TogglePaneBorderless = 184,
+ SetPaneBorderless = 185,
}
impl CommandName {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -1563,6 +1585,8 @@ impl CommandName {
CommandName::RenameLayout => "RenameLayout",
CommandName::GetLayoutDir => "GetLayoutDir",
CommandName::GetFocusedPaneInfo => "GetFocusedPaneInfo",
+ CommandName::TogglePaneBorderless => "TogglePaneBorderless",
+ CommandName::SetPaneBorderless => "SetPaneBorderless",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -1731,6 +1755,8 @@ impl CommandName {
"RenameLayout" => Some(Self::RenameLayout),
"GetLayoutDir" => Some(Self::GetLayoutDir),
"GetFocusedPaneInfo" => Some(Self::GetFocusedPaneInfo),
+ "TogglePaneBorderless" => Some(Self::TogglePaneBorderless),
+ "SetPaneBorderless" => Some(Self::SetPaneBorderless),
_ => None,
}
}