Skip to content

feat: Add --content flag for docs and code search#142

Open
Pringled wants to merge 12 commits into
mainfrom
add-dedicated-doctype-search
Open

feat: Add --content flag for docs and code search#142
Pringled wants to merge 12 commits into
mainfrom
add-dedicated-doctype-search

Conversation

@Pringled
Copy link
Copy Markdown
Member

This PR adds a content parameter to control what gets indexed: code (default), docs, or all. The prompts are also updated so they are aware of the new parameter. Example use:

CLI:

semble search "deployment guide" ./my-project --content docs
semble search "authentication" ./my-project --content all

Python:

index = SembleIndex.from_path("./my-project", content=ContentType.DOCS)

This also deprecates include_text_files which is equal to content = all. It still exists, but just gets overridden by content = all and a warning is shown.

The language sets are refactored into _DOC_LANGUAGES, _CONFIG_LANGUAGES (maybe nice for later), and _CODE_LANGUAGES to make it a bit clearer.

@Pringled Pringled requested a review from stephantul May 21, 2026 15:06
@codecov
Copy link
Copy Markdown

codecov Bot commented May 21, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.

Files with missing lines Coverage Δ
src/semble/__init__.py 100.00% <100.00%> (ø)
src/semble/cli.py 100.00% <100.00%> (ø)
src/semble/index/create.py 100.00% <100.00%> (ø)
src/semble/index/files.py 100.00% <100.00%> (ø)
src/semble/index/index.py 100.00% <100.00%> (ø)
src/semble/mcp.py 100.00% <100.00%> (ø)
src/semble/search.py 100.00% <ø> (ø)
src/semble/types.py 100.00% <100.00%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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