Browse Source

fix: command shortcuts

Adam 2 months ago
parent
commit
65d7fc3ccd
1 changed files with 8 additions and 2 deletions
  1. 8 2
      packages/desktop/src/pages/session.tsx

+ 8 - 2
packages/desktop/src/pages/session.tsx

@@ -258,12 +258,19 @@ export default function Page() {
       slash: "agent",
       onSelect: () => local.agent.move(1),
     },
+    {
+      id: "agent.cycle.reverse",
+      title: "Cycle agent backwards",
+      description: "Switch to the previous agent",
+      category: "Agent",
+      keybind: "shift+mod+.",
+      onSelect: () => local.agent.move(-1),
+    },
     {
       id: "session.undo",
       title: "Undo",
       description: "Undo the last message",
       category: "Session",
-      keybind: "mod+z",
       slash: "undo",
       disabled: !params.id || visibleUserMessages().length === 0,
       onSelect: async () => {
@@ -293,7 +300,6 @@ export default function Page() {
       title: "Redo",
       description: "Redo the last undone message",
       category: "Session",
-      keybind: "mod+shift+z",
       slash: "redo",
       disabled: !params.id || !info()?.revert?.messageID,
       onSelect: async () => {