From 081c55458d95f310ad3b60547c054a5fc2dd6bda Mon Sep 17 00:00:00 2001 From: Sagittarius-a Date: Fri, 23 Jul 2021 22:51:22 +0200 Subject: [PATCH] fix: rename action to ToggleTab --- zellij-client/src/input_handler.rs | 2 +- zellij-server/src/route.rs | 2 +- zellij-utils/assets/config/default.yaml | 2 +- zellij-utils/src/input/actions.rs | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zellij-client/src/input_handler.rs b/zellij-client/src/input_handler.rs index 7f578766..d262bfa9 100644 --- a/zellij-client/src/input_handler.rs +++ b/zellij-client/src/input_handler.rs @@ -188,7 +188,7 @@ impl InputHandler { | Action::GoToPreviousTab | Action::CloseTab | Action::GoToTab(_) - | Action::GoToLastTab + | Action::ToggleTab | Action::MoveFocusOrTab(_) => { self.command_is_executing.blocking_input_thread(); self.os_input diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs index 7092f3e9..92a89966 100644 --- a/zellij-server/src/route.rs +++ b/zellij-server/src/route.rs @@ -24,7 +24,7 @@ fn route_action( ) -> bool { let mut should_break = false; match action { - Action::GoToLastTab => { + Action::ToggleTab => { session .senders .send_to_screen(ScreenInstruction::ToggleTab) diff --git a/zellij-utils/assets/config/default.yaml b/zellij-utils/assets/config/default.yaml index 2be0911d..0b102d70 100644 --- a/zellij-utils/assets/config/default.yaml +++ b/zellij-utils/assets/config/default.yaml @@ -166,7 +166,7 @@ keybinds: key: [ Char: '8',] - action: [GoToTab: 9,] key: [ Char: '9',] - - action: [GoToLastTab] + - action: [ToggleTab] key: [ Char: "\t" ] scroll: - action: [SwitchToMode: Normal,] diff --git a/zellij-utils/src/input/actions.rs b/zellij-utils/src/input/actions.rs index 977c1a48..589b3935 100644 --- a/zellij-utils/src/input/actions.rs +++ b/zellij-utils/src/input/actions.rs @@ -74,7 +74,7 @@ pub enum Action { /// Close the current tab. CloseTab, GoToTab(u32), - GoToLastTab, + ToggleTab, TabNameInput(Vec), /// Run speficied command in new pane. Run(RunCommandAction),