diff options
Diffstat (limited to 'zellij-utils/assets')
-rw-r--r-- | zellij-utils/assets/layouts/welcome.kdl | 8 | ||||
-rw-r--r-- | zellij-utils/assets/prost/api.event.rs | 10 | ||||
-rw-r--r-- | zellij-utils/assets/prost/api.plugin_command.rs | 18 |
3 files changed, 35 insertions, 1 deletions
diff --git a/zellij-utils/assets/layouts/welcome.kdl b/zellij-utils/assets/layouts/welcome.kdl new file mode 100644 index 000000000..1884fe1f0 --- /dev/null +++ b/zellij-utils/assets/layouts/welcome.kdl @@ -0,0 +1,8 @@ +layout { + pane borderless=true { + plugin location="zellij:session-manager" { + welcome_screen true + } + } +} +session_serialization false // this will apply only to the initial welcome screen layout, and is intended to prevent lots of garbage sessions left around diff --git a/zellij-utils/assets/prost/api.event.rs b/zellij-utils/assets/prost/api.event.rs index c095bed21..6d4ed7294 100644 --- a/zellij-utils/assets/prost/api.event.rs +++ b/zellij-utils/assets/prost/api.event.rs @@ -172,6 +172,16 @@ pub struct SessionManifest { pub connected_clients: u32, #[prost(bool, tag = "5")] pub is_current_session: bool, + #[prost(message, repeated, tag = "6")] + pub available_layouts: ::prost::alloc::vec::Vec<LayoutInfo>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct LayoutInfo { + #[prost(string, tag = "1")] + pub name: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub source: ::prost::alloc::string::String, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] diff --git a/zellij-utils/assets/prost/api.plugin_command.rs b/zellij-utils/assets/prost/api.plugin_command.rs index d9b528ae6..5127bb81b 100644 --- a/zellij-utils/assets/prost/api.plugin_command.rs +++ b/zellij-utils/assets/prost/api.plugin_command.rs @@ -5,7 +5,7 @@ pub struct PluginCommand { 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" + 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" )] pub payload: ::core::option::Option<plugin_command::Payload>, } @@ -112,10 +112,18 @@ pub mod plugin_command { CliPipeOutputPayload(super::CliPipeOutputPayload), #[prost(message, tag = "50")] MessageToPluginPayload(super::MessageToPluginPayload), + #[prost(message, tag = "60")] + KillSessionsPayload(super::KillSessionsPayload), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] +pub struct KillSessionsPayload { + #[prost(string, repeated, tag = "1")] + pub session_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>, +} +#[allow(clippy::derive_partial_eq_without_eq)] +#[derive(Clone, PartialEq, ::prost::Message)] pub struct CliPipeOutputPayload { #[prost(string, tag = "1")] pub pipe_name: ::prost::alloc::string::String, @@ -171,6 +179,8 @@ pub struct SwitchSessionPayload { pub pane_id: ::core::option::Option<u32>, #[prost(bool, optional, tag = "4")] pub pane_id_is_plugin: ::core::option::Option<bool>, + #[prost(message, optional, tag = "5")] + pub layout: ::core::option::Option<super::event::LayoutInfo>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -376,6 +386,8 @@ pub enum CommandName { BlockCliPipeInput = 77, CliPipeOutput = 78, MessageToPlugin = 79, + DisconnectOtherClients = 80, + KillSessions = 81, } impl CommandName { /// String value of the enum field names used in the ProtoBuf definition. @@ -464,6 +476,8 @@ impl CommandName { CommandName::BlockCliPipeInput => "BlockCliPipeInput", CommandName::CliPipeOutput => "CliPipeOutput", CommandName::MessageToPlugin => "MessageToPlugin", + CommandName::DisconnectOtherClients => "DisconnectOtherClients", + CommandName::KillSessions => "KillSessions", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -549,6 +563,8 @@ impl CommandName { "BlockCliPipeInput" => Some(Self::BlockCliPipeInput), "CliPipeOutput" => Some(Self::CliPipeOutput), "MessageToPlugin" => Some(Self::MessageToPlugin), + "DisconnectOtherClients" => Some(Self::DisconnectOtherClients), + "KillSessions" => Some(Self::KillSessions), _ => None, } } |