跳到内容

快捷键和操作

Paneflow 默认快捷键,以及可在 paneflow.json 的 shortcuts 下绑定的操作名。

本页说明键盘快捷键和 keybinding 操作。它不是 commands[] workspace template 的 schema。把下方的 Action 字符串写入 paneflow.jsonshortcuts

Cmd/Ctrl 在 macOS 上表示 Cmd,在 Linux 或 Windows 上表示 Ctrl

TL;DR. Cmd/Ctrl+Shift+DCmd/Ctrl+Shift+E 拆分窗格, Cmd/Ctrl+Shift+Up/Down 在 shell prompt 之间跳转,Alt+Arrow 移动焦点, Cmd/Ctrl+1-9 跳转工作区,Cmd/Ctrl+Shift+A 打开 Agents, Cmd/Ctrl+Shift+G 打开 Diff,Cmd/Ctrl+Shift+J 跳到下一个等待中的 agent。

范围列很重要,因为多个操作会在不同 surface 中复用同一个 chord。 例如 Ctrl+Shift+C 在终端窗格中复制终端文本,在 Markdown 窗格中复制 Markdown,在 Diff 视图中复制 hunk。

操作参考

范围操作快捷键
窗格和标签页
窗格和标签页split_horizontallyCmd/CtrlShiftD
窗格和标签页split_verticallyCmd/CtrlShiftE
窗格和标签页close_paneCmd/CtrlShiftW
窗格和标签页undo_close_paneCmd/CtrlShiftT
窗格和标签页new_tabCmd/CtrlAltT
窗格和标签页close_tabCmd/CtrlW
窗格和标签页toggle_zoomCmd/CtrlShiftZ
窗格和标签页split_equalizeCmd/CtrlShift=
窗格和标签页swap_paneCmd/CtrlShiftS
窗格焦点
窗格焦点focus_leftAltLeft
窗格焦点focus_rightAltRight
窗格焦点focus_upAltUp
窗格焦点focus_downAltDown
布局
布局layout_even_horizontalCmd/CtrlAlt1
布局layout_even_verticalCmd/CtrlAlt2
布局layout_main_verticalCmd/CtrlAlt3
布局layout_tiledCmd/CtrlAlt4
工作区
工作区new_workspaceCmd/CtrlShiftN
工作区close_workspaceCmd/CtrlShiftQ
工作区next_workspaceCmd/CtrlTab
工作区jump_next_waitingCmd/CtrlShiftJ
工作区select_workspace_1Cmd/Ctrl1
工作区select_workspace_2Cmd/Ctrl2
工作区select_workspace_3Cmd/Ctrl3
工作区select_workspace_4Cmd/Ctrl4
工作区select_workspace_5Cmd/Ctrl5
工作区select_workspace_6Cmd/Ctrl6
工作区select_workspace_7Cmd/Ctrl7
工作区select_workspace_8Cmd/Ctrl8
工作区select_workspace_9Cmd/Ctrl9
工作区copy_workspace_pathCtrlShiftAltC
工作区reveal_workspace_in_file_managerCtrlAltR
工作区open_workspace_in_zedCtrlAltZ
工作区open_workspace_in_cursorCtrlAltC
工作区open_workspace_in_vscodeCtrlAltV
工作区open_workspace_in_windsurfCtrlAltW
应用视图
应用视图open_agents_viewCmd/CtrlShiftA
应用视图open_diff_viewCmd/CtrlShiftG
应用视图toggle_files_sidebarCmd/CtrlAltF
应用视图open_composerCmd/CtrlShiftSpace
应用视图toggle_broadcast_memberCmd/CtrlShiftB
应用视图open_broadcast_groupsCmd/CtrlShiftM
应用视图open_attention_queueCmd/CtrlShiftK
应用视图open_launch_padCmd/CtrlShiftL
终端窗格
终端窗格terminal_copyCtrlShiftC
终端窗格terminal_pasteCtrlShiftV
终端窗格terminal_copyCmdC(macOS only)
终端窗格terminal_pasteCmdV(macOS only)
终端窗格scroll_page_upShiftPageUp
终端窗格scroll_page_downShiftPageDown
终端窗格jump_prev_promptCmd/CtrlShiftUp
终端窗格jump_next_promptCmd/CtrlShiftDown
终端窗格toggle_copy_modeCtrlShiftX
终端窗格toggle_searchCtrlShiftF
终端窗格font_size_increaseCmd/Ctrl=
终端窗格font_size_decreaseCmd/Ctrl-
终端窗格font_size_resetCmd/Ctrl0
搜索浮层
搜索浮层search_nextEnter
搜索浮层search_prevShiftEnter
搜索浮层dismiss_searchEscape
搜索浮层toggle_search_regexAltR
搜索浮层toggle_fleet_searchAltF
Markdown 窗格
Markdown 窗格markdown_scroll_page_upShiftPageUp
Markdown 窗格markdown_scroll_page_downShiftPageDown
Markdown 窗格markdown_find_openCtrlF
Markdown 窗格markdown_copyCtrlShiftC
Markdown 窗格markdown_find_nextEnter
Markdown 窗格markdown_find_prevShiftEnter
Markdown 窗格markdown_find_dismissEscape
Diff 视图
Diff 视图copy_diff_hunkCtrlShiftC
Diff 视图diff_next_hunk]
Diff 视图diff_prev_hunk[
Diff 视图diff_toggle_viewU
Diff 视图diff_toggle_syncS
Diff 视图diff_dismissEscape
macOS 菜单栏
macOS 菜单栏quitCmdQ(macOS only)
没有默认快捷键的操作
应用视图close_window关闭当前窗口。
终端窗格clear_scroll_history清空当前终端窗格的回滚缓冲区。
终端窗格reset_terminal完整重置当前终端窗格。

如何覆盖快捷键?

paneflow.json 中设置 shortcuts 对象。键是按键组合,值是上表中 的操作名。

json
{
  "shortcuts": {
    "ctrl+shift+t": "new_tab",
    "alt+1": "select_workspace_1"
  }
}

完整的覆盖语法,包括 secondary 修饰符和按上下文限定作用域,见 模式页面

快捷键可以在 paneflow.json 中覆盖;冲突按"后写入者胜出"的顺序解决。 你的用户条目叠加在内置默认值之上,因此对同一按键组合最后注册的快捷键 生效。如果两个用户条目把同一按键组合映射到不同操作,后一个条目生效。