Chat: find in chat (Ctrl+F / Cmd+F)
A find bar over the transcript: query, Match case, n of N (counted from the newest), Enter for an older match and Shift+Enter for a newer one. Matches are painted over the rendered text, code blocks included, without restyling it; the current match is scrolled into view. Matches in history not loaded yet come from the server's chat:<id>-scoped search and are reached by loading older pages. Esc closes and returns to the composer. The key is the pane's, so a focused terminal keeps Ctrl+F. Fixture answers scoped searches for captures; cheatsheet lists the key. The scoped search matches the query as typed, spaces included, like the client. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -78,8 +78,10 @@ func searchChatScoped(ctx context.Context, req protocol.SearchRequest, broker ch
|
||||
Cap: chatSearchLimit(req.Limit),
|
||||
ScanBoundBytes: protocol.SearchMaxScanBytes,
|
||||
}
|
||||
query := []rune(strings.TrimSpace(req.Query))
|
||||
if len(query) == 0 {
|
||||
// Find matches the query as typed, spaces included, like the client's
|
||||
// own matching of the loaded transcript.
|
||||
query := []rune(req.Query)
|
||||
if strings.TrimSpace(req.Query) == "" {
|
||||
return response, nil
|
||||
}
|
||||
ctx, cancel := context.WithTimeout(ctx, scopedChatBudget)
|
||||
|
||||
Reference in New Issue
Block a user