Syntax
Arguments
The search query to match against code blocks and file contents.
Options
Maximum number of results to display.
Maximum number of content lines to show per block.
Behavior
- Uses block-based indexing to find relevant code sections
- Displays matching blocks with syntax highlighting
- Shows file summaries if available when no specific matches found
- Falls back to project summary for general queries
- Supports both code content and file path searches
Block Types
The search returns different types of code blocks:document- File-level information with summaryfunction- Function declarationsclass- Class definitionscodeblock- Code fences in markdown filessection- Logical code sectionsheading- Markdown headings
Examples
Basic search
Search with custom result limit
Limit displayed lines per block
File path search
Output Format
Results are displayed with:- File path and name
- File summary (if available)
- Block type and line numbers
- Block title (for functions, classes, etc.)
- Syntax-highlighted content
Related Commands
- adist query - Natural language queries with AI
- adist chat - Interactive chat about your code
- adist summary - View file and project summaries
- adist reindex - Rebuild search index