From 6f29cac8bf7ea7e790b50415e2d38aa37cd2e57e Mon Sep 17 00:00:00 2001 From: l0ng-ai <24760907+l0ng-ai@users.noreply.github.com> Date: Wed, 30 Sep 2026 00:28:15 +0800 Subject: [PATCH] fix(switcher): put the workspace the query names above ones matched by tabs The list was ordered by current-then-recent whatever the query, so typing 'qa' and Enter reopened this window's workspace (its tabs are under /tmp/t7qa) instead of the workspace named qa. --- src/ui/switcher.rs | 36 ++++++++++++++++++++++++++++++++++-- 1 file changed, 34 insertions(+), 2 deletions(-) diff --git a/src/ui/switcher.rs b/src/ui/switcher.rs index f070414d..04b996c3 100644 --- a/src/ui/switcher.rs +++ b/src/ui/switcher.rs @@ -405,8 +405,12 @@ fn flatten(groups: &[Group], query: &str) -> Vec