Skip to content
flow

ConfigurationKeybindings

Keybindings

Rebind any Flow shortcut with keyboard.ACTION settings, the chord syntax, conflicts, global hotkeys, and the full action list with default chords.

View as Markdown
On this page

Every ⌘ shortcut in Flow is a named action with a setting, keyboard.ACTION, that holds its chord. You can rebind any of them, unbind them, or give a chord to an action that has none by default. A separate set of global hotkeys works while Flow is in the background.

Rebind a shortcut in Settings

  1. Open Settings (⌘,) and choose Keyboard. Shortcuts are grouped into Layout, Tabs & sessions, Focus, Editing and App.
  2. Click a shortcut. The row starts recording.
  3. Press the new chord. It must include ⌘: bare ⌃ and ⌥ chords belong to the programs running in your terminals.
  4. To cancel, press Esc. To unbind the action, press ⌫ (or Delete) with no modifier.

Restore defaults on the Keyboard page puts every shortcut back to its default chord.

You can also search for a shortcut from the command palette: type a query with a word starting with "shortcut", "key", "hotkey" or "binding" (for example "split shortcut") and the shortcut rows appear with their recorders.

Rebind from settings.json or flow-cli

The setting key is keyboard. plus the action's name from the tables below. Its value is a chord string:

sh
flow-cli settings apply keyboard.split_right cmd-shift-k   # rebind
flow-cli settings apply keyboard.new_files_tab cmd-alt-e   # bind an unbound action
flow-cli settings apply keyboard.toggle_snooze none        # unbind
flow-cli settings reset keyboard.split_right               # back to the default chord

In ~/.flow/settings.json (edit it only while Flow is quit; see Settings):

json
{
  "keyboard.split_right": "cmd-shift-k",
  "keyboard.toggle_snooze": "none"
}

Chord syntax

A chord is a list of tokens joined by -:

TokenMeans
cmd⌘. Optional: every app shortcut includes ⌘ whether you write it or not.
shift⇧
alt or opt⌥
ctrl⌃
anything elsethe key; the last one wins

Keys are written in lowercase: letters (k), digits (1), punctuation (, = [ ] ; \ and the backtick), minus for the - key (a bare - is the separator), and left, right, up, down for the arrows. Shifted punctuation folds to its base key, so { is [, } is ], + is = and _ is minus. none means unbound.

You wantWrite
⌘Kcmd-k
⇧⌘Kcmd-shift-k
⌃⌥⌘1cmd-ctrl-alt-1
⌘-cmd-minus
⇧⌘←cmd-shift-left
no shortcutnone

Conflicts

Two actions can hold the same chord. When you press it, only the first of them in the action list below runs; the other never fires.

  • Settings › Keyboard lets you record a chord that another action already holds, keeps both, and marks the conflict so you can fix it.
  • The command palette and flow-cli settings apply take the chord away from the action holding it, which becomes unbound (none). The reply names the action that lost it, so you can rebind it.

The default chords never conflict with each other. Some share a key but apply in different places: for example ⌘F is Find in page in a webview tab, and ⌘B is Go to definition in a Files tab.

Horizontal tabs mirror the arrow steps

With horizontal tabs on (appearance.horizontal_tabs), sessions run left to right along the top strip and labels top to bottom in its dropdown, so the four ⇧⌘ arrow steps trade arrows:

ActionSidebar layoutHorizontal tabs
Previous / next session (prev_sidebar_tab, next_sidebar_tab)⇧⌘↑ / ⇧⌘↓⇧⌘← / ⇧⌘→
Previous / next label (prev_page, next_page)⇧⌘← / ⇧⌘→⇧⌘↑ / ⇧⌘↓

A chord you store for these four is the sidebar layout's; Flow mirrors it the same way when horizontal tabs are on.

Global hotkeys

These work system-wide, even while another app is in front. They use a different chord syntax: modifiers shift, alt, ctrl and meta (⌘) joined to a key by +, with the key spelled the way macOS key codes are named and case-sensitive: KeyP, Digit1, Comma, Space, ArrowUp.

HotkeySetting keyDefaultDefault chord
Command palette (anywhere)keyboard.global_palettealt+meta+KeyP⌥⌘P
Clipboard history (anywhere)keyboard.global_clipboardalt+meta+KeyV⌥⌘V
Search snippets (anywhere)keyboard.global_snippetsshift+meta+Comma⇧⌘,
Paste next from clipboard cycle (anywhere)keyboard.global_clipboard_cycleshift+meta+Digit1⇧⌘1
Reset clipboard cycle (anywhere)keyboard.global_clipboard_cycle_resetshift+meta+Digit2⇧⌘2

