aboutsummaryrefslogtreecommitdiffstats
path: root/src/common/errors.rs
diff options
context:
space:
mode:
authorJonah Caplan <jonahcaplan@gmail.com>2021-02-20 18:19:05 -0500
committerJonah Caplan <jonahcaplan@gmail.com>2021-02-25 01:44:10 -0500
commitce54127d7de314e683ed0fefd8be987bbc47e369 (patch)
tree0fd91434af3477f9b7c16a61b822537a18abcca2 /src/common/errors.rs
parentMake fullscreen panes not override the status bar and strider (#209) (diff)
downloadsl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.gz
sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.tar.xz
sl0ppij-ce54127d7de314e683ed0fefd8be987bbc47e369.zip
add basic tab bar #166
Diffstat (limited to 'src/common/errors.rs')
-rw-r--r--src/common/errors.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/common/errors.rs b/src/common/errors.rs
index 3d105dbc..03aec714 100644
--- a/src/common/errors.rs
+++ b/src/common/errors.rs
@@ -197,6 +197,7 @@ pub enum ScreenContext {
SwitchTabNext,
SwitchTabPrev,
CloseTab,
+ GoToTab,
}
impl From<&ScreenInstruction> for ScreenContext {
@@ -234,6 +235,7 @@ impl From<&ScreenInstruction> for ScreenContext {
ScreenInstruction::SwitchTabNext => ScreenContext::SwitchTabNext,
ScreenInstruction::SwitchTabPrev => ScreenContext::SwitchTabPrev,
ScreenInstruction::CloseTab => ScreenContext::CloseTab,
+ ScreenInstruction::GoToTab(_) => ScreenContext::GoToTab,
}
}
}
@@ -277,6 +279,7 @@ pub enum PluginContext {
GlobalInput,
Unload,
Quit,
+ Tabs,
}
impl From<&PluginInstruction> for PluginContext {
@@ -288,6 +291,7 @@ impl From<&PluginInstruction> for PluginContext {
PluginInstruction::GlobalInput(_) => PluginContext::GlobalInput,
PluginInstruction::Unload(_) => PluginContext::Unload,
PluginInstruction::Quit => PluginContext::Quit,
+ PluginInstruction::UpdateTabs(..) => PluginContext::Tabs,
}
}
}