Skip to content

Commit 0285093

Browse files
committed
docs(readme): add sibling and parent session navigation keymaps
1 parent 49d490e commit 0285093

2 files changed

Lines changed: 7 additions & 1 deletion

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,6 +190,8 @@ require('opencode').setup({
190190
['i'] = { 'focus_input', 'n' }, -- Focus on input window and enter insert mode at the end of the input from the output window
191191
['<M-r>'] = { 'cycle_variant', mode = { 'n' } }, -- Cycle through available model variants
192192
['<leader>oS'] = { 'select_child_session' }, -- Select and load a child session
193+
['<leader>oP'] = { 'select_parent_session' }, -- Go to parent session
194+
['<leader>oB'] = { 'select_sibling_session' }, -- Select sibling session (children of same parent)
193195
['<leader>oD'] = { 'debug_message' }, -- Open raw message in new buffer for debugging
194196
['<leader>oO'] = { 'debug_output' }, -- Open raw output in new buffer for debugging
195197
['<leader>ods'] = { 'debug_session' }, -- Open raw session in new buffer for debugging
@@ -603,7 +605,9 @@ The plugin provides the following actions that can be triggered via keymaps, com
603605
| Toggle focus opencode / last window | `<leader>ot` | `:Opencode toggle focus` | `require('opencode.api').toggle_focus()` |
604606
| Close UI windows | `<leader>oq` | `:Opencode close` | `require('opencode.api').close()` |
605607
| Select and load session | `<leader>os` | `:Opencode session select` | `require('opencode.api').select_session()` |
606-
| **Select and load child session** | `<leader>oS` | `:Opencode session select_child` | `require('opencode.api').select_child_session()` |
608+
| **Select and load child session** | `<leader>oS` | `:Opencode session child` | `require('opencode.api').select_child_session()` |
609+
| **Select sibling session** | `<leader>oB` | `:Opencode session sibling` | `require('opencode.api').select_sibling_session()` |
610+
| **Go to parent session** | `<leader>oP` | `:Opencode session parent` | `require('opencode.api').select_parent_session()` |
607611
| Open timeline picker (navigate/undo/redo/fork to message) | `<leader>oT` | `:Opencode timeline` | `require('opencode.api').timeline()` |
608612
| Browse code references from conversation | `gr` (window) | `:Opencode references` / `/references` | `require('opencode.api').references()` |
609613
| Configure provider and model | `<leader>op` | `:Opencode configure provider` | `require('opencode.api').configure_provider()` |

lua/opencode/api.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ local action_groups = {
4242
session = {
4343
open_input_new_session = session.open_input_new_session,
4444
select_child_session = session.select_child_session,
45+
select_sibling_session = session.select_sibling_session,
46+
select_parent_session = session.select_parent_session,
4547
share = session.share,
4648
unshare = session.unshare,
4749
initialize = session.initialize,

0 commit comments

Comments
 (0)