Skip to content

fix(browser): Cmd+F finds in the page of a browser column - #138

Merged
xikimay merged 2 commits into
mainfrom
fix/web-find
Oct 6, 2026
Merged

xikimay merged 2 commits into
mainfrom
fix/web-find

Conversation

@xikimay

@xikimay xikimay commented Oct 6, 2026

Copy link
Copy Markdown
Owner

Why

⌘F did nothing in a browser column: the page handed it on to Edit > Find in Terminal, which only acted on terminals.

How

  • Edit > Find… (was Find in Terminal…) opens a find bar on the focused browser column too, once the page leaves ⌘F unhandled, so a web app's own search still wins; the items are disabled where nothing can search.
  • TerminalFindBar becomes the shared FindBar (field, ↑/↓, counter, Esc from the field); on a page ↓ is next.
  • Most native option, as in Safari: WebPageFind drives WebKit's own find (private _findString + find delegate), highlighting every match with a "N matches" counter (WebKit's match index drifts as you type, so no "i of N"); public find fallback without a count.
  • UI flow test: ⌘F goes page → WebKit resend → interceptor → menu, then finds and counts a word; it fails with the fix reverted. /code-review was replaced by an independent agent review, at the user's request.

🤖 Generated with Claude Code

https://claude.ai/code/session_01LACxW892La2aFCJVsUzCoX

xikimay and others added 2 commits October 6, 2026 19:40
A page that leaves Cmd+F unhandled hands it back (WebKit resends the key)
to Edit > Find in Terminal, which only acted on terminals: nothing
happened in a browser column.

Edit > Find... now opens a find bar on the focused browser column too, and
the find items are disabled where no column can search. The terminal's
find bar becomes FindBar, shared by both, with a match counter. On a page,
WebPageFind drives WebKit's own find, Safari's: every match highlighted,
"N matches" counted, and the public find as a fallback when WebKit lacks
the private calls.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01LACxW892La2aFCJVsUzCoX
@xikimay
xikimay merged commit 6caadc6 into main Oct 6, 2026
5 checks passed
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