Skip to content

Find in page #5

Description

@mxmgorin

Search for text on the current page — a find bar with match count and next/previous, gamepad- and OSK-driven.

Design

  • Servo 0.4 has no find/text-search API, so implement via injected JS (the mechanism already used for reader mode and hint mode — webview.evaluate_javascript). The script highlights matches in the DOM, scrolls the current one into view, and returns match count / current index to the embedder via the result callback.
  • Next/previous re-invokes the script to move the current match; closing clears the highlights.
  • UI: a small find bar (query typed via the OSK) with count and prev/next, plus a binding to open it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestuiegui overlays, settings, toolbar

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions