Skip to content

Search field: hover tip for results, crossing dots - #31

Merged
qiansc merged 1 commit into
mainfrom
feat/search-hover-tip
Dec 1, 2026
Merged

qiansc merged 1 commit into
mainfrom
feat/search-hover-tip

Conversation

@qiansc

@qiansc qiansc commented Dec 1, 2026

Copy link
Copy Markdown
Contributor

Background

Each result cluster in the search field opens its file on click, but hovering showed nothing, and where clusters overlapped the dots looked smaller.

Changes

  • Hovering a result cluster shows the site's dark tip with an arrow: file path, match count with line numbers and the first matching lines; below the cluster (above when there is no room), arrow left of centre pointing at the cluster; hidden on leave and scroll.
  • Hover only recolours the cluster; dots keep their size and shape.
  • Inside an overlap of two clusters, dots use the normal size and a tone between a lit hit and a background dot; the overlap's edge stays an ordinary lit hit.

Testing

bun run check; screenshots of the tip below/above/at the window edge, the arrow, crossings and hover recolouring.

🤖 Generated with Claude Code

- Hovering a result cluster in the search field shows the site's dark
  tip with an arrow: the file path, match count with line numbers and
  the first matching lines. It sits below the cluster (above when there
  is no room), the arrow left of the tip's centre pointing at the
  cluster; it hides on leave and scroll.
- Hover only recolours the cluster: every dot keeps its size and shape.
- Inside an overlap of two clusters, dots are drawn at the normal size
  with a tone between a lit hit and a background dot; the overlap's edge
  stays an ordinary lit hit.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@qiansc
qiansc merged commit 8518cc9 into main Dec 1, 2026
3 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