Command palette
Open Flow's command palette anywhere, run any action or setting, start new sessions, switch the target session, and how it ranks and remembers what you pick.
On this page
The command palette is one searchable list of everything Flow can do: every action, every setting, your sessions, your files, and (when you type a query) a Spotlight-style launcher for apps, calculations, go links, system actions and web searches. It is its own window, so you can summon it over any app.
Open it
| How | Opens |
|---|---|
⇧⌘P inside Flow | The palette at its root |
⌥⌘P from any app | The palette at its root, over the app you are in, without bringing Flow's main window forward |
⌘P / ⇧⌘F | The file picker: find a file, or search in files |
⌥⌘V from any app | Clipboard history |
⇧⌘, from any app | Snippet search |
⇧⌘N, the sidebar's New session row | The New session flow |
The palette opens on the display you are working on. Clicking elsewhere hides it but keeps your query and position, so the hotkey brings it back where you left off. After 2 minutes hidden it resets, and the next open starts fresh at the root. ⎋ closes the palette from the root; in the file picker and go links it first clears a non-empty query.
Run an action
At the root the palette lists every action, grouped under captions: Session, Tiles, Navigate, Edit, Clipboard & links, View, App and Caffeine. Each row shows its shortcut, if it has one.
- Type to filter. Matching is fuzzy (the letters in order, not necessarily together), and the matched letters are highlighted.
- Move with
↑/↓and press↩, or click a row.
Context-aware rows appear only when they apply. For example, the pull request rows (Merge pull request, Convert to draft, Mark ready for review, Close pull request, Change PR status…) are listed only when the target session's PR allows them, "Relaunch to update" only while an installed update waits, and experiment pages only while their experiment is on.
The target session
Actions that work on a session act on the target session, shown in a chip at the right of the palette's footer (or "No session"). Click the chip, or run Switch session…, to pick another session or tool from a fuzzy list; the palette returns to the root with the new target.
Change settings from the palette
Every row of the Settings window is also a palette row, with its live control.
- With a query, matching settings are listed under a "Settings" caption after the commands (so typing a command's name still runs the command), with a "Show all" row when more match. Shortcut rows are listed only when the query names a shortcut word.
- With an empty query, the root opens with "Recently changed": settings you changed from the palette in this run.
- Browse settings… lists every setting, with section chips.
On a highlighted setting row:
| Key | Does |
|---|---|
↩ | The row's main action: flip a toggle, open a list, start recording a shortcut |
← / → | Step the value (previous / next choice, or a stepper by one step) |
⌘⌫ | Reset the row to its default |
⌘↩ | Open the row in the Settings window |
A list, terminal theme or font opens a drill-in whose highlighted option previews live.
Start a new session
New session… (⇧⌘N) is a four-step flow. A step bar shows where you are, and each pick collapses into a chip in the header.
| Step | What you pick |
|---|---|
| Repository | The directory: favorites, recents, then ~, ~/src and every folder in ~/src, with git repos marked. Type to filter; click a row's star to make it a favorite. |
| Base | Git repos only: a new branch off the default branch (a new worktree), the repo root with no worktree, an existing worktree, or a branch |
| Layout | Shown only when the directory has saved workspace profiles in .flowspace.json: "Default — single pane" or a profile |
| Label | No label, an existing label, or "New label…", named from what you type |
The last screen summarizes the picks; press ↩ (Create session) to create it. ⌫ on an empty query goes back one step, and clicking a chip jumps back to that step. See Sessions, tiles and tabs for what happens next.
New remote session… runs the same kind of flow for an ssh host: Host, Directory, Persistence, Label. See Remote hosts.
The launcher: type anything
When you type a query at the root, the palette also searches beyond Flow. Sections appear in this order, each only when it has a match:
| Section | What it holds | ↩ | ⌘↩ |
|---|---|---|---|
| Answer card | A calculation, unit or currency conversion, stock quote or color | Copies the answer | |
| Top hit | What you picked for this exact query before, else a go link named exactly the query, else the best app | Runs it | |
| Applications | Matching apps | Launches | Reveals in Finder |
| Commands | Matching actions | Runs | |
| Go links | Your go/ links whose name matches | Opens (or fills in arguments) | |
| System actions | Mute, sleep, empty Trash and the like | Runs | |
| System settings | Matching System Settings panes | Opens | |
| Snippets | Matching snippets | Pastes | |
| Search | A web search with palette.search_engine, then one-argument web go links | Searches in the browser | Searches in a web tab (web tabs on) |
Destructive system actions (Empty Trash, Log Out, Restart, Shut Down, the Quit All rows) need two presses: the first ↩ arms the row ("Press ↩ again to …"), the second runs it.
Prefixes switch the palette into a mode:
| Type | Opens |
|---|---|
/ as the first character | The file picker in search (grep) mode |
go/ | Go links, with the rest as the query (go/pr/241 searches for pr/241) |
go then ⇥ | Go links |
caffeinate 2h, awake until 6pm | A Caffeinate card for that duration or time |
The web search engine is Settings › General › Command palette › Web search (palette.search_engine); a custom engine uses the "Search URL" row. Go links live in ~/.flow/golinks.json.
How ranking and history work
Fuzzy ranking. Commands are scored by how well your query matches their label; ties keep the order of the action list.
Learned top hits. Flow remembers which row you pick for each query, in ~/.flow/palette_usage.json. A pick's score halves every 14 days and grows by one each time you pick it again; once a row reaches 1.5 for a query (about two recent picks; one pick never promotes) it becomes that query's Top hit. Queries are compared trimmed, lowercased and with spaces collapsed. At most 8 picks per query and 500 queries are kept.
History. Like a shell, ↑ on an empty root (with the first row highlighted) walks back through what you ran from the root, newest first; ↓ walks forward, and past the newest returns to the empty root. The entry's text fills the field, still editable, with the row it ran highlighted so ↩ runs it again. History lives in ~/.flow/palette_history.json: at most 100 entries, duplicates moved to the front, nothing over 512 characters, and nothing that looks like a secret.
Both files are global: they are shared by every Flow build and worktree on your Mac.
Other palette modes
The palette also hosts these, each documented on its own page:
- The file picker (
⌘P,⇧⌘F): Files. - Clipboard history and snippets (
⌥⌘V,⇧⌘,): Snippets and clipboard. - Locked windows: Pop-outs and window locks.
- Add to session group…: Session groups.
- Caffeinate: Notifications and snooze.
Sources
Written from these files in the Flow app repo
src/command.rssrc/command_ui.rssrc/palette.rssrc/palette_history.rssrc/palette_usage.rssrc/palette_window.rssrc/global_hotkey.rssrc/settings_palette.rssrc/settings_catalog.rssrc/picker.rssrc/caffeine.rssrc/pages.rs