mirror of
https://github.com/NousResearch/hermes-agent.git
synced 2026-07-28 18:19:28 +00:00
Brings forward the renderer-side changes from PR #53891, adapted to the current main branch (where app-shell.tsx has been replaced by apps/desktop/src/app/contrib/wiring.tsx and keybinds/actions.ts has gained new view.* entries): - apps/desktop/src/store/find-in-page.ts (new): nanostores atom + actions for the find bar (openFindBar, closeFindBar, setFindQuery, findNext, findPrevious, updateFindResults, initFindInPageListener). openFindBar is dispatched by the view.findInPage keybind handler in use-keybinds. - apps/desktop/src/components/find-bar.tsx (new): the find bar overlay (top-right, below the titlebar). Debounces input 200ms before issuing findInPage, focuses on open, supports Enter (next) / Shift+Enter (previous) / Escape (close), shows a "3/12" match counter from the 'hermes:found-in-page' stream. Global capture-phase Escape listener so the bar closes regardless of focus. - apps/desktop/src/lib/keybinds/actions.ts: adds view.findInPage with default combo 'mod+f'. The keybinds runtime already routes any mod+ / ctrl+ combo through editable-focus contexts (see comboAllowedInInput in lib/keybinds/combo.ts:193), so ⌘F focuses the find bar instead of typing 'f' into a textarea — matches browser behavior. - apps/desktop/src/app/hooks/use-keybinds.ts: wires view.findInPage → openFindBar in the global handler map. - apps/desktop/src/app/contrib/wiring.tsx: mounts <FindBar /> alongside the other global overlays (CommandPalette, SessionSwitcher, etc.). - apps/desktop/src/i18n/{en,zh}.ts: labels 'view.findInPage' for the keybinds panel. Closes #46169 |
||
|---|---|---|
| .. | ||
| bootstrap-installer | ||
| desktop | ||
| shared | ||