@@ -107,39 +107,41 @@ func (r CommandRegistry) Matches(msg tea.KeyPressMsg, leader bool) []Command {
107107}
108108
109109const (
110- AppHelpCommand CommandName = "app_help"
111- AppExitCommand CommandName = "app_exit"
112- ThemeListCommand CommandName = "theme_list"
113- ProjectInitCommand CommandName = "project_init"
114- EditorOpenCommand CommandName = "editor_open"
115- ToolDetailsCommand CommandName = "tool_details"
116- ThinkingBlocksCommand CommandName = "thinking_blocks"
117- SessionNewCommand CommandName = "session_new"
118- SessionListCommand CommandName = "session_list"
119- SessionShareCommand CommandName = "session_share"
120- SessionUnshareCommand CommandName = "session_unshare"
121- SessionInterruptCommand CommandName = "session_interrupt"
122- SessionCompactCommand CommandName = "session_compact"
123- SessionExportCommand CommandName = "session_export"
124- MessagesPageUpCommand CommandName = "messages_page_up"
125- MessagesPageDownCommand CommandName = "messages_page_down"
126- MessagesHalfPageUpCommand CommandName = "messages_half_page_up"
127- MessagesHalfPageDownCommand CommandName = "messages_half_page_down"
128- MessagesFirstCommand CommandName = "messages_first"
129- MessagesLastCommand CommandName = "messages_last"
130- MessagesCopyCommand CommandName = "messages_copy"
131- MessagesUndoCommand CommandName = "messages_undo"
132- MessagesRedoCommand CommandName = "messages_redo"
133- ModelListCommand CommandName = "model_list"
134- ModelCycleRecentCommand CommandName = "model_cycle_recent"
135- ModelCycleRecentReverseCommand CommandName = "model_cycle_recent_reverse"
136- AgentListCommand CommandName = "agent_list"
137- AgentCycleCommand CommandName = "agent_cycle"
138- AgentCycleReverseCommand CommandName = "agent_cycle_reverse"
139- InputClearCommand CommandName = "input_clear"
140- InputPasteCommand CommandName = "input_paste"
141- InputSubmitCommand CommandName = "input_submit"
142- InputNewlineCommand CommandName = "input_newline"
110+ AppHelpCommand CommandName = "app_help"
111+ AppExitCommand CommandName = "app_exit"
112+ ThemeListCommand CommandName = "theme_list"
113+ ProjectInitCommand CommandName = "project_init"
114+ EditorOpenCommand CommandName = "editor_open"
115+ ToolDetailsCommand CommandName = "tool_details"
116+ ThinkingBlocksCommand CommandName = "thinking_blocks"
117+ SessionNewCommand CommandName = "session_new"
118+ SessionListCommand CommandName = "session_list"
119+ SessionShareCommand CommandName = "session_share"
120+ SessionUnshareCommand CommandName = "session_unshare"
121+ SessionInterruptCommand CommandName = "session_interrupt"
122+ SessionCompactCommand CommandName = "session_compact"
123+ SessionExportCommand CommandName = "session_export"
124+ SessionChildCycleCommand CommandName = "session_child_cycle"
125+ SessionChildCycleReverseCommand CommandName = "session_child_cycle_reverse"
126+ MessagesPageUpCommand CommandName = "messages_page_up"
127+ MessagesPageDownCommand CommandName = "messages_page_down"
128+ MessagesHalfPageUpCommand CommandName = "messages_half_page_up"
129+ MessagesHalfPageDownCommand CommandName = "messages_half_page_down"
130+ MessagesFirstCommand CommandName = "messages_first"
131+ MessagesLastCommand CommandName = "messages_last"
132+ MessagesCopyCommand CommandName = "messages_copy"
133+ MessagesUndoCommand CommandName = "messages_undo"
134+ MessagesRedoCommand CommandName = "messages_redo"
135+ ModelListCommand CommandName = "model_list"
136+ ModelCycleRecentCommand CommandName = "model_cycle_recent"
137+ ModelCycleRecentReverseCommand CommandName = "model_cycle_recent_reverse"
138+ AgentListCommand CommandName = "agent_list"
139+ AgentCycleCommand CommandName = "agent_cycle"
140+ AgentCycleReverseCommand CommandName = "agent_cycle_reverse"
141+ InputClearCommand CommandName = "input_clear"
142+ InputPasteCommand CommandName = "input_paste"
143+ InputSubmitCommand CommandName = "input_submit"
144+ InputNewlineCommand CommandName = "input_newline"
143145)
144146
145147func (k Command ) Matches (msg tea.KeyPressMsg , leader bool ) bool {
@@ -224,6 +226,16 @@ func LoadFromConfig(config *opencode.Config) CommandRegistry {
224226 Keybindings : parseBindings ("<leader>c" ),
225227 Trigger : []string {"compact" , "summarize" },
226228 },
229+ {
230+ Name : SessionChildCycleCommand ,
231+ Description : "cycle to next child session" ,
232+ Keybindings : parseBindings ("ctrl+right" ),
233+ },
234+ {
235+ Name : SessionChildCycleReverseCommand ,
236+ Description : "cycle to previous child session" ,
237+ Keybindings : parseBindings ("ctrl+left" ),
238+ },
227239 {
228240 Name : ToolDetailsCommand ,
229241 Description : "toggle tool details" ,
0 commit comments