快捷键
所有快捷键可通过 ~/.autoc/agent/keybindings.json 自定义。编辑后 /reload 生效;/hotkeys 查看当前列表。
按键格式
修饰键+键,修饰键:ctrl、shift、alt。键:字母、数字、escape、enter、tab、f1–f12 等。示例:ctrl+shift+x。
常用默认键
| 操作 | 默认 |
|---|---|
| 提交 | enter |
| 换行 | shift+enter |
| 中止 | escape |
| 退出(空编辑器) | ctrl+d |
| 模型选择 | ctrl+l |
| 模型循环 | ctrl+p / shift+ctrl+p |
| 思考等级 | shift+tab |
| 折叠工具输出 | ctrl+o |
| 后续消息 | alt+enter |
| 外部编辑器 | ctrl+g |
| 粘贴图片(Windows) | alt+v |
全部操作
编辑器光标移动
| 键位 id | 默认按键 | 说明 |
|---|---|---|
tui.editor.cursorUp | up | 光标上移 |
tui.editor.cursorDown | down | 光标下移 |
tui.editor.cursorLeft | left、ctrl+b | 光标左移 |
tui.editor.cursorRight | right、ctrl+f | 光标右移 |
tui.editor.cursorWordLeft | alt+left、ctrl+left、alt+b | 按词左移 |
tui.editor.cursorWordRight | alt+right、ctrl+right、alt+f | 按词右移 |
tui.editor.cursorLineStart | home、ctrl+a | 移到行首 |
tui.editor.cursorLineEnd | end、ctrl+e | 移到行尾 |
tui.editor.jumpForward | ctrl+] | 向前跳转到字符 |
tui.editor.jumpBackward | ctrl+alt+] | 向后跳转到字符 |
tui.editor.pageUp | pageUp | 上翻一页 |
tui.editor.pageDown | pageDown | 下翻一页 |
编辑器删除
| 键位 id | 默认按键 | 说明 |
|---|---|---|
tui.editor.deleteCharBackward | backspace | 向后删除字符 |
tui.editor.deleteCharForward | delete、ctrl+d | 向前删除字符 |
tui.editor.deleteWordBackward | ctrl+w、alt+backspace | 向后删除一词 |
tui.editor.deleteWordForward | alt+d、alt+delete | 向前删除一词 |
tui.editor.deleteToLineStart | ctrl+u | 删除到行首 |
tui.editor.deleteToLineEnd | ctrl+k | 删除到行尾 |
输入
| 键位 id | 默认按键 | 说明 |
|---|---|---|
tui.input.newLine | shift+enter | 插入换行 |
tui.input.submit | enter | 提交输入 |
tui.input.tab | tab | Tab / 自动补全 |
剪切环(Kill Ring)
| 键位 id | 默认按键 | 说明 |
|---|---|---|
tui.editor.yank | ctrl+y | 粘贴最近删除的文本 |
tui.editor.yankPop | alt+y | 在 yank 后循环选择更早的删除内容 |
tui.editor.undo | ctrl+- | 撤销上一次编辑 |
剪贴板与列表选择
| 键位 id | 默认按键 | 说明 |
|---|---|---|
tui.input.copy | ctrl+c | 复制选中内容 |
tui.select.up | up | 选择上移 |
tui.select.down | down | 选择下移 |
tui.select.pageUp | pageUp | 列表上翻页 |
tui.select.pageDown | pageDown | 列表下翻页 |
tui.select.confirm | enter | 确认选择 |
tui.select.cancel | escape、ctrl+c | 取消选择 |
应用
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.interrupt | escape | 取消 / 中止 |
app.clear | ctrl+c | 清空编辑器 |
app.exit | ctrl+d | 退出(编辑器为空时) |
app.suspend | ctrl+z(Windows 原生无默认) | 挂起到后台 |
app.editor.external | ctrl+g | 在外部编辑器中打开($VISUAL 或 $EDITOR) |
app.clipboard.pasteImage | ctrl+v(Windows 为 alt+v) | 从剪贴板粘贴图片 |
会话
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.session.new | (无) | 新建会话(/new) |
app.session.tree | (无) | 打开会话树(/tree) |
app.session.fork | (无) | 分叉会话(/fork) |
app.session.resume | (无) | 打开会话恢复选择器(/resume) |
app.session.togglePath | ctrl+p | 切换路径显示 |
app.session.toggleSort | ctrl+s | 切换排序方式 |
app.session.toggleNamedFilter | ctrl+n | 切换「仅命名」筛选 |
app.session.rename | ctrl+r | 重命名会话 |
app.session.delete | ctrl+d | 删除会话 |
app.session.deleteNoninvasive | ctrl+backspace | 查询为空时删除会话 |
模型与思考
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.model.select | ctrl+l | 打开模型选择器 |
app.model.cycleForward | ctrl+p | 切换到下一个模型 |
app.model.cycleBackward | shift+ctrl+p | 切换到上一个模型 |
app.thinking.cycle | shift+tab | 循环思考等级 |
app.thinking.toggle | ctrl+t | 折叠 / 展开思考块 |
显示与消息队列
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.tools.expand | ctrl+o | 折叠 / 展开工具输出 |
app.message.followUp | alt+enter | 排队后续消息 |
app.message.dequeue | alt+up | 将队列中的消息还原到编辑器 |
会话树导航
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.tree.foldOrUp | ctrl+left、alt+left | 折叠当前分支段,或跳到上一段起点 |
app.tree.unfoldOrDown | ctrl+right、alt+right | 展开当前分支段,或跳到下一段起点或分支末端 |
app.tree.editLabel | shift+l | 编辑选中节点的标签 |
app.tree.toggleLabelTimestamp | shift+t | 切换树中标签的时间戳显示 |
app.tree.filter.default | ctrl+d | 树筛选:默认视图 |
app.tree.filter.noTools | ctrl+t | 树筛选:隐藏工具结果 |
app.tree.filter.userOnly | ctrl+u | 树筛选:仅用户消息 |
app.tree.filter.labeledOnly | ctrl+l | 树筛选:仅带标签条目 |
app.tree.filter.all | ctrl+a | 树筛选:显示全部 |
app.tree.filter.cycleForward | ctrl+o | 向前切换树筛选 |
app.tree.filter.cycleBackward | shift+ctrl+o | 向后切换树筛选 |
限定模型选择器
在 /scoped-models 打开的选择器内使用。
| 键位 id | 默认按键 | 说明 |
|---|---|---|
app.models.save | ctrl+s | 将当前模型选择保存到设置 |
app.models.enableAll | ctrl+a | 启用全部模型(或当前搜索匹配的全部) |
app.models.clearAll | ctrl+x | 清除全部模型(或当前搜索匹配的全部) |
app.models.toggleProvider | ctrl+p | 切换当前提供商下的全部模型 |
app.models.reorderUp | alt+up | 在循环顺序中上移选中模型 |
app.models.reorderDown | alt+down | 在循环顺序中下移选中模型 |
自定义
创建 ~/.autoc/agent/keybindings.json:
json
{
"tui.editor.cursorUp": ["up", "ctrl+p"],
"tui.editor.deleteWordBackward": ["ctrl+w", "alt+backspace"]
}旧版未命名空间 id(如 cursorUp)启动时自动迁移。Windows 原生上 app.suspend 默认无绑定。
Emacs 风格示例
json
{
"tui.editor.cursorUp": ["up", "ctrl+p"],
"tui.editor.cursorDown": ["down", "ctrl+n"],
"tui.editor.cursorLeft": ["left", "ctrl+b"],
"tui.editor.cursorRight": ["right", "ctrl+f"]
}Vim 风格示例
json
{
"tui.editor.cursorUp": ["up", "alt+k"],
"tui.editor.cursorDown": ["down", "alt+j"],
"tui.editor.cursorLeft": ["left", "alt+h"],
"tui.editor.cursorRight": ["right", "alt+l"]
}