diff options
author | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-25 14:30:31 +0000 |
---|---|---|
committer | Brooks J Rady <b.j.rady@gmail.com> | 2021-03-25 14:30:31 +0000 |
commit | 0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0 (patch) | |
tree | 2c0f056ef7110fddfa183d568d8497f4dd1c0a8f /zellij-tile/src | |
parent | f2f77583848bce219fc098508fffde30fa366b89 (diff) |
Rename Help to ModeInfo
Diffstat (limited to 'zellij-tile/src')
-rw-r--r-- | zellij-tile/src/data.rs | 4 | ||||
-rw-r--r-- | zellij-tile/src/shim.rs | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/zellij-tile/src/data.rs b/zellij-tile/src/data.rs index a6e07983a..67bf0d742 100644 --- a/zellij-tile/src/data.rs +++ b/zellij-tile/src/data.rs @@ -27,7 +27,7 @@ pub enum Key { #[strum_discriminants(derive(EnumString, Hash, Serialize, Deserialize))] #[strum_discriminants(name(EventType))] pub enum Event { - ModeUpdate(Help), // FIXME: Rename the `Help` struct + ModeUpdate(ModeInfo), TabUpdate(TabInfo), KeyPress(Key), } @@ -62,7 +62,7 @@ impl Default for InputMode { /// which indicates the current [`InputMode`] and what the keybinds for that mode /// are. Related to the default `status-bar` plugin. #[derive(Default, Debug, Clone, Serialize, Deserialize)] -pub struct Help { +pub struct ModeInfo { pub mode: InputMode, // FIXME: This should probably return Keys and Actions, then sort out strings plugin-side pub keybinds: Vec<(String, String)>, // <shortcut> => <shortcut description> diff --git a/zellij-tile/src/shim.rs b/zellij-tile/src/shim.rs index e0e654909..afb49f278 100644 --- a/zellij-tile/src/shim.rs +++ b/zellij-tile/src/shim.rs @@ -36,7 +36,7 @@ pub fn set_selectable(selectable: bool) { unsafe { host_set_selectable(selectable) }; } -pub fn get_help() -> Help { +pub fn get_help() -> ModeInfo { unsafe { host_get_help() }; deserialize_from_stdin().unwrap_or_default() } |