summaryrefslogtreecommitdiffstats
path: root/zellij-tile/src
diff options
context:
space:
mode:
authorBrooks J Rady <b.j.rady@gmail.com>2021-03-25 14:30:31 +0000
committerBrooks J Rady <b.j.rady@gmail.com>2021-03-25 14:30:31 +0000
commit0ea8ce497d899e1a9faa241cfeaedcaa35f8e3f0 (patch)
tree2c0f056ef7110fddfa183d568d8497f4dd1c0a8f /zellij-tile/src
parentf2f77583848bce219fc098508fffde30fa366b89 (diff)
Rename Help to ModeInfo
Diffstat (limited to 'zellij-tile/src')
-rw-r--r--zellij-tile/src/data.rs4
-rw-r--r--zellij-tile/src/shim.rs2
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()
}