fix: rename action to ToggleTab
This commit is contained in:
parent
404faf0498
commit
081c55458d
4 changed files with 4 additions and 4 deletions
|
|
@ -188,7 +188,7 @@ impl InputHandler {
|
||||||
| Action::GoToPreviousTab
|
| Action::GoToPreviousTab
|
||||||
| Action::CloseTab
|
| Action::CloseTab
|
||||||
| Action::GoToTab(_)
|
| Action::GoToTab(_)
|
||||||
| Action::GoToLastTab
|
| Action::ToggleTab
|
||||||
| Action::MoveFocusOrTab(_) => {
|
| Action::MoveFocusOrTab(_) => {
|
||||||
self.command_is_executing.blocking_input_thread();
|
self.command_is_executing.blocking_input_thread();
|
||||||
self.os_input
|
self.os_input
|
||||||
|
|
|
||||||
|
|
@ -24,7 +24,7 @@ fn route_action(
|
||||||
) -> bool {
|
) -> bool {
|
||||||
let mut should_break = false;
|
let mut should_break = false;
|
||||||
match action {
|
match action {
|
||||||
Action::GoToLastTab => {
|
Action::ToggleTab => {
|
||||||
session
|
session
|
||||||
.senders
|
.senders
|
||||||
.send_to_screen(ScreenInstruction::ToggleTab)
|
.send_to_screen(ScreenInstruction::ToggleTab)
|
||||||
|
|
|
||||||
|
|
@ -166,7 +166,7 @@ keybinds:
|
||||||
key: [ Char: '8',]
|
key: [ Char: '8',]
|
||||||
- action: [GoToTab: 9,]
|
- action: [GoToTab: 9,]
|
||||||
key: [ Char: '9',]
|
key: [ Char: '9',]
|
||||||
- action: [GoToLastTab]
|
- action: [ToggleTab]
|
||||||
key: [ Char: "\t" ]
|
key: [ Char: "\t" ]
|
||||||
scroll:
|
scroll:
|
||||||
- action: [SwitchToMode: Normal,]
|
- action: [SwitchToMode: Normal,]
|
||||||
|
|
|
||||||
|
|
@ -74,7 +74,7 @@ pub enum Action {
|
||||||
/// Close the current tab.
|
/// Close the current tab.
|
||||||
CloseTab,
|
CloseTab,
|
||||||
GoToTab(u32),
|
GoToTab(u32),
|
||||||
GoToLastTab,
|
ToggleTab,
|
||||||
TabNameInput(Vec<u8>),
|
TabNameInput(Vec<u8>),
|
||||||
/// Run speficied command in new pane.
|
/// Run speficied command in new pane.
|
||||||
Run(RunCommandAction),
|
Run(RunCommandAction),
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue