Skip to content
This repository was archived by the owner on Sep 30, 2024. It is now read-only.

search: highlight matching path ranges on content matches#41385

Merged
tbliu98 merged 2 commits into
mainfrom
tl/highlight-path-matches-on-content-matches
Sep 6, 2022
Merged

search: highlight matching path ranges on content matches#41385
tbliu98 merged 2 commits into
mainfrom
tl/highlight-path-matches-on-content-matches

Conversation

@tbliu98

@tbliu98 tbliu98 commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

Stacked on #41297
Part of #18374

Per feedback, this PR adds file path highlighting to content matches.

Screen Shot 2022-09-06 at 3 35 54 PM

Test plan

Visually verify highlighting is occurring
CI

@cla-bot cla-bot Bot added the cla-signed label Sep 6, 2022
@tbliu98 tbliu98 force-pushed the tl/distinguish-file-content-match-from-path-match branch from 1c3477a to 2b6a03d Compare September 6, 2022 20:38
@tbliu98 tbliu98 marked this pull request as ready for review September 6, 2022 21:20
@tbliu98 tbliu98 requested review from a team, camdencheek and rvantonder September 6, 2022 21:20
@tbliu98 tbliu98 changed the title search: highlight path matches on content matches search: highlight matching path ranges on content matches Sep 6, 2022
@sourcegraph-bot

sourcegraph-bot commented Sep 6, 2022

Copy link
Copy Markdown
Contributor

Codenotify: Notifying subscribers in CODENOTIFY files for diff c49a3aa...e77b7d9.

Notify File(s)
@beyang internal/search/streaming/http/events.go
@camdencheek cmd/frontend/internal/search/search.go
internal/search/streaming/http/events.go
@fkling client/search-ui/src/components/FileSearchResult.tsx
client/shared/src/search/stream.ts
@keegancsmith cmd/frontend/internal/search/search.go
internal/search/streaming/http/events.go
@limitedmage client/search-ui/src/components/FileSearchResult.tsx

@camdencheek camdencheek left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Woah, much smaller change than I expected 😄

Base automatically changed from tl/distinguish-file-content-match-from-path-match to main September 6, 2022 21:30
@tbliu98 tbliu98 force-pushed the tl/highlight-path-matches-on-content-matches branch from 4d94daf to a62e5e3 Compare September 6, 2022 21:43
@tbliu98 tbliu98 force-pushed the tl/highlight-path-matches-on-content-matches branch from a62e5e3 to e77b7d9 Compare September 6, 2022 22:30
@tbliu98 tbliu98 merged commit 3c08b81 into main Sep 6, 2022
@tbliu98 tbliu98 deleted the tl/highlight-path-matches-on-content-matches branch September 6, 2022 22:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants