diff options
author | 哇呜哇呜呀咦耶 <pingao777@gmail.com> | 2023-02-07 22:45:59 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-07 15:45:59 +0100 |
commit | 99e8d56adb50b1b2921d4af01972c4b9fd8b6105 (patch) | |
tree | 4dc9da5729cd083c5ff1219aa1b4ec3b3573db15 /zellij-server/src/route.rs | |
parent | 601eee8bb3e1d57d8a5df2b04d15506bc2aa92eb (diff) |
feat(cli): add `GoToTabName` action to switch tab by name (#2120)
* Add `GoToTabName` action to switch tab by name
* rm blank file
* add --create option
* format
* add some doc
* add test case
* format
* add test case
* change variable name
Diffstat (limited to 'zellij-server/src/route.rs')
-rw-r--r-- | zellij-server/src/route.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-server/src/route.rs b/zellij-server/src/route.rs index 2ca58cc44..dce1c9ac0 100644 --- a/zellij-server/src/route.rs +++ b/zellij-server/src/route.rs @@ -479,6 +479,16 @@ pub(crate) fn route_action( .send_to_screen(ScreenInstruction::GoToTab(i, Some(client_id))) .with_context(err_context)?; }, + Action::GoToTabName(name, create) => { + session + .senders + .send_to_screen(ScreenInstruction::GoToTabName( + name, + create, + Some(client_id), + )) + .with_context(err_context)?; + }, Action::TabNameInput(c) => { session .senders |