Set one to none (or an empty value) to turn it off. Record them in Settings › Keyboard › Global hotkeys; while a row records, every global hotkey is paused so the chord reaches the window. Changes apply at once, with no restart. While the Flow agent experiment is on, its toggle (keyboard.toggle_flow, ⌃⌘J) is registered system-wide too.

If macOS or another app already owns a chord, registration fails and Settings shows why. The in-app ⇧⌘P palette shortcut keeps working either way.

Fixed shortcuts

A few keys are not actions and can't be rebound:

KeysWhereDoes
⌘1–⌘9Sessions page, DashboardSwitch to the Nth session (on the Dashboard, focus the Nth card)
⌃1–⌃9, ⌃Tab / ⌃⇧Taba session in a session groupJump to the group's Nth member, or the next / previous one
⌘1–⌘7New tab launcherPick a tab type (⌘1–⌘6 while web tabs are off)
⌥1–⌥9New tab launcherLaunch the Nth Run row

Run an action without a shortcut

Every action in the tables below also appears in the command palette (⇧⌘P) by its label, and runs from a shell by its name:

sh
flow-cli action split_right
flow-cli action toggle_dashboard

Action reference

Every rebindable action in Settings › Keyboard order (the order that decides conflicts). Notes marks actions that only apply in one place, and actions that only appear while an experiment is on (Settings › Experiments).

Layout

ActionSetting keyDefaultNotes
Split side-by-sidekeyboard.split_right⌘D
Split stackedkeyboard.split_down⇧⌘D
Toggle context cardkeyboard.toggle_context_cardunbound
Collapse/expand panekeyboard.toggle_collapse⌥⌘M
Focus mode: collapse other panes / zoom the dashboard cardkeyboard.toggle_focus_others⌥⌘F
Focus terminalskeyboard.toggle_sidebar⌘S
Toggle tabs modekeyboard.toggle_horizontal_tabsunbound
Toggle dashboardkeyboard.toggle_dashboard⌘G
Toggle dashboard side panelkeyboard.toggle_dashboard_side⌥⌘SDashboard only
Cycle dashboard PR filterkeyboard.dashboard_pr_filter⌥⌘GDashboard only
Focus dashboard side panelkeyboard.dashboard_focus_side⌘→Dashboard only
Focus dashboard cardkeyboard.dashboard_focus_card⌘←Dashboard only
Toggle PR details panelkeyboard.toggle_pr_metaunbound
Toggle PR activity orderkeyboard.toggle_pr_activity_orderunbound
Toggle PR diff groups panelkeyboard.toggle_pr_groupsunboundPR review tab
Toggle Markdown previewkeyboard.toggle_markdown_previewunboundFiles tab or PR review tab
Request reviewers…keyboard.request_reviewersunboundPR review tab
Toggle file explorerkeyboard.toggle_files_explorer⇧⌘Efocused Files tab
Filter fileskeyboard.filter_files⌥⌘Efocused Files tab
Toggle factorykeyboard.toggle_factory⌘;Factory experiment
Close the Factory panekeyboard.factory_close_pane⌥⌘\\Factory experiment; Factory page only
Toggle the Factory secondary panekeyboard.factory_toggle_secondaryunboundFactory experiment; ⌘\ on the Factory page

Tabs and sessions

