diff options
| author | Denis Maximov <denismaximov98@gmail.com> | 2021-02-25 09:45:23 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-02-25 09:45:23 +0200 |
| commit | f9441bce99a80b95204ea2016481c24cee909d51 (patch) | |
| tree | 0fd91434af3477f9b7c16a61b822537a18abcca2 /src/common/errors.rs | |
| parent | Make fullscreen panes not override the status bar and strider (#209) (diff) | |
| parent | add basic tab bar #166 (diff) | |
| download | sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.tar.gz sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.tar.xz sl0ppij-f9441bce99a80b95204ea2016481c24cee909d51.zip | |
Merge pull request #204 from jcaplan/tab-bar-166
add tab toolbar
Diffstat (limited to 'src/common/errors.rs')
| -rw-r--r-- | src/common/errors.rs | 4 |
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, } } } |
