Skip to content

feat(browser): find in page (Ctrl+F) - #12

Merged
ElVatoEste merged 1 commit into
mainfrom
feat/find-in-page
Aug 21, 2026
Merged

feat(browser): find in page (Ctrl+F)#12
ElVatoEste merged 1 commit into
mainfrom
feat/find-in-page

Conversation

@ElVatoEste

Copy link
Copy Markdown
Member

Qué

Barra de búsqueda flotante en la página (Ctrl+F), sobre webContents.findInPage.

  • Resaltado incremental al escribir.
  • Enter = siguiente coincidencia · Shift+Enter = anterior.
  • Toggle match-case (Aa).
  • Contador activa/total en vivo (evento found-in-page).
  • Esc o × cierra y limpia el resaltado (stopFindInPage).

Nuevos IPC: findShow (main→chrome), findQuery/findStop (chrome→main), findResult (main→chrome). Reusa chromeExpand para que la barra flote sobre la página sin recortarse.

Verificación

  • npm run typecheck
  • npm run build

Floating find bar in the chrome, triggered by Ctrl+F, over webContents
before-input-event. Drives webContents.findInPage on the active page:
- incremental highlight while typing
- Enter / Shift+Enter jump to next / previous match
- match-case toggle (Aa)
- live match counter (active/total) from the found-in-page event
- Esc or × closes and clears the selection (stopFindInPage)

New IPC: findShow (main→chrome), findQuery/findStop (chrome→main),
findResult (main→chrome). Reuses chromeExpand so the bar floats over the
page without being clipped by the chrome view bounds.
@ElVatoEste
ElVatoEste merged commit 420b90a into main Aug 21, 2026
1 check passed
@ElVatoEste
ElVatoEste deleted the feat/find-in-page branch August 21, 2026 06:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant