Armadra

参考

键盘快捷键

默认快捷键一览,按 macOS 与 Windows / Linux 区分,以及它们与终端、系统、浏览器的关系。


这一页列出默认配置下的全部快捷键。表里的 Mod 在 macOS 上是 ⌘,在 Windows / Linux 上是 Ctrl。

在「设置 → 快捷键」里可以逐条改键、加替代键、设为无,或用顶部的「启用快捷键」整体关掉;也可以切换到内置的另一套键位配置档。

通用规则

  • 终端里的控制键归 shell:焦点在终端里时,Ctrl(不带 Shift)或 Alt 加一个键的组合(如 Ctrl+C、Ctrl+D、Ctrl+R、Alt+B)不会被 Armadra 截走,即使你把它绑给了某条命令。Ctrl+Shift+字母与带 ⌘ 的组合不受影响。
  • 「终端」列表示焦点在终端里时该键是否仍归 Armadra;「输入框」列表示焦点在输入框或可编辑区域时是否仍生效。
  • 关掉「启用快捷键」后,页面不再接下表的任何命令,终端里的键全部交给 shell;只有窗口与系统自己的键(⌘W / Ctrl+W、⌘Q、Alt+F4)和下文「组件内的键」仍然有效。

应用

命令 macOS Windows / Linux 终端 输入框
命令面板 ⌘K Ctrl+K / Ctrl+Shift+P 是 是
设置 ⌘, Ctrl+, 是 是
侧栏 ⇧⌘L Ctrl+Shift+L 是 是
资源管理器 ⇧⌘E Ctrl+Shift+E 是 是
源码控制 ⇧⌘G Ctrl+Shift+G 是 是
资源面板 ⇧⌘U Ctrl+Shift+U 是 是
快速打开 ⌘P Ctrl+P 是 是
项目搜索 ⇧⌘H Ctrl+Shift+H 是 是

「代码托管面板」「问题」「引用」面板没有默认快捷键,从命令面板或对应入口进入。

画布

命令 macOS Windows / Linux
新建终端 ⌘T Ctrl+T
新建 Agent ⇧⌘C Ctrl+Shift+C
焦点模式 ⇧⌘F Ctrl+Shift+F
最大化节点 ⇧⌘⏎ Ctrl+Shift+Enter
关闭节点 ⌘W Ctrl+W
撤销 / 重做 ⌘Z / ⇧⌘Z Ctrl+Z / Ctrl+Shift+Z
整理画布 ⇧⌘A Ctrl+Shift+A
导入 Mermaid ⇧⌘M Ctrl+Shift+M
放大 / 缩小 ⌘= / ⌘- Ctrl+= / Ctrl+-
实际大小 / 适应视图 ⌘0 / ⌘1 Ctrl+0 / Ctrl+1
在节点间移动选中 ⌘←↑→↓ Ctrl+←↑→↓
删除所选 ⌫ / ⌦ Delete / Backspace
全选 / 复制 / 剪切 / 粘贴 ⌘A / ⌘C / ⌘X / ⌘V Ctrl+A / Ctrl+C / Ctrl+X / Ctrl+V
显示网格 ⌘’ Ctrl+’
专注模式 ⌘. Ctrl+.

这些键在焦点位于终端或输入框时不生效(终端里的复制粘贴见下文)。「关闭节点」的 ⌘W / Ctrl+W 由应用窗口处理:有选中或专注的节点时关闭节点,否则关闭窗口(macOS 上是隐藏);Windows / Linux 上焦点在终端里时,Ctrl+W 交给 shell。

白板工具

直接按单个字母切换,用完保持选中,按 Esc 回到选择工具。

工具 键
选择 V
手形 H
画笔 D
高亮 ⇧D
形状 R
直线 L
箭头 A
文字 T

终端

命令 macOS Windows / Linux 说明
终端内搜索 ⌘F Ctrl+F Windows / Linux 上终端里的 Ctrl+F 归 shell,改从节点头部或命令面板打开搜索
复制 ⌘C Ctrl+Shift+C 有选区时复制;没有选区时 ⌘C 什么也不做,Ctrl+C 照常发送中断
粘贴 ⌘V Ctrl+Shift+V 开启括号粘贴时自动包裹

其余按键(方向键、F1–F12、Home / End、Alt 组合等)原样进入终端。

编辑器

仅在编辑器节点有焦点时生效,输入框里也可用。

命令 macOS Windows / Linux
保存文件 ⌘S Ctrl+S
重命名符号 F2 F2
格式化文件 ⇧⌥F Shift+Alt+F
跳转到定义 F12 F12
查找引用 ⇧F12 Shift+F12
代码操作 ⌘. Ctrl+.
跳转到行 ⌃G Ctrl+G

浏览器节点

仅在浏览器节点有焦点时生效。

命令 macOS Windows / Linux
重新加载页面 ⌘R Ctrl+R
后退 ⌘[ Alt+←
前进 ⌘] Alt+→
定位到地址栏 ⌘L Ctrl+L

源码控制

命令 macOS Windows / Linux 条件
提交 ⌘⏎ Ctrl+Enter 焦点在 Git 窗口的「提交」页内

系统与窗口

按键 平台 行为
⌘Q macOS 退出应用与后台服务
⌘H / ⌥⌘H / ⌘M macOS 隐藏、隐藏其他、最小化
Alt+F4 Windows / Linux 关闭窗口

「显示 / 隐藏主窗口」与「新建终端节点」两个系统全局热键默认没有绑定,在「设置 → 快捷键」里设置后才会向系统注册。

组件内的键

下面这些只在对应控件有焦点或对应状态打开时生效,不可配置,也不受「启用快捷键」影响:

  • Esc:画布回到选择工具、关闭面板与菜单、退出评论模式、取消文件拖放;
  • 按住 Space 平移画布,Shift 加选,Mod+滚轮缩放;
  • 节点标题上按 Enter 或 F2 重命名;
  • 会话视图输入框:Enter 发送,Shift+Enter 换行;
  • 评论框:Mod+Enter 发送,Enter / Tab 选择 @ 提及;
  • 命令面板与快速打开:方向键选择,Enter 确认。

已知冲突与限制

  • 在浏览器里打开的网页版:Ctrl / ⌘+T、Ctrl+W 等是浏览器保留键,页面拦不住;Ctrl+Shift+C、⇧⌘A、Ctrl+Shift+M、Ctrl+Shift+E / H 等可能先被浏览器处理。桌面版不受影响。
  • 浏览器节点:关掉「启用快捷键」后,桌面版仍会把网页里带主修饰键的组合转给画布,这些键在网页里不生效。
  • 服务器上的成员看不到「启用快捷键」总开关,只能改自己这台设备的键位。
  • 手机与平板没有原生按键处理,外接键盘走同一张网页表;iPad 上 Mod 为 ⌘。
  • 同一个组合键在条件同时成立时会冲突,设置页会标出。

Reference

Keyboard shortcuts

Default shortcuts at a glance, split by macOS and Windows / Linux, and how they interact with the terminal, the system and the browser.


This page lists every shortcut in the default configuration. Mod in the tables is ⌘ on macOS and Ctrl on Windows / Linux.

In “Settings → Shortcuts” you can rebind each command, add alternates, set one to none, or turn everything off with “Enable shortcuts” at the top; you can also switch to the other built-in keymap profile.

General rules

  • Terminal control keys belong to the shell: while the terminal has focus, Ctrl (without Shift) or Alt plus a key (such as Ctrl+C, Ctrl+D, Ctrl+R, Alt+B) is never taken by Armadra, even if you bound it to a command. Ctrl+Shift+letter and combinations with ⌘ are not affected.
  • The “Terminal” column says whether the key still belongs to Armadra while the terminal has focus; the “Input” column says whether it still works while an input box or editable area has focus.
  • With “Enable shortcuts” off, the page takes none of the commands below and every key in a terminal goes to the shell; only the window’s and the system’s own keys (⌘W / Ctrl+W, ⌘Q, Alt+F4) and the “Keys inside components” below keep working.

App

Command macOS Windows / Linux Terminal Input
Command palette ⌘K Ctrl+K / Ctrl+Shift+P Yes Yes
Settings ⌘, Ctrl+, Yes Yes
Sidebar ⇧⌘L Ctrl+Shift+L Yes Yes
Explorer ⇧⌘E Ctrl+Shift+E Yes Yes
Source control ⇧⌘G Ctrl+Shift+G Yes Yes
Resources panel ⇧⌘U Ctrl+Shift+U Yes Yes
Quick open ⌘P Ctrl+P Yes Yes
Search in project ⇧⌘H Ctrl+Shift+H Yes Yes

The “Code hosting panel”, “Problems” and “References” panels have no default shortcut; open them from the command palette or their own entry points.

Canvas

Command macOS Windows / Linux
New terminal ⌘T Ctrl+T
New agent ⇧⌘C Ctrl+Shift+C
Focus mode ⇧⌘F Ctrl+Shift+F
Maximise node ⇧⌘⏎ Ctrl+Shift+Enter
Close node ⌘W Ctrl+W
Undo / Redo ⌘Z / ⇧⌘Z Ctrl+Z / Ctrl+Shift+Z
Tidy canvas ⇧⌘A Ctrl+Shift+A
Import Mermaid ⇧⌘M Ctrl+Shift+M
Zoom in / Zoom out ⌘= / ⌘- Ctrl+= / Ctrl+-
Actual size / Fit view ⌘0 / ⌘1 Ctrl+0 / Ctrl+1
Move selection between nodes ⌘←↑→↓ Ctrl+←↑→↓
Delete selection ⌫ / ⌦ Delete / Backspace
Select all / Copy / Cut / Paste ⌘A / ⌘C / ⌘X / ⌘V Ctrl+A / Ctrl+C / Ctrl+X / Ctrl+V
Show grid ⌘’ Ctrl+’
Distraction-free ⌘. Ctrl+.

These keys do not apply while a terminal or an input box has focus (copy and paste inside a terminal are described below). “Close node” with ⌘W / Ctrl+W is handled by the app window: it closes the selected or focused node, and otherwise closes the window (hides it on macOS); on Windows / Linux with the terminal focused, Ctrl+W goes to the shell.

Whiteboard tools

Press a single letter to switch; the tool stays selected until you press Esc to return to the Select tool.

Tool Key
Select V
Hand H
Draw D
Highlighter ⇧D
Shape R
Line L
Arrow A
Text T

Terminal

Command macOS Windows / Linux Note
Find in terminal ⌘F Ctrl+F On Windows / Linux, Ctrl+F in a terminal belongs to the shell; open the search from the node header or the command palette
Copy ⌘C Ctrl+Shift+C Copies when there is a selection; without one ⌘C does nothing and Ctrl+C sends an interrupt as usual
Paste ⌘V Ctrl+Shift+V Wrapped automatically when bracketed paste is on

All other keys (arrows, F1–F12, Home / End, Alt combinations, and so on) go into the terminal unchanged.

Editor

Active only while an editor node has focus, including inside its input areas.

Command macOS Windows / Linux
Save file ⌘S Ctrl+S
Rename symbol F2 F2
Format file ⇧⌥F Shift+Alt+F
Go to definition F12 F12
Find references ⇧F12 Shift+F12
Code actions ⌘. Ctrl+.
Go to line ⌃G Ctrl+G

Browser node

Active only while a browser node has focus.

Command macOS Windows / Linux
Reload page ⌘R Ctrl+R
Back ⌘[ Alt+←
Forward ⌘] Alt+→
Focus the address bar ⌘L Ctrl+L

Source control

Command macOS Windows / Linux Condition
Commit ⌘⏎ Ctrl+Enter Focus is inside the “Commit” tab of the Git window

System and window

Key Platform Behaviour
⌘Q macOS Quit the app and its background service
⌘H / ⌥⌘H / ⌘M macOS Hide, hide others, minimise
Alt+F4 Windows / Linux Close the window

The two system-wide hotkeys “Show / hide the main window” and “New terminal node” are unbound by default and are registered with the system only after you set them in “Settings → Shortcuts”.

Keys inside components

These work only while the relevant control has focus or the relevant state is open; they are not configurable and are not affected by “Enable shortcuts”:

  • Esc: return the canvas to the Select tool, close panels and menus, leave comment mode, cancel a file drag;
  • hold Space to pan the canvas, Shift to add to the selection, Mod+scroll to zoom;
  • Enter or F2 on a node title to rename it;
  • session-view input: Enter sends, Shift+Enter inserts a new line;
  • comment box: Mod+Enter sends, Enter / Tab picks an @ mention;
  • command palette and quick open: arrows to choose, Enter to confirm.

Known conflicts and limits

  • In the web version opened in a browser, Ctrl / ⌘+T, Ctrl+W and similar are reserved by the browser and the page cannot intercept them; Ctrl+Shift+C, ⇧⌘A, Ctrl+Shift+M, Ctrl+Shift+E / H and others may be handled by the browser first. The desktop app is unaffected.
  • Browser nodes: with “Enable shortcuts” off, the desktop app still forwards combinations with the main modifier from web pages to the canvas, so those keys do not work inside the page.
  • Members on a server do not see the “Enable shortcuts” master switch and can only change the keymap of their own device.
  • Phones and tablets have no native key handling; an attached keyboard uses the same web table, and Mod is ⌘ on iPad.
  • The same combination conflicts when its conditions can hold at once; the settings page flags it.

在 GitHub 上编辑本页 Edit this page on GitHub