diff options
| author | Aram Drevekenin <aram@poor.dev> | 2024-12-16 16:03:20 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-16 16:03:20 +0100 |
| commit | dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7 (patch) | |
| tree | 0ae41e8175d2a3fd260b3c510a30502f6386ac7f /zellij-utils/assets/prost/api.plugin_command.rs | |
| parent | docs(changelog): multiplayer cursor fix (diff) | |
| download | sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.tar.gz sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.tar.xz sl0ppij-dd291e2a1f9b4ee3eb1a947e1501a54b10663ea7.zip | |
feat(ux): pin floating panes (#3876)
* working
* ui indication
* add keybinding
* add to plugin panes
* fix with multiple cursors
* toggle with the mouse
* fix e2e tests and add new one
* some cleanups
* add to layouts
* make mouse click more lenient
* allow setting a new floating pane as pinned
* make toggle work throughthe command line
* add to plugin api
* get tests to pass
* style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/assets/prost/api.plugin_command.rs')
| -rw-r--r-- | zellij-utils/assets/prost/api.plugin_command.rs | 17 |
1 files changed, 16 insertions, 1 deletions
diff --git a/zellij-utils/assets/prost/api.plugin_command.rs b/zellij-utils/assets/prost/api.plugin_command.rs index d4604c98..a023a68f 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, 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" + 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" )] pub payload: ::core::option::Option<plugin_command::Payload>, } @@ -176,10 +176,20 @@ pub mod plugin_command { RebindKeysPayload(super::RebindKeysPayload), #[prost(message, tag = "89")] ChangeHostFolderPayload(super::ChangeHostFolderPayload), + #[prost(message, tag = "90")] + SetFloatingPanePinnedPayload(super::SetFloatingPanePinnedPayload), } } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] +pub struct SetFloatingPanePinnedPayload { + #[prost(message, optional, tag = "1")] + pub pane_id: ::core::option::Option<PaneId>, + #[prost(bool, tag = "2")] + pub should_be_pinned: 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, @@ -598,6 +608,8 @@ pub struct FloatingPaneCoordinates { pub width: ::core::option::Option<FixedOrPercentValue>, #[prost(message, optional, tag = "4")] pub height: ::core::option::Option<FixedOrPercentValue>, + #[prost(bool, optional, tag = "5")] + pub pinned: ::core::option::Option<bool>, } #[allow(clippy::derive_partial_eq_without_eq)] #[derive(Clone, PartialEq, ::prost::Message)] @@ -725,6 +737,7 @@ pub enum CommandName { RebindKeys = 112, ListClients = 113, ChangeHostFolder = 114, + SetFloatingPanePinned = 115, } impl CommandName { /// String value of the enum field names used in the ProtoBuf definition. @@ -850,6 +863,7 @@ impl CommandName { CommandName::RebindKeys => "RebindKeys", CommandName::ListClients => "ListClients", CommandName::ChangeHostFolder => "ChangeHostFolder", + CommandName::SetFloatingPanePinned => "SetFloatingPanePinned", } } /// Creates an enum from field names used in the ProtoBuf definition. @@ -972,6 +986,7 @@ impl CommandName { "RebindKeys" => Some(Self::RebindKeys), "ListClients" => Some(Self::ListClients), "ChangeHostFolder" => Some(Self::ChangeHostFolder), + "SetFloatingPanePinned" => Some(Self::SetFloatingPanePinned), _ => None, } } |
