JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.
Python
fix:vscode终端中/status config 支持英文搜索
openJiuwen-bot6593e0222ad0
diff --git a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.tsindex 6e7cbd57a3..1e92fefe5a 100644--- a/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts+++ b/jiuwenswarm/channels/tui/frontend/src/ui/app-screen.ts@@ -1505,8 +1505,11 @@ export class AppScreen implements Component, Focusable {return;}// Printable character → append to search query- if (data.length === 1 && !matchesKey(data, "up") && !matchesKey(data, "tab")) {- this.statusViewState.searchQuery += data;+ // Use getPrintableChar() to handle Kitty CSI-u sequences (VSCode terminal)+ // and UTF-8 multi-byte chars (IME input), not just raw data.length === 1+ const searchPrintableChar = this.getPrintableChar(data);+ if (searchPrintableChar !== undefined && !matchesKey(data, "up") && !matchesKey(data, "tab")) {+ this.statusViewState.searchQuery += searchPrintableChar;this.rebuildStatusViewTabList();this.tui.requestRender();return;@@ -1527,6 +1530,7 @@ export class AppScreen implements Component, Focusable {return;}// On config tab, / enters search mode; printable chars also enter search mode+ // Use getPrintableChar() for Kitty CSI-u (VSCode) + UTF-8 multi-byte (IME) supportif (this.statusViewState.tab === "config") {if (data === "/") {this.statusViewState.searchMode = true;@@ -1534,9 +1538,10 @@ export class AppScreen implements Component, Focusable {this.tui.requestRender();return;}- if (data.length === 1 && !matchesKey(data, "up") && !matchesKey(data, "down") && !matchesKey(data, "return") && !matchesKey(data, "tab") && !matchesKey(data, "backspace") && !matchesKey(data, "delete") && !matchesKey(data, "escape")) {+ const initialPrintableChar = this.getPrintableChar(data);+ if (initialPrintableChar !== undefined && !matchesKey(data, "up") && !matchesKey(data, "down") && !matchesKey(data, "return") && !matchesKey(data, "tab") && !matchesKey(data, "backspace") && !matchesKey(data, "delete") && !matchesKey(data, "escape")) {this.statusViewState.searchMode = true;- this.statusViewState.searchQuery = data;+ this.statusViewState.searchQuery = initialPrintableChar;this.rebuildStatusViewTabList();this.tui.requestRender();return;