Skip to content
flow

Getting startedKeyboard shortcuts

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.

View as Markdown
On this page

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).

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

ShortcutActionSetting keyNotes
⌘DSplit side-by-sidekeyboard.split_rightSplits the focused tile; the new pane opens the New tab launcher (or a terminal, per tabs.new_tab).
⇧⌘DSplit stackedkeyboard.split_down
⌥⌘MCollapse/expand panekeyboard.toggle_collapseFolds the focused pane into a gutter pill, or brings it back.
⌥⌘FFocus mode: collapse other panes / zoom the dashboard cardkeyboard.toggle_focus_othersFolds every other pane, or expands them again. On the Dashboard it zooms the focused card.
⌘SFocus terminalskeyboard.toggle_sidebarHides or shows the sidebar.
⌘GToggle dashboardkeyboard.toggle_dashboard
⌥⌘SToggle dashboard side panelkeyboard.toggle_dashboard_sideDashboard only.
⌥⌘GCycle dashboard PR filterkeyboard.dashboard_pr_filterDashboard only: All → Working → Complete.
⌘→Focus dashboard side panelkeyboard.dashboard_focus_sideDashboard only: keyboard to the side panel.
⌘←Focus dashboard cardkeyboard.dashboard_focus_cardDashboard only: keyboard back to the card.
⇧⌘EToggle file explorerkeyboard.toggle_files_explorerFiles tab.
⌥⌘EFilter fileskeyboard.filter_filesFiles tab: focuses the explorer filter.
⌘;Toggle factorykeyboard.toggle_factoryFactory experiment only.
⌥⌘\Close the Factory panekeyboard.factory_close_paneFactory experiment only.

Tabs & sessions

ShortcutActionSetting keyNotes
⌘TNew tabkeyboard.new_tabIn the focused tile; from the primary pane the tab opens to its right.
⌥⌘BNew webview…keyboard.new_webviewWeb tabs experiment only.
⌥⌘RReview pull requestkeyboard.review_pull_requestOpens the session's PR as a review tab.
⇧⌘TReopen closed sessionkeyboard.reopen_closed_sessionOpens the History restore palette for the last closed session.
⇧⌘ZSnooze / wake groupkeyboard.toggle_snoozeWakes a snoozed session; otherwise snoozes per snooze.default.
⌘FFind in page…keyboard.find_in_pageWeb tab, or a Files tab code view.
⌘LFocus address barkeyboard.focus_addressWeb tab address bar.
⇧⌘OOpen in default browserkeyboard.open_in_browserWeb tab.
⇧⌘CCopy linkkeyboard.copy_linkWeb tab.
⌃⌘PPrint…keyboard.print_pageWeb tab.
⌥⌘IDeveloper toolskeyboard.developer_toolsWeb tab.
⌃⌘ISite informationkeyboard.site_infoWeb tab: toggles the Site popover.
⇧⌘[Previous tabkeyboard.prev_tabWithin the focused tile.
⇧⌘]Next tabkeyboard.next_tabWithin the focused tile.
⌘OOpen file in editorkeyboard.open_in_editor
⌥⌘OOpen in Fileskeyboard.open_in_filesOn a PR review diff line: opens it in a Files tab.
⌘BGo to definitionkeyboard.go_to_definitionFiles tab caret. See Code navigation.
⇧⌘BFind referenceskeyboard.find_referencesFiles tab caret.
⌃⌥⌘NNew labelkeyboard.new_sectionCreates a label and opens the label editor.

Focus

ShortcutActionSetting keyNotes
⌘[Focus previous tilekeyboard.prev_tile
⌘]Focus next tilekeyboard.next_tile
⇧⌘HFocus pane leftkeyboard.focus_left
⇧⌘JFocus pane downkeyboard.focus_down
⇧⌘KFocus pane upkeyboard.focus_up
⇧⌘LFocus pane rightkeyboard.focus_right
⇧⌘↑Previous sidebar tabkeyboard.prev_sidebar_tabWalks tool rows and sessions, wrapping. ⇧⌘← in horizontal tabs mode.
⇧⌘↓Next sidebar tabkeyboard.next_sidebar_tab⇧⌘→ in horizontal tabs mode.

Editing

ShortcutActionSetting keyNotes
⌘CCopy selectionkeyboard.copy
⌘VPastekeyboard.paste

App

