Files and search
Use Files to browse a checkout and Search to find text across checkouts. Both use the shared Project filter. Enable the Main checkout or worktrees you want to inspect; see Browse several checkouts. Changing this filter does not move an agent to another checkout.
Browse and open files
- Open Files, expand a project and checkout, then expand its folders.
- Right-click a file and choose View to read it or Edit to open a text editor.
- For Markdown, use View for the rendered reader or View in pager for source.
Images open in the native reader. Text pagers and editors run on the daemon host; they do not use an agent’s private state. Configure the editor under Settings > Commands > Defaults, and the pager and syntax highlighter under Settings > Appearance > Code.
Where desktop integration is available, Open in lists associated applications. Choose Other to select another application. See Keyboard and mouse for reader navigation.
Rendered Markdown can display local resources within the project scope, but does not load remote images or images embedded as data URLs.
Preview tabs
Press F9 or click the stacked-documents button before the Project filter to show or hide Open files across sidebar tabs. Drag its divider to resize it. Hiding the pane keeps your files open; opening a file reveals it again.
Opening a file uses a replaceable preview. Double-click its sidebar header to pin it before opening another file; middle-click the header to close it. Files and Git share readers, while Search has its own. Source readers refresh when file changes are detected, including pinned readers. For updated diffs, see Change review.
Manage files
A folder’s context menu offers New file, New folder, and Shell here. File and folder menus offer Rename, Remove, and path-copying actions. These actions affect the selected checkout. Open Git afterward to review changes to tracked files.
For reusable commands on a selected path, create a Library file action.
Search workspace text
- Enable the checkouts you want in the Project filter and open Search.
- Enter a query. Click case for case-sensitive matching, word for whole words, regex for a regular expression, or gitignd to include files ignored by Git. All options start off; their text and underline highlight when selected.
- Toggle inc or exc to show include or exclude path filters. Enter a glob
such as
*.cs,src/**, or*.{cs,rs}, or a directory name such asnotesto search its contents at any depth. Exclusions win when both filters match. Toggling either filter applies it immediately when the query is non-empty. Turning a filter off keeps its text but leaves it out of the search. Include filters still respect the gitignd option and hidden-file setting. - Press Enter in any search field or click › to submit.
- Expand the project, checkout, and file groups, then select a match to read it. Use its context menu to edit the file.
Editing the query does not search until you submit it. Changing the checkout filter reruns the last submitted query and options. The groups distinguish files with the same relative path in different checkouts.
Incomplete results
Directory listings and search results are bounded. If the view reports truncation, the visible entries are only part of the result. Narrow the search query or select fewer checkouts. Use a host shell when you need a complete listing or a more specialized search.