Repository navigation
Show the line a search found under each session in Go anywhere - #172
Merged
Merged
Conversation
|
Thanks for the pull request! A few friendly reminders based on the files changed:
(This comment updates automatically when you edit the PR description or push new commits.) |
4 tasks done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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/searchalready returns the line a match is in (line), and the sidebar's search shows it; the palettedropped 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 serveranswers, look as before.
Front end only:
app.js(hitLine()and the session rows ofcommandPalette()) andapp.css.How it was tested
Extended
test_web_e2e_find_in_the_conversation_opens_folded_work_and_the_sidebar_searches_conversationsintests/test_web_e2e.py: after the sidebar search, Go anywhere is opened, searched for words of the reply, and the hitrow is checked to keep the title in
.nameand showAll done, nothing else.withnothing elsemarked;hitLine()is checked to bring a match at the end of a 200-character line into view. The row is also captured by
review_screenshotsin both themes.uv run pyflakes src testsprints nothing.uv run pytest -q: 2226 passed, 4 skipped.Checklist
uv run pyflakes src testsprints nothing anduv run pytest -qpassesCHANGELOG.mdsrc/freehand/runtime/still uses only the standard library and imports on Python 3.9