Tree selector improvements: active line highlight and tool filter

- Add inverse background highlight for selected/active line
- Add 'no-tools' filter mode to hide tool results
- Add isShiftCtrlO to cycle filters backwards
- Filter order: default → no-tools → user-only → labeled-only → all
This commit is contained in:
Mario Zechner 2025-12-30 01:40:13 +01:00
parent 04ce66951e
commit e4df5d14b5
3 changed files with 28 additions and 4 deletions

View file

@ -51,6 +51,7 @@ export {
isEscape,
isHome,
isShiftCtrlD,
isShiftCtrlO,
isShiftCtrlP,
isShiftEnter,
isShiftTab,

View file

@ -304,6 +304,14 @@ export function isCtrlO(data: string): boolean {
return data === RAW.CTRL_O || data === Keys.CTRL_O || matchesKittySequence(data, CODEPOINTS.o, MODIFIERS.ctrl);
}
/**
* Check if input matches Shift+Ctrl+O (Kitty protocol only).
* Ignores lock key bits.
*/
export function isShiftCtrlO(data: string): boolean {
return matchesKittySequence(data, CODEPOINTS.o, MODIFIERS.shift + MODIFIERS.ctrl);
}
/**
* Check if input matches Ctrl+P (raw byte or Kitty protocol).
* Ignores lock key bits.