ShortcutActionSetting keyNotes
⌥⇧⌘BNew webview from command…keyboard.new_webview_from_commandWeb tabs experiment only: the URL is the first line a command prints.
⇧⌘NNew session…keyboard.new_groupThe New session flow.
⌘WClose tabkeyboard.close_tabPinned tabs never close. On the primary pane it asks to close the session.
⇧⌘WClose groupkeyboard.close_groupCloses the session after a confirm.
⌥⌘PPin / unpin tabkeyboard.toggle_pin_tabAlso the default system-wide palette hotkey (see below).
⌥⌘TShow / hide title barkeyboard.toggle_title_barWeb tab: shows or hides its toolbar.
⌘QQuitkeyboard.quit
⇧⌘←Previous labelkeyboard.prev_pageCycles labels, wrapping. ⇧⌘↑ in horizontal tabs mode.
⇧⌘→Next labelkeyboard.next_page⇧⌘↓ in horizontal tabs mode.
⌘,Open settingskeyboard.open_settings
⇧⌘PCommand palettekeyboard.command_palette
⌘PFind filekeyboard.find_fileThe palette's file picker.
⇧⌘FSearch in fileskeyboard.search_in_filesThe file picker in search mode.
⌘`Toggle Flyover Terminalkeyboard.toggle_flyoverThe separate flyover terminal window.
⇧⌘SSave as workspacekeyboard.save_workspaceSaves the layout as a .flowspace.json profile.
⇧⌘GOpen pull requestkeyboard.open_pr_in_githubA review tab while git.open_pr_in_review is on (default), else the browser.
⇧⌘MMerge pull requestkeyboard.merge_prMerges the session's PR when it can be merged.
⌃⌘JToggle Flow agentkeyboard.toggle_flowFlow agent experiment only; also works system-wide.
⌘=Increase font sizekeyboard.increase_font_sizeTerminal text while a terminal is focused, else the app chrome.
⌘-Decrease font sizekeyboard.decrease_font_size
⌃⌥⌘CScreenshot to clipboardkeyboard.screenshot_to_clipboard
⌃⌥⌘SScreenshot to filekeyboard.screenshot_to_file
⌃⌥⌘1Go to Sessionskeyboard.go_to_sessions
⌃⌥⌘3Go to Trashkeyboard.go_to_trash
⌃⌥⌘2Go to Puddlekeyboard.go_to_puddlePuddles experiment only.
⌥⌘NNotification historykeyboard.show_notificationsThe 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.

DefaultWhat it doesSetting key
⌥⌘PCommand palette (anywhere)keyboard.global_palette
⌥⌘VClipboard history (anywhere)keyboard.global_clipboard
⇧⌘,Search snippets (anywhere)keyboard.global_snippets
⇧⌘1Paste next from clipboard cycle (anywhere)keyboard.global_clipboard_cycle
⇧⌘2Reset clipboard cycle (anywhere)keyboard.global_clipboard_cycle_reset
⌃⌘JToggle Flow agent, while the Flow agent experiment is onkeyboard.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.

KeysWhereWhat they do
⌘1 – ⌘9Anywhere in a workspace windowSwitch to the Nth session in the sidebar (on the Dashboard, the Nth card; in a label window, that window's own sessions)
⌃1 – ⌃9Sessions page, while the session is in a session groupSwitch to the group's Nth member
⌃Tab / ⌃⇧TabSameNext / previous member, wrapping (a focused Files tab keeps its own ⌃Tab)
⌘1 – ⌘7New tab launcherPick a tab type: Terminal, Web, Pull request, Files, Notes, Run, Shells (six types, ⌘1 – ⌘6, while web tabs are off)
⌥1 – ⌥9New tab launcherLaunch the Nth visible run row
⌘1 / ⌘2Label editorGlyph tab / Theme tab
↑ ↓ ↩ ⎋ ⌫Command paletteMove, run, clear or close, and on an empty query go back a step
⇧⌘H ⇧⌘J ⇧⌘K ⇧⌘L, ⌘[ ⌘], ⇧⌘ arrowsDashboardMove 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).

ActionSetting keySettings › Keyboard group
New terminalkeyboard.new_terminalTabs & sessions
Browse fileskeyboard.new_files_tabTabs & sessions
Change directory…keyboard.change_directoryTabs & sessions
Noteskeyboard.new_notes_tabTabs & sessions
New Shells tabkeyboard.new_shells_tabTabs & sessions
New remote session…keyboard.new_remote_sessionTabs & sessions
Open PR as session…keyboard.open_pr_sessionTabs & sessions
Go linkskeyboard.go_linksApp
Create go linkkeyboard.new_go_linkApp
Clipboard historykeyboard.clipboard_historyApp
Search snippetskeyboard.search_snippetsApp
Create snippetkeyboard.create_snippetApp
Import snippetskeyboard.import_snippetsApp
Export snippetskeyboard.export_snippetsApp
Paste next from clipboard cyclekeyboard.clipboard_cycle_nextApp
Reset clipboard cyclekeyboard.clipboard_cycle_resetApp
Pick colorkeyboard.pick_colorApp
Close session everywherekeyboard.close_group_everywhereApp
Pin/unpin groupkeyboard.toggle_pinApp
Babysit/stop babysitting groupkeyboard.toggle_babysitTabs & sessions
Mark group unreadkeyboard.mark_unreadTabs & sessions
Toggle context cardkeyboard.toggle_context_cardLayout
Open agent detailskeyboard.open_agent_detailsTabs & sessions
New session groupkeyboard.new_session_groupTabs & sessions
New session in group…keyboard.new_session_in_groupTabs & sessions
Rename session group…keyboard.rename_session_groupTabs & sessions
Remove from session groupkeyboard.remove_from_session_groupTabs & sessions
Ungroup sessionskeyboard.ungroup_sessionsTabs & sessions
Close session groupkeyboard.close_session_groupTabs & sessions
Next session in groupkeyboard.next_group_memberTabs & sessions
Previous session in groupkeyboard.prev_group_memberTabs & sessions
Expand/collapse session groupkeyboard.toggle_session_group_foldTabs & sessions
Add to session group…keyboard.add_to_session_groupTabs & sessions
Toggle tabs modekeyboard.toggle_horizontal_tabsLayout
Toggle PR details panelkeyboard.toggle_pr_metaLayout
Toggle PR activity orderkeyboard.toggle_pr_activity_orderLayout
Toggle PR diff groups panelkeyboard.toggle_pr_groupsLayout
Toggle Markdown previewkeyboard.toggle_markdown_previewLayout
Request reviewers…keyboard.request_reviewersLayout
Browse settings…keyboard.browse_settingsApp
Show changeskeyboard.show_changesApp
Mark PR ready for reviewkeyboard.mark_pr_readyApp
Convert PR to draftkeyboard.convert_pr_to_draftApp
Close pull requestkeyboard.close_prApp
Enable auto-mergekeyboard.enable_auto_mergeApp
Disable auto-mergekeyboard.disable_auto_mergeApp
Change PR status…keyboard.pr_statusApp
Switch session…keyboard.switch_sessionTabs & sessions
Go to first tool pagekeyboard.go_to_toolApp
Go to Task Managerkeyboard.go_to_tasksApp
Go to Scheduleskeyboard.go_to_schedulesApp
Go to Reviewskeyboard.go_to_pr_reviewsApp
Go to My PRskeyboard.go_to_my_prsApp
Go to Factorykeyboard.go_to_factoryApp
Invite a device to your puddle…keyboard.puddle_inviteApp
Toggle the Factory secondary panekeyboard.factory_toggle_secondaryLayout
Add session to the Factory…keyboard.factory_addTabs & sessions
Remove session from the Factorykeyboard.factory_removeTabs & sessions
Install command-line tools…keyboard.install_cliApp
Route gh through ghx (~/.zshrc)…keyboard.toggle_gh_aliasApp
Route git through gitx (~/.zshrc)…keyboard.toggle_git_aliasApp
Check for updates…keyboard.check_for_updatesApp
Download and install update…keyboard.install_updateApp
Relaunch to updatekeyboard.relaunch_for_updateApp
Clear notificationskeyboard.clear_notificationsApp
Toggle Do Not Disturbkeyboard.toggle_do_not_disturbApp
Open label in new windowkeyboard.open_label_windowApp
Lock Window to Session…keyboard.lock_windowTabs & sessions
Locked Windows…keyboard.locked_windowsTabs & sessions
Pop out tabkeyboard.pop_out_tabTabs & sessions
Return pop-out to sessionkeyboard.return_pop_outTabs & sessions
Pin pop-out on topkeyboard.toggle_pop_out_pinTabs & sessions
Cycle pop-out modekeyboard.cycle_pop_out_modeTabs & sessions
Focus pop-out's sessionkeyboard.focus_pop_out_sessionTabs & sessions
Caffeinatekeyboard.caffeinateApp
Decaffeinatekeyboard.decaffeinateApp
Caffeinate for…keyboard.caffeinate_forApp
Caffeinate until…keyboard.caffeinate_untilApp
Caffeinate statuskeyboard.caffeine_statusApp
Caffeine in menu barkeyboard.toggle_caffeine_menu_barApp
Keep display awakekeyboard.toggle_caffeine_displayApp
Test decisions model connectionkeyboard.test_decisions_modelApp
Run all cellskeyboard.run_all_cellsApp
Restart kernelkeyboard.restart_kernelApp
Clear outputskeyboard.clear_outputsApp
Evaluate hunk classifierkeyboard.eval_hunk_classifierApp

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 and Settings.

Sources

Written from these files in the Flow app repo

  • src/pages.rs
  • src/global_hotkey.rs
  • src/main.rs
  • src/bundles_app.rs
  • src/new_tab.rs
  • src/command.rs
  • src/label_edit_ui.rs
  • src/dashboard_ui.rs
  • src/settings_catalog.rs
  • src/bus.rs