Skip to content

Show the line a search found under each session in Go anywhere - #172

Merged
Zezi Zeng (ClarenceStark) merged 1 commit into
mainfrom
feat/palette-search-line
Dec 5, 2026
Merged

Zezi Zeng (ClarenceStark) merged 1 commit into
mainfrom
feat/palette-search-line

Conversation

@ClarenceStark

Copy link
Copy Markdown
Collaborator

What this changes

Go anywhere (⌘K) lists only titles, so a session found by what was said in it gives no hint of why it is there, and
sessions with like titles cannot be told apart.

/api/search already returns the line a match is in (line), and the sidebar's search shows it; the palette
dropped it. A session row found by its conversation now shows that line under the title, in a smaller muted line, with
the words searched for marked. A match far into a long line is brought into view (cut to 24 characters before it,
with …) instead of being hidden behind the ellipsis. Rows found by title or project, and the list before the server
answers, look as before.

Front end only: app.js (hitLine() and the session rows of commandPalette()) and app.css.

How it was tested

Extended test_web_e2e_find_in_the_conversation_opens_folded_work_and_the_sidebar_searches_conversations in
tests/test_web_e2e.py: after the sidebar search, Go anywhere is opened, searched for words of the reply, and the hit
row is checked to keep the title in .name and show All done, nothing else. with nothing else marked; hitLine()
is checked to bring a match at the end of a 200-character line into view. The row is also captured by
review_screenshots in both themes.

uv run pyflakes src tests prints nothing. uv run pytest -q: 2226 passed, 4 skipped.

Checklist

  • uv run pyflakes src tests prints nothing and uv run pytest -q passes
  • A line under "Unreleased" in CHANGELOG.md
  • No change to what the model sees (prompt, tool descriptions, status line, notes), or benchmark evidence is attached
  • src/freehand/runtime/ still uses only the standard library and imports on Python 3.9

@github-actions

github-actions Bot commented Dec 5, 2026

Copy link
Copy Markdown

Thanks for the pull request! A few friendly reminders based on the files changed:

  • Visual proof: This PR changes UI/TUI/Web/Desktop or export files (src/freehand/web/app.css, src/freehand/web/app.js). Please add a brief before/after screenshot, terminal snippet, or short recording in the PR description.
  • CHANGELOG.md: Ordinary PRs should leave CHANGELOG.md untouched to avoid merge conflicts; maintainers update it at release time.

(This comment updates automatically when you edit the PR description or push new commits.)

@ClarenceStark
Zezi Zeng (ClarenceStark) merged commit d42794b into main Dec 5, 2026
18 checks passed
@ClarenceStark
Zezi Zeng (ClarenceStark) deleted the feat/palette-search-line branch December 5, 2026 15:37
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