Explore code

Explore code

Read unfamiliar code with a sidebar that follows the cursor, dim a function to the calls that matter, and walk a trail of definitions, without a model or a language server.

Turn it on

Code explore is a reading mode. Press Space e e, Space E, or run :explore to open a sidebar that follows the cursor: the function you are in, the name under the cursor, its definition, and its matches. It never sends your code to a model, and gd still asks the language server.

Keys

Space e fFollow the name under the cursor through this function
Space e sDim the function except calls into the project and the system
Space e dJump to the definition in the index
Space e tJump to the explicit type
Space e j / kNext or previous match
Space e b / nWalk the review trail back or forward
Space e RIndex the repository's source files
Space e pIndex only this branch's changed files
Space e ?Show every explore key

While explore is on, double-clicking a name follows it, and clicking a reference or definition jumps there. Jumps are recorded on the trail.

What the index knows

Explore reads the current buffer when it opens. Space e R walks the repository, respecting .gitignore, and parses up to 400 source files with Red's Tree-sitter grammars in the background. The index maps names to files and lines: matches are shared spellings, not type-checked references, and types are only the ones written in the source.