Quellcode durchsuchen

change default child session cycle keybind to <leader>right, and <leader>left

Aiden Cline vor 3 Monaten
Ursprung
Commit
cba239bc8f

+ 2 - 2
packages/opencode/src/config/config.ts

@@ -428,8 +428,8 @@ export namespace Config {
       input_newline: z.string().optional().default("shift+return,ctrl+j").describe("Insert newline in input"),
       input_newline: z.string().optional().default("shift+return,ctrl+j").describe("Insert newline in input"),
       history_previous: z.string().optional().default("up").describe("Previous history item"),
       history_previous: z.string().optional().default("up").describe("Previous history item"),
       history_next: z.string().optional().default("down").describe("Next history item"),
       history_next: z.string().optional().default("down").describe("Next history item"),
-      session_child_cycle: z.string().optional().default("ctrl+right").describe("Next child session"),
-      session_child_cycle_reverse: z.string().optional().default("ctrl+left").describe("Previous child session"),
+      session_child_cycle: z.string().optional().default("<leader>right").describe("Next child session"),
+      session_child_cycle_reverse: z.string().optional().default("<leader>left").describe("Previous child session"),
     })
     })
     .strict()
     .strict()
     .meta({
     .meta({

+ 2 - 2
packages/sdk/python/src/opencode_ai/models/keybinds_config.py

@@ -81,8 +81,8 @@ class KeybindsConfig:
     session_unshare: Union[Unset, str] = "none"
     session_unshare: Union[Unset, str] = "none"
     session_interrupt: Union[Unset, str] = "esc"
     session_interrupt: Union[Unset, str] = "esc"
     session_compact: Union[Unset, str] = "<leader>c"
     session_compact: Union[Unset, str] = "<leader>c"
-    session_child_cycle: Union[Unset, str] = "ctrl+right"
-    session_child_cycle_reverse: Union[Unset, str] = "ctrl+left"
+    session_child_cycle: Union[Unset, str] = "<leader>right"
+    session_child_cycle_reverse: Union[Unset, str] = "<leader>left"
     messages_page_up: Union[Unset, str] = "pgup"
     messages_page_up: Union[Unset, str] = "pgup"
     messages_page_down: Union[Unset, str] = "pgdown"
     messages_page_down: Union[Unset, str] = "pgdown"
     messages_half_page_up: Union[Unset, str] = "ctrl+alt+u"
     messages_half_page_up: Union[Unset, str] = "ctrl+alt+u"

+ 2 - 2
packages/web/src/content/docs/agents.mdx

@@ -89,8 +89,8 @@ A general-purpose agent for researching complex questions, searching for code, a
      ```
      ```
 
 
 3. **Navigation between sessions**: When subagents create their own child sessions, you can navigate between the parent session and all child sessions using:
 3. **Navigation between sessions**: When subagents create their own child sessions, you can navigate between the parent session and all child sessions using:
-   - **Ctrl+Right** (or your configured `session_child_cycle` keybind) to cycle forward through parent → child1 → child2 → ... → parent
-   - **Ctrl+Left** (or your configured `session_child_cycle_reverse` keybind) to cycle backward through parent ← child1 ← child2 ← ... ← parent
+   - **<Leader>+Right** (or your configured `session_child_cycle` keybind) to cycle forward through parent → child1 → child2 → ... → parent
+   - **<Leader>+Left** (or your configured `session_child_cycle_reverse` keybind) to cycle backward through parent ← child1 ← child2 ← ... ← parent
 
 
    This allows you to seamlessly switch between the main conversation and specialized subagent work.
    This allows you to seamlessly switch between the main conversation and specialized subagent work.
 
 

+ 2 - 2
packages/web/src/content/docs/keybinds.mdx

@@ -23,8 +23,8 @@ OpenCode has a list of keybinds that you can customize through the OpenCode conf
     "session_unshare": "none",
     "session_unshare": "none",
     "session_interrupt": "escape",
     "session_interrupt": "escape",
     "session_compact": "<leader>c",
     "session_compact": "<leader>c",
-    "session_child_cycle": "ctrl+right",
-    "session_child_cycle_reverse": "ctrl+left",
+    "session_child_cycle": "<leader>+right",
+    "session_child_cycle_reverse": "<leader>+left",
     "messages_page_up": "pageup",
     "messages_page_up": "pageup",
     "messages_page_down": "pagedown",
     "messages_page_down": "pagedown",
     "messages_half_page_up": "ctrl+alt+u",
     "messages_half_page_up": "ctrl+alt+u",