fix: rename action to ToggleTab

This commit is contained in:
Sagittarius-a 2021-07-23 22:51:22 +02:00
parent 404faf0498
commit 081c55458d
4 changed files with 4 additions and 4 deletions

View file

@ -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

View file

@ -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)

View file

@ -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,]

View file

@ -74,7 +74,7 @@ pub enum Action {
/// Close the current tab.
CloseTab,
GoToTab(u32),
GoToLastTab,
ToggleTab,
TabNameInput(Vec<u8>),
/// Run speficied command in new pane.
Run(RunCommandAction),