Keyboard shortcuts

Press ← or → to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Pickers

Pickers let you find files, open buffers, search results, symbols, and diagnostics. Type to filter, move through the results, then press Enter to open one. The title in the top border identifies the picker.

KeysPicker
Space f / Space FFiles at the workspace root / current working directory
Space bOpen buffers
Space e / Space EFile explorer at the workspace / current file’s directory
Space /Project search
Space s / Space SFile / workspace symbols
Space d / Space DFile / workspace diagnostics
Space g sChanged Git files
Space 'Reopen the last picker

Open a result

Use Ctrl-n and Ctrl-p or the arrow keys to move between results. Enter opens the selected item; Alt-Enter opens it in the background while keeping the picker open. Ctrl-v opens a split to the right and Ctrl-s opens one below. Ctrl-t toggles the preview. Esc closes the picker.

Scroll the preview with Alt-j / Alt-k or Alt-Down / Alt-Up. Each press moves half a page without changing the selected result or query. These keys work in file, buffer, search, symbol, diagnostic, directory, and Git previews. You can also use the mouse wheel over the preview. A scrollbar shows your position when the preview extends beyond the pane. Selecting a different file or match resets the preview to that location. Images fit the preview pane and do not scroll.

Remap preview_scroll_down and preview_scroll_up under [keys.picker], or under a specific picker’s component keymap.

Press Ctrl-q to copy matched file locations into the quicklist for navigation after closing the picker. To customize keys, see Component keys.

Layout

By default, pickers fill the available area on terminals narrower than 200 columns and use a centered layout on wider terminals. To keep margins around pickers at every terminal size, set:

[editor.picker]
layout = "centered"

The centered layout uses 90% of the available width and height. Both layouts reserve the bottom two rows. This preference applies to all pickers, including the command palette. Use layout = "auto" to restore the default behavior.

Filtering results

Most pickers use fuzzy matching with fzf search syntax. For example, main rs matches both terms, 'main requires an exact substring, and !test excludes matches. OR operations (|) are not supported.

Global search uses regular expressions for the text query. Workspace symbol queries go to the language server when one supplies workspace symbols; syntax symbol search is available as a fallback. See Language servers.

In pickers with several columns, prefix a column filter with %. Column names can be shortened: %p, %pa, and %path all select the path column. For example, mitos %p .toml !lang in global search looks for mitos, filtering paths by .toml and excluding paths matching lang. Use .toml$ to require the path to end in .toml.

Insert a register into a query with Ctrl-r, then its name. Ctrl-r . inserts the current selections; Ctrl-r % inserts the current file’s path. See Search and replacement for project-search examples.

Replacing global search results

Global search uses smart case by default. Press Alt-c to toggle between smart case and case-sensitive matching. The input bar shows the current mode.

Press Alt-r to reveal the replacement input. Press it again to switch focus between the search and replacement inputs. While the replacement input is visible, Enter replaces the selected match; Ctrl-Enter, Cmd-Enter, or Win-Enter replaces every occurrence in the files matching the current path filter. Wait for search and result updates to finish before replacing.

Replacement text expands regex captures: $1 and ${name} insert numbered and named captures, and $$ inserts a literal dollar sign. An empty replacement deletes matches. Open buffers, including unsaved edits, take precedence over files on disk. Their replacements stay unsaved and form one undo step per buffer. Files without an open buffer are updated directly on disk, without adding them to the buffer list or editor undo history. An error stops further writes; completed writes remain applied. Closing the picker does not interrupt file writes that have already started.

Results and previews refresh after replacement so subsequent actions use current match positions. These bindings can be changed under [keys.picker].

File explorer

Press Space e to browse the workspace, or Space E for the current file’s directory. Select a directory and press Enter to enter it. Select ../ to go to its parent. The query filters entries in the directory being displayed.

Supported images also appear in the preview pane.

Manage files without leaving the explorer:

KeyAction
Alt-nCreate a file in the shown directory. End the path with / to create a directory.
Alt-mMove or rename the selected entry. The cursor starts before the file extension. Open buffers follow the move.
Alt-cCopy the selected file’s saved contents. Copying directories is not supported.
Alt-dDelete the selected entry after you type y and press Enter. Directories are deleted with their contents.
Alt-yYank the selected path to the default yank register.

