From 385d90c42799f375d5bcda2d715a0de0ffff8300 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Mon, 1 Jun 2026 11:49:45 +0530 Subject: [PATCH] Fix matching of var/env against tabs Fixes #10095 --- docs/changelog.rst | 2 ++ kitty/tabs.py | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/docs/changelog.rst b/docs/changelog.rst index c8c057413..a3745464e 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -184,6 +184,8 @@ Detailed list of changes - Splits layout: add an ``equalize`` action and an ``equalize_on_close`` option to redistribute split space proportionally (:iss:`3489`) +- Fix matching var/env on tabs not working as expected (:iss:`10095`) + 0.47.1 [2026-05-28] ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ diff --git a/kitty/tabs.py b/kitty/tabs.py index 561d140ea..28f86a5e0 100644 --- a/kitty/tabs.py +++ b/kitty/tabs.py @@ -1084,6 +1084,11 @@ class Tab: # {{{ if w.matches_query(field, query): return True return False + case 'var' | 'env': + for w in self: + if w.matches_query(field, query): + return True + return False case 'index': if active_tab_manager and len(active_tab_manager.tabs): idx = (int(query) + len(active_tab_manager.tabs)) % len(active_tab_manager.tabs)