aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.event.rs
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-08-16 14:00:01 +0200
committerGitHub <noreply@github.com>2024-08-16 14:00:01 +0200
commit056537d3eef06cddc60dc13b715a41766bb1fe9d (patch)
treeff7e107e992e4c98ac60ac88da7215cb0beb668a /zellij-utils/assets/prost/api.event.rs
parentdocs(changelog): CommandPaneReRun plugin event (diff)
downloadsl0ppij-056537d3eef06cddc60dc13b715a41766bb1fe9d.tar.gz
sl0ppij-056537d3eef06cddc60dc13b715a41766bb1fe9d.tar.xz
sl0ppij-056537d3eef06cddc60dc13b715a41766bb1fe9d.zip
feat(ux): first run setup-wizard (#3556)
* separate saved/runtime structure, kind of working * serializing config * work * work * save config through the configuration screen * work * startup wizard * style(code): cleanups * fix(session): reload config from disk when switching sessions * style(fmt): rustfmt * fix(config): propagate cli config options to screen * style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/assets/prost/api.event.rs')
-rw-r--r--zellij-utils/assets/prost/api.event.rs13
1 files changed, 12 insertions, 1 deletions
diff --git a/zellij-utils/assets/prost/api.event.rs b/zellij-utils/assets/prost/api.event.rs
index 11ab070b..2e9fafa7 100644
--- a/zellij-utils/assets/prost/api.event.rs
+++ b/zellij-utils/assets/prost/api.event.rs
@@ -11,7 +11,7 @@ pub struct Event {
pub name: i32,
#[prost(
oneof = "event::Payload",
- tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21"
+ tags = "2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22"
)]
pub payload: ::core::option::Option<event::Payload>,
}
@@ -60,10 +60,18 @@ pub mod event {
EditPaneExitedPayload(super::EditPaneExitedPayload),
#[prost(message, tag = "21")]
CommandPaneRerunPayload(super::CommandPaneReRunPayload),
+ #[prost(message, tag = "22")]
+ FailedToWriteConfigToDiskPayload(super::FailedToWriteConfigToDiskPayload),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
+pub struct FailedToWriteConfigToDiskPayload {
+ #[prost(string, optional, tag = "1")]
+ pub file_path: ::core::option::Option<::prost::alloc::string::String>,
+}
+#[allow(clippy::derive_partial_eq_without_eq)]
+#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CommandPaneReRunPayload {
#[prost(uint32, tag = "1")]
pub terminal_pane_id: u32,
@@ -426,6 +434,7 @@ pub enum EventType {
EditPaneOpened = 22,
EditPaneExited = 23,
CommandPaneReRun = 24,
+ FailedToWriteConfigToDisk = 25,
}
impl EventType {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -459,6 +468,7 @@ impl EventType {
EventType::EditPaneOpened => "EditPaneOpened",
EventType::EditPaneExited => "EditPaneExited",
EventType::CommandPaneReRun => "CommandPaneReRun",
+ EventType::FailedToWriteConfigToDisk => "FailedToWriteConfigToDisk",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -489,6 +499,7 @@ impl EventType {
"EditPaneOpened" => Some(Self::EditPaneOpened),
"EditPaneExited" => Some(Self::EditPaneExited),
"CommandPaneReRun" => Some(Self::CommandPaneReRun),
+ "FailedToWriteConfigToDisk" => Some(Self::FailedToWriteConfigToDisk),
_ => None,
}
}