Create, move, and copy open a path prompt. Edit the path and press Enter to apply the change, or press Esc to cancel. Paths are relative to the working directory unless you enter an absolute path or start with ~. The create prompt starts with the directory being displayed.

Moving or copying onto an existing directory puts the entry inside it. Existing paths are never overwritten, and missing parent directories are created. Remap these keys under [keys.file-explorer].

Press Ctrl-e in normal or select mode to open the file explorer sidebar at the workspace root. Press it again to return to the editor. In the editor, Ctrl-w b (or Space w b) shows or hides the sidebar, keeping expanded directories and your selection.

KeyAction
j / k or Down / UpMove by one entry, or use a count such as 10j
g g / g eSelect the first or last entry
EnterExpand or collapse a directory, or open a file
z o / z c / z aExpand, collapse, or toggle the selected directory
z CCollapse all directories
/Start a search
Enter while searchingConfirm the search and navigate the filtered tree
Esc with a searchClear the search and keep the sidebar focused
Esc without a searchReturn to the editor
q while navigatingHide the sidebar
Ctrl-w r while navigatingResize the sidebar

The z shortcuts apply to the unfiltered tree.

To change the width, press Ctrl-w r, then h / Left to shrink it or l / Right to grow it. Press Enter to keep the width or Esc to cancel. The sidebar remembers its width when hidden and reopened. See Resize windows for counts and resetting sizes.

Search uses fuzzy matching and includes collapsed directories, excluding Git and other version control metadata. Results show matching names with their parent directories expanded, and hide unrelated files. Directories come first, with names sorted alphabetically within each directory. Each new query selects the first match; background updates keep your selection when possible. Include a path separator to search relative paths. Ctrl-w deletes the previous word in the search. After confirming a search, press Enter again to open the selected file. Opening a file returns focus to the editor. The sidebar keeps your search and selection when you return. Press / to start a new search or Esc to clear it.

File actions, such as Alt-n to create a file and Alt-m to move it, also work in the sidebar. Remap navigation keys under keys.sidebar and search keys under keys.sidebar-filter; see component keys. For moving between the sidebar and editor splits, see window navigation.

Hidden and ignored files

The file picker and global search omit hidden and ignored files by default. The file explorer shows most files, including hidden files, by default. Configure them separately under editor.file-picker and editor.file-explorer.

For example, show hidden files in the file picker:

[editor.file-picker]
hidden = false

Ignore rules can come from .gitignore, .ignore, parent directories, and Git’s global excludes file. The reference lists the switches for each source. Git-specific rules apply only inside Git repositories.

To add Mitos-specific rules, use .mitos/ignore in a workspace or ignore in your Mitos configuration directory. They use gitignore syntax, including ! to unignore a path:

!.github/
!.gitignore
!.gitattributes

Loading large collections

Git history and branch pickers load more results as you scroll or search. Clear the query to stop searching further. A ? in the result count means the list is incomplete, so an empty list may still gain matches while loading.

In Git history pickers, press Ctrl-l to pause loading. Press it again to continue, or to retry after a loading error. If history loading pauses automatically, use the same shortcut to load more. Remap toggle_loading under [keys.history-picker] to change this shortcut.

If loading fails, an error appears and results already loaded remain available.

Refreshing results

File, explorer, global-search, and changed-file results update as files change, keeping your query, selected item, and scroll position where possible. You can keep navigating while updates load. File previews prefer open buffers to files on disk. Changed-file pickers show the selected comparison. Global search also follows unsaved buffer edits.

Buffer and diagnostic pickers follow editor updates. A resolved diagnostic stays visible while selected, marked as resolved, until you move away. Symbol pickers refresh when their source documents or providers change. Reopening these pickers checks their current sources again.

Quicklist and jump-history entries remain stored collections; filesystem changes do not regenerate their contents. Git history starts from the checked-out commit when opened; run the history command again to browse a different branch.

If results do not update, check file watching and periodic checks.