Skip to content

armgit / cindy

Public Imported from GitHub
0

Consider it done. The open-source AI agent that works out of the box · 想到,就能做到。开源、开箱即用的 AI Agent。

Merge remote-tracking branch 'origin/main' into feat/session-browse-history

WZBbiao75ab3518b58f
diff --cc apps/desktop/src/shared/appShortcuts.ts
index af119033a7,a4e22bcc8e..f82c69a58d
--- a/apps/desktop/src/shared/appShortcuts.ts
+++ b/apps/desktop/src/shared/appShortcuts.ts
@@@ -159,29 -160,23 +162,46 @@@ export const APP_SHORTCUT_DEFINITIONS:
rebindable: true,
getDefaultCombos: (platform) => [modCombo('KeyB', platform)],
},
+ // 任务浏览栈的前进/后退: 与浏览器同一惯例 (⌘[ / ⌘]), 在 ChromeActions
+ // 的左上按钮簇里消费。raw 按键在 macOS 上不会被系统菜单吃掉
+ // (keyboardReserved 不含 Bracket*), webview 内的 ⌘[ 留给浏览器自己的后退。
+ {
+ id: 'session-history-back',
+ scope: 'app',
+ labelKey: 'settings.shortcuts.items.session-history-back.label',
+ descriptionKey: 'settings.shortcuts.items.session-history-back.description',
+ rebindable: true,
+ // 新增默认键位对用户既有改绑让位:老用户把 toggle-sidebar 等动作改绑到 ⌘[ 是
+ // 历史合法绑定,若两个动作同名生效,一次按键会同时切侧栏与后退。
+ yieldsToUserBindings: true,
+ getDefaultCombos: (platform) => [modCombo('BracketLeft', platform)],
+ },
+ {
+ id: 'session-history-forward',
+ scope: 'app',
+ labelKey: 'settings.shortcuts.items.session-history-forward.label',
+ descriptionKey: 'settings.shortcuts.items.session-history-forward.description',
+ rebindable: true,
+ yieldsToUserBindings: true,
+ getDefaultCombos: (platform) => [modCombo('BracketRight', platform)],
+ },
+ // 全局框选截图: Cindy 不在前台也生效,可复制、保存、贴图或交给新任务。默认键避开系统截图
+ // (macOS ⇧⌘3/4/5/6、Windows Win+Shift+S) 与常见 IM 截图键 (Windows: Ctrl+Alt+A、
+ // Alt+A、Ctrl+Shift+A; macOS: 飞书 ⇧⌘A、微信 / QQ ⌃⌘A)。macOS 不用 ⇧⌘S: 它是几乎所有
+ // 应用的「存储为」, 全局注册会把它从每个应用里拿走。暂不支持 Linux (Wayland 无可靠的
+ // 全局快捷键与静默截屏)。
+ {
+ id: 'region-screenshot',
+ scope: 'global',
+ labelKey: 'settings.shortcuts.items.region-screenshot.label',
+ descriptionKey: 'settings.shortcuts.items.region-screenshot.description',
+ rebindable: true,
+ platforms: ['darwin', 'win32'],
+ getDefaultCombos: (platform) =>
+ platform === 'darwin'
+ ? [combo('KeyA', { ctrl: true, shift: true })]
+ : [combo('KeyA', { alt: true, shift: true })],
+ },
{
id: 'cycle-permission-mode',
scope: 'composer',