summaryrefslogtreecommitdiffstats
path: root/zellij-utils/assets/prost/api.action.rs
diff options
context:
space:
mode:
Diffstat (limited to 'zellij-utils/assets/prost/api.action.rs')
-rw-r--r--zellij-utils/assets/prost/api.action.rs33
1 files changed, 32 insertions, 1 deletions
diff --git a/zellij-utils/assets/prost/api.action.rs b/zellij-utils/assets/prost/api.action.rs
index 4096b0740..fe2c2144a 100644
--- a/zellij-utils/assets/prost/api.action.rs
+++ b/zellij-utils/assets/prost/api.action.rs
@@ -5,7 +5,7 @@ pub struct Action {
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, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47"
+ 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"
)]
pub optional_payload: ::core::option::Option<action::OptionalPayload>,
}
@@ -106,6 +106,8 @@ pub mod action {
LaunchPluginPayload(super::LaunchOrFocusPluginPayload),
#[prost(message, tag = "47")]
MessagePayload(super::CliPipePayload),
+ #[prost(enumeration = "super::MoveTabDirection", tag = "48")]
+ MoveTabPayload(i32),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
@@ -341,6 +343,32 @@ impl SearchOption {
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
+pub enum MoveTabDirection {
+ Left = 0,
+ Right = 1,
+}
+impl MoveTabDirection {
+ /// String value of the enum field names used in the ProtoBuf definition.
+ ///
+ /// The values are not transformed in any way and thus are considered stable
+ /// (if the ProtoBuf definition does not change) and safe for programmatic use.
+ pub fn as_str_name(&self) -> &'static str {
+ match self {
+ MoveTabDirection::Left => "Left",
+ MoveTabDirection::Right => "Right",
+ }
+ }
+ /// Creates an enum from field names used in the ProtoBuf definition.
+ pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
+ match value {
+ "Left" => Some(Self::Left),
+ "Right" => Some(Self::Right),
+ _ => None,
+ }
+ }
+}
+#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
+#[repr(i32)]
pub enum ActionName {
Quit = 0,
Write = 1,
@@ -425,6 +453,7 @@ pub enum ActionName {
RenameSession = 80,
LaunchPlugin = 81,
CliPipe = 82,
+ MoveTab = 83,
}
impl ActionName {
/// String value of the enum field names used in the ProtoBuf definition.
@@ -516,6 +545,7 @@ impl ActionName {
ActionName::RenameSession => "RenameSession",
ActionName::LaunchPlugin => "LaunchPlugin",
ActionName::CliPipe => "CliPipe",
+ ActionName::MoveTab => "MoveTab",
}
}
/// Creates an enum from field names used in the ProtoBuf definition.
@@ -604,6 +634,7 @@ impl ActionName {
"RenameSession" => Some(Self::RenameSession),
"LaunchPlugin" => Some(Self::LaunchPlugin),
"CliPipe" => Some(Self::CliPipe),
+ "MoveTab" => Some(Self::MoveTab),
_ => None,
}
}