mirror of
https://github.com/sst/opencode.git
synced 2025-12-23 10:11:41 +00:00
change default child session cycle keybind to <leader>right, and <leader>left
This commit is contained in:
parent
6f5e3ddfb3
commit
cba239bc8f
4 changed files with 8 additions and 8 deletions
|
|
@ -428,8 +428,8 @@ export namespace Config {
|
|||
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_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()
|
||||
.meta({
|
||||
|
|
|
|||
|
|
@ -81,8 +81,8 @@ class KeybindsConfig:
|
|||
session_unshare: Union[Unset, str] = "none"
|
||||
session_interrupt: Union[Unset, str] = "esc"
|
||||
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_down: Union[Unset, str] = "pgdown"
|
||||
messages_half_page_up: Union[Unset, str] = "ctrl+alt+u"
|
||||
|
|
|
|||
|
|
@ -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:
|
||||
- **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.
|
||||
|
||||
|
|
|
|||
|
|
@ -23,8 +23,8 @@ OpenCode has a list of keybinds that you can customize through the OpenCode conf
|
|||
"session_unshare": "none",
|
||||
"session_interrupt": "escape",
|
||||
"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_down": "pagedown",
|
||||
"messages_half_page_up": "ctrl+alt+u",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue