@@ -105,6 +105,151 @@ OpenCode has a list of keybinds that you can customize through the OpenCode conf
105105
106106---
107107
108+ ## Keybinds reference
109+
110+ Below is a complete list of all available keybinds with their default values and descriptions.
111+
112+ ### Application & UI
113+
114+ | Keybind | Default | Description |
115+ | ------- | ------- | ----------- |
116+ | ` leader ` | ` ctrl+x ` | Leader key for keybind combinations |
117+ | ` app_exit ` | ` ctrl+c,ctrl+d,<leader>q ` | Exit the application |
118+ | ` editor_open ` | ` <leader>e ` | Open external editor |
119+ | ` theme_list ` | ` <leader>t ` | List available themes |
120+ | ` sidebar_toggle ` | ` <leader>b ` | Toggle sidebar |
121+ | ` scrollbar_toggle ` | ` none ` | Toggle session scrollbar |
122+ | ` username_toggle ` | ` none ` | Toggle username visibility |
123+ | ` status_view ` | ` <leader>s ` | View status |
124+ | ` tool_details ` | ` none ` | Toggle tool details visibility |
125+ | ` tips_toggle ` | ` <leader>h ` | Toggle tips on home screen |
126+ | ` terminal_suspend ` | ` ctrl+z ` | Suspend terminal |
127+ | ` terminal_title_toggle ` | ` none ` | Toggle terminal title |
128+ | ` display_thinking ` | ` none ` | Toggle thinking blocks visibility |
129+
130+ ### Session management
131+
132+ | Keybind | Default | Description |
133+ | ------- | ------- | ----------- |
134+ | ` session_new ` | ` <leader>n ` | Create a new session |
135+ | ` session_list ` | ` <leader>l ` | List all sessions |
136+ | ` session_timeline ` | ` <leader>g ` | Show session timeline |
137+ | ` session_export ` | ` <leader>x ` | Export session to editor |
138+ | ` session_fork ` | ` none ` | Fork session from message |
139+ | ` session_rename ` | ` none ` | Rename session |
140+ | ` session_delete ` | ` none ` | Delete session |
141+ | ` stash_delete ` | ` none ` | Delete stash entry |
142+ | ` session_share ` | ` none ` | Share current session |
143+ | ` session_unshare ` | ` none ` | Unshare current session |
144+ | ` session_interrupt ` | ` escape ` | Interrupt current session |
145+ | ` session_compact ` | ` <leader>c ` | Compact the session |
146+ | ` session_child_cycle ` | ` <leader>right ` | Next child session |
147+ | ` session_child_cycle_reverse ` | ` <leader>left ` | Previous child session |
148+ | ` session_parent ` | ` <leader>up ` | Go to parent session |
149+
150+ ### Messages & navigation
151+
152+ | Keybind | Default | Description |
153+ | ------- | ------- | ----------- |
154+ | ` messages_page_up ` | ` pageup,ctrl+alt+b ` | Scroll messages up by one page |
155+ | ` messages_page_down ` | ` pagedown,ctrl+alt+f ` | Scroll messages down by one page |
156+ | ` messages_line_up ` | ` ctrl+alt+y ` | Scroll messages up by one line |
157+ | ` messages_line_down ` | ` ctrl+alt+e ` | Scroll messages down by one line |
158+ | ` messages_half_page_up ` | ` ctrl+alt+u ` | Scroll messages up by half page |
159+ | ` messages_half_page_down ` | ` ctrl+alt+d ` | Scroll messages down by half page |
160+ | ` messages_first ` | ` ctrl+g,home ` | Navigate to first message |
161+ | ` messages_last ` | ` ctrl+alt+g,end ` | Navigate to last message |
162+ | ` messages_next ` | ` none ` | Navigate to next message |
163+ | ` messages_previous ` | ` none ` | Navigate to previous message |
164+ | ` messages_last_user ` | ` none ` | Navigate to last user message |
165+ | ` messages_copy ` | ` <leader>y ` | Copy message |
166+ | ` messages_undo ` | ` <leader>u ` | Undo message |
167+ | ` messages_redo ` | ` <leader>r ` | Redo message |
168+ | ` messages_toggle_conceal ` | ` <leader>h ` | Toggle code block concealment in messages |
169+
170+ ### Model & agent management
171+
172+ | Keybind | Default | Description |
173+ | ------- | ------- | ----------- |
174+ | ` model_list ` | ` <leader>m ` | List available models |
175+ | ` model_cycle_recent ` | ` f2 ` | Next recently used model |
176+ | ` model_cycle_recent_reverse ` | ` shift+f2 ` | Previous recently used model |
177+ | ` model_cycle_favorite ` | ` none ` | Next favorite model |
178+ | ` model_cycle_favorite_reverse ` | ` none ` | Previous favorite model |
179+ | ` model_provider_list ` | ` ctrl+a ` | Open provider list from model dialog |
180+ | ` model_favorite_toggle ` | ` ctrl+f ` | Toggle model favorite status |
181+ | ` variant_cycle ` | ` ctrl+t ` | Cycle model variants |
182+ | ` agent_list ` | ` <leader>a ` | List agents |
183+ | ` agent_cycle ` | ` tab ` | Next agent |
184+ | ` agent_cycle_reverse ` | ` shift+tab ` | Previous agent |
185+ | ` command_list ` | ` ctrl+p ` | List available commands |
186+
187+ ### Input editing
188+
189+ | Keybind | Default | Description |
190+ | ------- | ------- | ----------- |
191+ | ` input_submit ` | ` return ` | Submit input |
192+ | ` input_newline ` | ` shift+return,ctrl+return,alt+return,ctrl+j ` | Insert newline in input |
193+ | ` input_clear ` | ` ctrl+c ` | Clear input field |
194+ | ` input_paste ` | ` ctrl+v ` | Paste from clipboard |
195+ | ` input_undo ` | ` ctrl+-,super+z ` | Undo in input |
196+ | ` input_redo ` | ` ctrl+.,super+shift+z ` | Redo in input |
197+
198+ ### Cursor movement
199+
200+ | Keybind | Default | Description |
201+ | ------- | ------- | ----------- |
202+ | ` input_move_left ` | ` left,ctrl+b ` | Move cursor left in input |
203+ | ` input_move_right ` | ` right,ctrl+f ` | Move cursor right in input |
204+ | ` input_move_up ` | ` up ` | Move cursor up in input |
205+ | ` input_move_down ` | ` down ` | Move cursor down in input |
206+ | ` input_line_home ` | ` ctrl+a ` | Move to start of line in input |
207+ | ` input_line_end ` | ` ctrl+e ` | Move to end of line in input |
208+ | ` input_visual_line_home ` | ` alt+a ` | Move to start of visual line in input |
209+ | ` input_visual_line_end ` | ` alt+e ` | Move to end of visual line in input |
210+ | ` input_buffer_home ` | ` home ` | Move to start of buffer in input |
211+ | ` input_buffer_end ` | ` end ` | Move to end of buffer in input |
212+ | ` input_word_forward ` | ` alt+f,alt+right,ctrl+right ` | Move word forward in input |
213+ | ` input_word_backward ` | ` alt+b,alt+left,ctrl+left ` | Move word backward in input |
214+
215+ ### Text selection
216+
217+ | Keybind | Default | Description |
218+ | ------- | ------- | ----------- |
219+ | ` input_select_left ` | ` shift+left ` | Select left in input |
220+ | ` input_select_right ` | ` shift+right ` | Select right in input |
221+ | ` input_select_up ` | ` shift+up ` | Select up in input |
222+ | ` input_select_down ` | ` shift+down ` | Select down in input |
223+ | ` input_select_line_home ` | ` ctrl+shift+a ` | Select to start of line in input |
224+ | ` input_select_line_end ` | ` ctrl+shift+e ` | Select to end of line in input |
225+ | ` input_select_visual_line_home ` | ` alt+shift+a ` | Select to start of visual line in input |
226+ | ` input_select_visual_line_end ` | ` alt+shift+e ` | Select to end of visual line in input |
227+ | ` input_select_buffer_home ` | ` shift+home ` | Select to start of buffer in input |
228+ | ` input_select_buffer_end ` | ` shift+end ` | Select to end of buffer in input |
229+ | ` input_select_word_forward ` | ` alt+shift+f,alt+shift+right ` | Select word forward in input |
230+ | ` input_select_word_backward ` | ` alt+shift+b,alt+shift+left ` | Select word backward in input |
231+
232+ ### Text deletion
233+
234+ | Keybind | Default | Description |
235+ | ------- | ------- | ----------- |
236+ | ` input_backspace ` | ` backspace,shift+backspace ` | Backspace in input |
237+ | ` input_delete ` | ` ctrl+d,delete,shift+delete ` | Delete character in input |
238+ | ` input_delete_line ` | ` ctrl+shift+d ` | Delete line in input |
239+ | ` input_delete_to_line_end ` | ` ctrl+k ` | Delete to end of line in input |
240+ | ` input_delete_to_line_start ` | ` ctrl+u ` | Delete to start of line in input |
241+ | ` input_delete_word_forward ` | ` alt+d,alt+delete,ctrl+delete ` | Delete word forward in input |
242+ | ` input_delete_word_backward ` | ` ctrl+w,ctrl+backspace,alt+backspace ` | Delete word backward in input |
243+
244+ ### History
245+
246+ | Keybind | Default | Description |
247+ | ------- | ------- | ----------- |
248+ | ` history_previous ` | ` up ` | Previous history item |
249+ | ` history_next ` | ` down ` | Next history item |
250+
251+ ---
252+
108253## Leader key
109254
110255OpenCode uses a ` leader ` key for most keybinds. This avoids conflicts in your terminal.
0 commit comments