Skip to content

feat: toggleable deep search with configurable scope#12

Merged
Railly merged 1 commit intoRailly:mainfrom
trevorh:feature/deep-search
Apr 2, 2026
Merged

feat: toggleable deep search with configurable scope#12
Railly merged 1 commit intoRailly:mainfrom
trevorh:feature/deep-search

Conversation

@trevorh
Copy link
Copy Markdown
Contributor

@trevorh trevorh commented Mar 30, 2026

Summary

  • Adds a deep search toggle button in the search toolbar (search-code icon) that controls whether search includes file content beyond just the name
  • Default off — matching upstream's current name-only search behavior
  • Two new settings:
    • Deep search by default — toggle whether the button starts on or off
    • Deep search scope — dropdown: "Description and file content" / "Description only" / "File content only"
  • Toggle button sits alongside the existing filter and sort buttons

Context

Upstream deliberately narrowed search to name-only in cce066a. This PR restores content search as an opt-in feature, giving users control without changing the default experience. The scope setting allows fine-tuning — users who only want metadata search can limit to description, while power users can search full file content.

Test plan

  • Verify search is name-only by default (toggle button not highlighted)
  • Click toggle — verify it highlights and search now matches file content
  • Type a term that appears in file content but not the name — verify it only matches when toggle is on
  • Open settings — verify "Deep search by default" and "Deep search scope" appear
  • Set scope to "Description only" — verify content matches stop working, description matches still work
  • Set "Deep search by default" on, restart plugin — verify toggle starts highlighted

🤖 Generated with Claude Code

Add a deep search toggle button in the search bar that controls whether
search includes description and/or file content beyond just the name.

- Default off (matching upstream name-only search behavior)
- Settings: "Deep search by default" toggle + "Deep search scope" dropdown
  (description only / file content only / both)
- Toggle button sits alongside existing filter and sort buttons

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@Railly Railly force-pushed the feature/deep-search branch from 38e0048 to 28daafa Compare April 2, 2026 05:10
@Railly Railly merged commit 4d5f476 into Railly:main Apr 2, 2026
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.

2 participants