ActionSetting keyDefaultNotes
New tabkeyboard.new_tab⌘T
New terminalkeyboard.new_terminalunbound
New webview…keyboard.new_webview⌥⌘BWeb tabs experiment
Review pull requestkeyboard.review_pull_request⌥⌘R
Browse fileskeyboard.new_files_tabunbound
Change directory…keyboard.change_directoryunbound
Noteskeyboard.new_notes_tabunbound
New Shells tabkeyboard.new_shells_tabunbound
New remote session…keyboard.new_remote_sessionunbound
Open PR as session…keyboard.open_pr_sessionunbound
Reopen closed sessionkeyboard.reopen_closed_session⇧⌘T
Snooze / wake groupkeyboard.toggle_snooze⇧⌘Z
Babysit/stop babysitting groupkeyboard.toggle_babysitunbound
Mark group unreadkeyboard.mark_unreadunbound
Open agent detailskeyboard.open_agent_detailsunbound
New session groupkeyboard.new_session_groupunbound
New session in group…keyboard.new_session_in_groupunbound
Rename session group…keyboard.rename_session_groupunbound
Remove from session groupkeyboard.remove_from_session_groupunbound
Ungroup sessionskeyboard.ungroup_sessionsunbound
Close session groupkeyboard.close_session_groupunbound
Next session in groupkeyboard.next_group_memberunbound
Previous session in groupkeyboard.prev_group_memberunbound
Expand/collapse session groupkeyboard.toggle_session_group_foldunbound
Add to session group…keyboard.add_to_session_groupunbound
Find in page…keyboard.find_in_page⌘Ffocused webview tab
Focus address barkeyboard.focus_address⌘Lfocused webview tab
Open in default browserkeyboard.open_in_browser⇧⌘Ofocused webview tab
Copy linkkeyboard.copy_link⇧⌘Cfocused webview tab
Print…keyboard.print_page⌃⌘Pfocused webview tab
Developer toolskeyboard.developer_tools⌥⌘Ifocused webview tab
Site informationkeyboard.site_info⌃⌘Ifocused webview tab
Previous tabkeyboard.prev_tab⇧⌘[
Next tabkeyboard.next_tab⇧⌘]
Open file in editorkeyboard.open_in_editor⌘Ofocused Files tab
Open in Fileskeyboard.open_in_files⌥⌘OPR review tab
Go to definitionkeyboard.go_to_definition⌘Bfocused Files tab
Find referenceskeyboard.find_references⇧⌘Bfocused Files tab
Switch session…keyboard.switch_sessionunbound
New labelkeyboard.new_section⌃⌥⌘N
Add session to the Factory…keyboard.factory_addunboundFactory experiment
Remove session from the Factorykeyboard.factory_removeunboundFactory experiment
Lock Window to Session…keyboard.lock_windowunbound
Locked Windows…keyboard.locked_windowsunbound
Pop out tabkeyboard.pop_out_tabunbound
Return pop-out to sessionkeyboard.return_pop_outunbound
Pin pop-out on topkeyboard.toggle_pop_out_pinunbound
Cycle pop-out modekeyboard.cycle_pop_out_modeunbound
Focus pop-out's sessionkeyboard.focus_pop_out_sessionunbound

Focus

ActionSetting keyDefaultNotes
Focus previous tilekeyboard.prev_tile⌘[
Focus next tilekeyboard.next_tile⌘]
Focus pane leftkeyboard.focus_left⇧⌘H
Focus pane downkeyboard.focus_down⇧⌘J
Focus pane upkeyboard.focus_up⇧⌘K
Focus pane rightkeyboard.focus_right⇧⌘L
Previous sidebar tabkeyboard.prev_sidebar_tab⇧⌘↑⇧⌘← with horizontal tabs
Next sidebar tabkeyboard.next_sidebar_tab⇧⌘↓⇧⌘→ with horizontal tabs

Editing

ActionSetting keyDefaultNotes
Copy selectionkeyboard.copy⌘C
Pastekeyboard.paste⌘V

App

