# Keyboard shortcuts

> Every default Flow shortcut by area, the system-wide hotkeys, the fixed keys, the unbound actions and how to rebind any of them.

Every Flow shortcut is a ⌘ chord bound to a named action, and every action can be rebound. The tables below list the defaults exactly as Flow ships them, grouped the way **Settings › Keyboard** groups them. The setting key is what you write in `~/.flow/settings.json` to rebind it (see [How to rebind](https://flow.worldbreakstudios.com/docs/getting-started/keyboard-shortcuts.md#how-to-rebind)).

> **Note:** A few shortcuts only do something in a context: a web tab, a Files tab, the Dashboard, or while an experiment (Settings › Experiments) is on. The Notes column says so.

## Default shortcuts

### Layout

| Shortcut | Action | Setting key | Notes |
|---|---|---|---|
| `⌘D` | Split side-by-side | `keyboard.split_right` | Splits the focused tile; the new pane opens the New tab launcher (or a terminal, per `tabs.new_tab`). |
| `⇧⌘D` | Split stacked | `keyboard.split_down` |  |
| `⌥⌘M` | Collapse/expand pane | `keyboard.toggle_collapse` | Folds the focused pane into a gutter pill, or brings it back. |
| `⌥⌘F` | Focus mode: collapse other panes / zoom the dashboard card | `keyboard.toggle_focus_others` | Folds every other pane, or expands them again. On the Dashboard it zooms the focused card. |
| `⌘S` | Focus terminals | `keyboard.toggle_sidebar` | Hides or shows the sidebar. |
| `⌘G` | Toggle dashboard | `keyboard.toggle_dashboard` |  |
| `⌥⌘S` | Toggle dashboard side panel | `keyboard.toggle_dashboard_side` | Dashboard only. |
| `⌥⌘G` | Cycle dashboard PR filter | `keyboard.dashboard_pr_filter` | Dashboard only: All → Working → Complete. |
| `⌘→` | Focus dashboard side panel | `keyboard.dashboard_focus_side` | Dashboard only: keyboard to the side panel. |
| `⌘←` | Focus dashboard card | `keyboard.dashboard_focus_card` | Dashboard only: keyboard back to the card. |
| `⇧⌘E` | Toggle file explorer | `keyboard.toggle_files_explorer` | Files tab. |
| `⌥⌘E` | Filter files | `keyboard.filter_files` | Files tab: focuses the explorer filter. |
| `⌘;` | Toggle factory | `keyboard.toggle_factory` | Factory experiment only. |
| `⌥⌘\` | Close the Factory pane | `keyboard.factory_close_pane` | Factory experiment only. |

### Tabs & sessions

| Shortcut | Action | Setting key | Notes |
|---|---|---|---|
| `⌘T` | New tab | `keyboard.new_tab` | In the focused tile; from the primary pane the tab opens to its right. |
| `⌥⌘B` | New webview… | `keyboard.new_webview` | Web tabs experiment only. |
| `⌥⌘R` | Review pull request | `keyboard.review_pull_request` | Opens the session's PR as a review tab. |
| `⇧⌘T` | Reopen closed session | `keyboard.reopen_closed_session` | Opens the History restore palette for the last closed session. |
| `⇧⌘Z` | Snooze / wake group | `keyboard.toggle_snooze` | Wakes a snoozed session; otherwise snoozes per `snooze.default`. |
| `⌘F` | Find in page… | `keyboard.find_in_page` | Web tab, or a Files tab code view. |
| `⌘L` | Focus address bar | `keyboard.focus_address` | Web tab address bar. |
| `⇧⌘O` | Open in default browser | `keyboard.open_in_browser` | Web tab. |
| `⇧⌘C` | Copy link | `keyboard.copy_link` | Web tab. |
| `⌃⌘P` | Print… | `keyboard.print_page` | Web tab. |
| `⌥⌘I` | Developer tools | `keyboard.developer_tools` | Web tab. |
| `⌃⌘I` | Site information | `keyboard.site_info` | Web tab: toggles the Site popover. |
| `⇧⌘[` | Previous tab | `keyboard.prev_tab` | Within the focused tile. |
| `⇧⌘]` | Next tab | `keyboard.next_tab` | Within the focused tile. |
| `⌘O` | Open file in editor | `keyboard.open_in_editor` |  |
| `⌥⌘O` | Open in Files | `keyboard.open_in_files` | On a PR review diff line: opens it in a Files tab. |
| `⌘B` | Go to definition | `keyboard.go_to_definition` | Files tab caret. See [Code navigation](https://flow.worldbreakstudios.com/docs/features/code-navigation.md). |
| `⇧⌘B` | Find references | `keyboard.find_references` | Files tab caret. |
| `⌃⌥⌘N` | New label | `keyboard.new_section` | Creates a label and opens the label editor. |

### Focus

| Shortcut | Action | Setting key | Notes |
|---|---|---|---|
| `⌘[` | Focus previous tile | `keyboard.prev_tile` |  |
| `⌘]` | Focus next tile | `keyboard.next_tile` |  |
| `⇧⌘H` | Focus pane left | `keyboard.focus_left` |  |
| `⇧⌘J` | Focus pane down | `keyboard.focus_down` |  |
| `⇧⌘K` | Focus pane up | `keyboard.focus_up` |  |
| `⇧⌘L` | Focus pane right | `keyboard.focus_right` |  |
| `⇧⌘↑` | Previous sidebar tab | `keyboard.prev_sidebar_tab` | Walks tool rows and sessions, wrapping. ⇧⌘← in horizontal tabs mode. |
| `⇧⌘↓` | Next sidebar tab | `keyboard.next_sidebar_tab` | ⇧⌘→ in horizontal tabs mode. |

### Editing

| Shortcut | Action | Setting key | Notes |
|---|---|---|---|
| `⌘C` | Copy selection | `keyboard.copy` |  |
| `⌘V` | Paste | `keyboard.paste` |  |

### App

| Shortcut | Action | Setting key | Notes |
|---|---|---|---|
| `⌥⇧⌘B` | New webview from command… | `keyboard.new_webview_from_command` | Web tabs experiment only: the URL is the first line a command prints. |
| `⇧⌘N` | New session… | `keyboard.new_group` | The New session flow. |
| `⌘W` | Close tab | `keyboard.close_tab` | Pinned tabs never close. On the primary pane it asks to close the session. |
| `⇧⌘W` | Close group | `keyboard.close_group` | Closes the session after a confirm. |
| `⌥⌘P` | Pin / unpin tab | `keyboard.toggle_pin_tab` | Also the default system-wide palette hotkey (see below). |
| `⌥⌘T` | Show / hide title bar | `keyboard.toggle_title_bar` | Web tab: shows or hides its toolbar. |
| `⌘Q` | Quit | `keyboard.quit` |  |
| `⇧⌘←` | Previous label | `keyboard.prev_page` | Cycles labels, wrapping. ⇧⌘↑ in horizontal tabs mode. |
| `⇧⌘→` | Next label | `keyboard.next_page` | ⇧⌘↓ in horizontal tabs mode. |
| `⌘,` | Open settings | `keyboard.open_settings` |  |
| `⇧⌘P` | Command palette | `keyboard.command_palette` |  |
| `⌘P` | Find file | `keyboard.find_file` | The palette's file picker. |
| `⇧⌘F` | Search in files | `keyboard.search_in_files` | The file picker in search mode. |
| `` ⌘` `` | Toggle Flyover Terminal | `keyboard.toggle_flyover` | The separate flyover terminal window. |
| `⇧⌘S` | Save as workspace | `keyboard.save_workspace` | Saves the layout as a `.flowspace.json` profile. |
| `⇧⌘G` | Open pull request | `keyboard.open_pr_in_github` | A review tab while `git.open_pr_in_review` is on (default), else the browser. |
| `⇧⌘M` | Merge pull request | `keyboard.merge_pr` | Merges the session's PR when it can be merged. |
| `⌃⌘J` | Toggle Flow agent | `keyboard.toggle_flow` | Flow agent experiment only; also works system-wide. |
| `⌘=` | Increase font size | `keyboard.increase_font_size` | Terminal text while a terminal is focused, else the app chrome. |
| `⌘-` | Decrease font size | `keyboard.decrease_font_size` |  |
| `⌃⌥⌘C` | Screenshot to clipboard | `keyboard.screenshot_to_clipboard` |  |
| `⌃⌥⌘S` | Screenshot to file | `keyboard.screenshot_to_file` |  |
| `⌃⌥⌘1` | Go to Sessions | `keyboard.go_to_sessions` |  |
| `⌃⌥⌘3` | Go to Trash | `keyboard.go_to_trash` |  |
| `⌃⌥⌘2` | Go to Puddle | `keyboard.go_to_puddle` | Puddles experiment only. |
| `⌥⌘N` | Notification history | `keyboard.show_notifications` | The notification history menu; marks everything read. |

## System-wide hotkeys

These work from any app, with Flow in the background. They are registered with macOS, so another app that already owns a chord can keep it from registering. Rebind them in the "Global hotkeys" rows of Settings › Keyboard, or with the keys below; the value `none` turns one off.

| Default | What it does | Setting key |
|---|---|---|
| `⌥⌘P` | Command palette (anywhere) | `keyboard.global_palette` |
| `⌥⌘V` | Clipboard history (anywhere) | `keyboard.global_clipboard` |
| `⇧⌘,` | Search snippets (anywhere) | `keyboard.global_snippets` |
| `⇧⌘1` | Paste next from clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle` |
| `⇧⌘2` | Reset clipboard cycle (anywhere) | `keyboard.global_clipboard_cycle_reset` |
| `⌃⌘J` | Toggle Flow agent, while the Flow agent experiment is on | `keyboard.toggle_flow` |

Global hotkey values use their own spelling, for example `alt+meta+KeyP` (the default palette hotkey), `shift+meta+Comma` or `ctrl+meta+Space`.

> **Note:** `⌥⌘P` is both the in-app "Pin / unpin tab" default and the default system-wide palette hotkey. Rebind one of them if you use both.

## Fixed keys

These keys are not in the bindings table and cannot be rebound.

| Keys | Where | What they do |
|---|---|---|
| `⌘1` – `⌘9` | Anywhere in a workspace window | Switch to the Nth session in the sidebar (on the Dashboard, the Nth card; in a label window, that window's own sessions) |
| `⌃1` – `⌃9` | Sessions page, while the session is in a session group | Switch to the group's Nth member |
| `⌃Tab` / `⌃⇧Tab` | Same | Next / previous member, wrapping (a focused Files tab keeps its own `⌃Tab`) |
| `⌘1` – `⌘7` | New tab launcher | Pick a tab type: Terminal, Web, Pull request, Files, Notes, Run, Shells (six types, `⌘1` – `⌘6`, while web tabs are off) |
| `⌥1` – `⌥9` | New tab launcher | Launch the Nth visible run row |
| `⌘1` / `⌘2` | Label editor | Glyph tab / Theme tab |
| `↑` `↓` `↩` `⎋` `⌫` | Command palette | Move, run, clear or close, and on an empty query go back a step |
| `⇧⌘H` `⇧⌘J` `⇧⌘K` `⇧⌘L`, `⌘[` `⌘]`, `⇧⌘` arrows | Dashboard | Move the focused card through the grid (the same actions as on Sessions) |

## Horizontal tabs swap four arrows

With horizontal tabs on (`appearance.horizontal_tabs`), sessions run left to right and labels top to bottom, so the four `⇧⌘` arrow steps trade places: `⇧⌘←` / `⇧⌘→` step the session tabs and `⇧⌘↑` / `⇧⌘↓` step the labels. A custom arrow chord you bound to one of these four mirrors the same way. The stored `keyboard.*` value always holds the vertical layout's chord.

## Actions without a default shortcut

These actions run from the command palette (`⇧⌘P`), menus or `flow-cli action <name>` until you give them a chord. Some appear only while their experiment is on or in a context (a pop-out, a session group, a snoozed session).

| Action | Setting key | Settings › Keyboard group |
|---|---|---|
| New terminal | `keyboard.new_terminal` | Tabs & sessions |
| Browse files | `keyboard.new_files_tab` | Tabs & sessions |
| Change directory… | `keyboard.change_directory` | Tabs & sessions |
| Notes | `keyboard.new_notes_tab` | Tabs & sessions |
| New Shells tab | `keyboard.new_shells_tab` | Tabs & sessions |
| New remote session… | `keyboard.new_remote_session` | Tabs & sessions |
| Open PR as session… | `keyboard.open_pr_session` | Tabs & sessions |
| Go links | `keyboard.go_links` | App |
| Create go link | `keyboard.new_go_link` | App |
| Clipboard history | `keyboard.clipboard_history` | App |
| Search snippets | `keyboard.search_snippets` | App |
| Create snippet | `keyboard.create_snippet` | App |
| Import snippets | `keyboard.import_snippets` | App |
| Export snippets | `keyboard.export_snippets` | App |
| Paste next from clipboard cycle | `keyboard.clipboard_cycle_next` | App |
| Reset clipboard cycle | `keyboard.clipboard_cycle_reset` | App |
| Pick color | `keyboard.pick_color` | App |
| Close session everywhere | `keyboard.close_group_everywhere` | App |
| Pin/unpin group | `keyboard.toggle_pin` | App |
| Babysit/stop babysitting group | `keyboard.toggle_babysit` | Tabs & sessions |
| Mark group unread | `keyboard.mark_unread` | Tabs & sessions |
| Toggle context card | `keyboard.toggle_context_card` | Layout |
| Open agent details | `keyboard.open_agent_details` | Tabs & sessions |
| New session group | `keyboard.new_session_group` | Tabs & sessions |
| New session in group… | `keyboard.new_session_in_group` | Tabs & sessions |
| Rename session group… | `keyboard.rename_session_group` | Tabs & sessions |
| Remove from session group | `keyboard.remove_from_session_group` | Tabs & sessions |
| Ungroup sessions | `keyboard.ungroup_sessions` | Tabs & sessions |
| Close session group | `keyboard.close_session_group` | Tabs & sessions |
| Next session in group | `keyboard.next_group_member` | Tabs & sessions |
| Previous session in group | `keyboard.prev_group_member` | Tabs & sessions |
| Expand/collapse session group | `keyboard.toggle_session_group_fold` | Tabs & sessions |
| Add to session group… | `keyboard.add_to_session_group` | Tabs & sessions |
| Toggle tabs mode | `keyboard.toggle_horizontal_tabs` | Layout |
| Toggle PR details panel | `keyboard.toggle_pr_meta` | Layout |
| Toggle PR activity order | `keyboard.toggle_pr_activity_order` | Layout |
| Toggle PR diff groups panel | `keyboard.toggle_pr_groups` | Layout |
| Toggle Markdown preview | `keyboard.toggle_markdown_preview` | Layout |
| Request reviewers… | `keyboard.request_reviewers` | Layout |
| Browse settings… | `keyboard.browse_settings` | App |
| Show changes | `keyboard.show_changes` | App |
| Mark PR ready for review | `keyboard.mark_pr_ready` | App |
| Convert PR to draft | `keyboard.convert_pr_to_draft` | App |
| Close pull request | `keyboard.close_pr` | App |
| Enable auto-merge | `keyboard.enable_auto_merge` | App |
| Disable auto-merge | `keyboard.disable_auto_merge` | App |
| Change PR status… | `keyboard.pr_status` | App |
| Switch session… | `keyboard.switch_session` | Tabs & sessions |
| Go to first tool page | `keyboard.go_to_tool` | App |
| Go to Task Manager | `keyboard.go_to_tasks` | App |
| Go to Schedules | `keyboard.go_to_schedules` | App |
| Go to Reviews | `keyboard.go_to_pr_reviews` | App |
| Go to My PRs | `keyboard.go_to_my_prs` | App |
| Go to Factory | `keyboard.go_to_factory` | App |
| Invite a device to your puddle… | `keyboard.puddle_invite` | App |
| Toggle the Factory secondary pane | `keyboard.factory_toggle_secondary` | Layout |
| Add session to the Factory… | `keyboard.factory_add` | Tabs & sessions |
| Remove session from the Factory | `keyboard.factory_remove` | Tabs & sessions |
| Install command-line tools… | `keyboard.install_cli` | App |
| Route gh through ghx (~/.zshrc)… | `keyboard.toggle_gh_alias` | App |
| Route git through gitx (~/.zshrc)… | `keyboard.toggle_git_alias` | App |
| Check for updates… | `keyboard.check_for_updates` | App |
| Download and install update… | `keyboard.install_update` | App |
| Relaunch to update | `keyboard.relaunch_for_update` | App |
| Clear notifications | `keyboard.clear_notifications` | App |
| Toggle Do Not Disturb | `keyboard.toggle_do_not_disturb` | App |
| Open label in new window | `keyboard.open_label_window` | App |
| Lock Window to Session… | `keyboard.lock_window` | Tabs & sessions |
| Locked Windows… | `keyboard.locked_windows` | Tabs & sessions |
| Pop out tab | `keyboard.pop_out_tab` | Tabs & sessions |
| Return pop-out to session | `keyboard.return_pop_out` | Tabs & sessions |
| Pin pop-out on top | `keyboard.toggle_pop_out_pin` | Tabs & sessions |
| Cycle pop-out mode | `keyboard.cycle_pop_out_mode` | Tabs & sessions |
| Focus pop-out's session | `keyboard.focus_pop_out_session` | Tabs & sessions |
| Caffeinate | `keyboard.caffeinate` | App |
| Decaffeinate | `keyboard.decaffeinate` | App |
| Caffeinate for… | `keyboard.caffeinate_for` | App |
| Caffeinate until… | `keyboard.caffeinate_until` | App |
| Caffeinate status | `keyboard.caffeine_status` | App |
| Caffeine in menu bar | `keyboard.toggle_caffeine_menu_bar` | App |
| Keep display awake | `keyboard.toggle_caffeine_display` | App |
| Test decisions model connection | `keyboard.test_decisions_model` | App |
| Run all cells | `keyboard.run_all_cells` | App |
| Restart kernel | `keyboard.restart_kernel` | App |
| Clear outputs | `keyboard.clear_outputs` | App |
| Evaluate hunk classifier | `keyboard.eval_hunk_classifier` | App |

## How to rebind

**In Settings:** open **Settings › Keyboard** (`⌘,`), click a row, then press the new chord. Every app shortcut needs ⌘ plus any of ⌃, ⌥ and ⇧. Press ⎋ to cancel, or ⌫ on its own to leave the action unbound. If two actions share a chord only the first one in the list runs, and Settings marks the conflict. **Restore defaults** resets every shortcut.

**With flow-cli, while Flow runs:** write the action's `keyboard.<name>` key. It applies at once.

```sh
flow-cli settings set keyboard.new_terminal cmd-ctrl-t
flow-cli settings set keyboard.toggle_pin_tab none
```

**In the settings file:** quit Flow first (it reads `~/.flow/settings.json` at launch and rewrites it on every change), then add `keyboard.<name>` keys. A chord is written as dash-separated tokens: `cmd` (implied, may be left out), `ctrl`, `alt` (or `opt`), `shift`, then the key. Use `up`, `down`, `left`, `right` for arrows and `minus` for `-`. The value `none` unbinds an action.

```json
{
  "keyboard.new_terminal": "cmd-ctrl-t",
  "keyboard.toggle_pin": "cmd-ctrl-u",
  "keyboard.toggle_pin_tab": "none"
}
```

**From a script:** run any action by name, bound or not:

```sh
flow-cli action split_right
flow-cli action toggle_dashboard
```

More on keybindings and settings files: [Keybindings](https://flow.worldbreakstudios.com/docs/configuration/keybindings.md) and [Settings](https://flow.worldbreakstudios.com/docs/configuration/settings.md).