ActionSetting keyDefaultNotes
New webview from command…keyboard.new_webview_from_command⌥⇧⌘BWeb tabs experiment
New session…keyboard.new_group⇧⌘N
Go linkskeyboard.go_linksunbound
Create go linkkeyboard.new_go_linkunbound
Clipboard historykeyboard.clipboard_historyunbound
Search snippetskeyboard.search_snippetsunbound
Create snippetkeyboard.create_snippetunbound
Import snippetskeyboard.import_snippetsunbound
Export snippetskeyboard.export_snippetsunbound
Paste next from clipboard cyclekeyboard.clipboard_cycle_nextunbound
Reset clipboard cyclekeyboard.clipboard_cycle_resetunbound
Pick colorkeyboard.pick_colorunbound
Close tabkeyboard.close_tab⌘W
Close groupkeyboard.close_group⇧⌘W
Close session everywherekeyboard.close_group_everywhereunboundPuddles experiment
Pin/unpin groupkeyboard.toggle_pinunbound
Pin / unpin tabkeyboard.toggle_pin_tab⌥⌘P
Show / hide title barkeyboard.toggle_title_bar⌥⌘T
Quitkeyboard.quit⌘Q
Previous labelkeyboard.prev_page⇧⌘←⇧⌘↑ with horizontal tabs
Next labelkeyboard.next_page⇧⌘→⇧⌘↓ with horizontal tabs
Open settingskeyboard.open_settings⌘,
Browse settings…keyboard.browse_settingsunbound
Command palettekeyboard.command_palette⇧⌘P
Find filekeyboard.find_file⌘P
Search in fileskeyboard.search_in_files⇧⌘F
Show changeskeyboard.show_changesunbound
Toggle Flyover Terminalkeyboard.toggle_flyover⌘`
Save as workspacekeyboard.save_workspace⇧⌘S
Open pull requestkeyboard.open_pr_in_github⇧⌘G
Merge pull requestkeyboard.merge_pr⇧⌘M
Mark PR ready for reviewkeyboard.mark_pr_readyunbound
Convert PR to draftkeyboard.convert_pr_to_draftunbound
Close pull requestkeyboard.close_prunbound
Enable auto-mergekeyboard.enable_auto_mergeunbound
Disable auto-mergekeyboard.disable_auto_mergeunbound
Change PR status…keyboard.pr_statusunbound
Toggle Flow agentkeyboard.toggle_flow⌃⌘JFlow agent experiment; system-wide while it is on
Increase font sizekeyboard.increase_font_size⌘=terminal size in a terminal, chrome size elsewhere
Decrease font sizekeyboard.decrease_font_size⌘-terminal size in a terminal, chrome size elsewhere
Screenshot to clipboardkeyboard.screenshot_to_clipboard⌃⌥⌘C
Screenshot to filekeyboard.screenshot_to_file⌃⌥⌘S
Go to Sessionskeyboard.go_to_sessions⌃⌥⌘1
Go to first tool pagekeyboard.go_to_toolunbound
Go to Task Managerkeyboard.go_to_tasksunbound
Go to Scheduleskeyboard.go_to_schedulesunboundAutomations experiment
Go to Reviewskeyboard.go_to_pr_reviewsunboundPull requests experiment
Go to My PRskeyboard.go_to_my_prsunboundPull requests experiment
Go to Factorykeyboard.go_to_factoryunboundFactory experiment
Go to Trashkeyboard.go_to_trash⌃⌥⌘3
Go to Puddlekeyboard.go_to_puddle⌃⌥⌘2Puddles experiment
Invite a device to your puddle…keyboard.puddle_inviteunboundPuddles experiment
Install command-line tools…keyboard.install_cliunbound
Route gh through ghx (~/.zshrc)…keyboard.toggle_gh_aliasunbound
Route git through gitx (~/.zshrc)…keyboard.toggle_git_aliasunbound
Check for updates…keyboard.check_for_updatesunbound
Download and install update…keyboard.install_updateunbound
Relaunch to updatekeyboard.relaunch_for_updateunbound
Notification historykeyboard.show_notifications⌥⌘N
Clear notificationskeyboard.clear_notificationsunbound
Toggle Do Not Disturbkeyboard.toggle_do_not_disturbunbound
Open label in new windowkeyboard.open_label_windowunbound
Caffeinatekeyboard.caffeinateunbound
Decaffeinatekeyboard.decaffeinateunbound
Caffeinate for…keyboard.caffeinate_forunbound
Caffeinate until…keyboard.caffeinate_untilunbound
Caffeinate statuskeyboard.caffeine_statusunbound
Caffeine in menu barkeyboard.toggle_caffeine_menu_barunbound
Keep display awakekeyboard.toggle_caffeine_displayunbound
Test decisions model connectionkeyboard.test_decisions_modelunboundDecisions experiment
Run all cellskeyboard.run_all_cellsunboundNotebooks experiment
Restart kernelkeyboard.restart_kernelunboundNotebooks experiment
Clear outputskeyboard.clear_outputsunboundNotebooks experiment
Evaluate hunk classifierkeyboard.eval_hunk_classifierunboundDecisions experiment

Limits

  • Every app shortcut needs ⌘. Chords without it are left to the terminal.
  • A conflicting chord only runs the first action in the list above.
  • An action whose experiment is off is hidden from Settings, the palette and search, and does nothing.
Sources

Written from these files in the Flow app repo

  • src/pages.rs
  • src/global_hotkey.rs
  • src/settings_apply.rs
  • src/settings_catalog.rs
  • src/bundles_app.rs
  • src/new_tab.rs
  • agent-skills/settings/MANIFEST.md