You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
['<C-i>'] = { 'focus_input', mode= { 'n', 'i' } }, -- Focus on input window and enter insert mode at the end of the input from the output window
135
137
['<tab>'] = { 'toggle_pane', mode= { 'n', 'i' } }, -- Toggle between input and output panes
136
138
['<up>'] = { 'prev_prompt_history', mode= { 'n', 'i' } }, -- Navigate to previous prompt in history
137
139
['<down>'] = { 'next_prompt_history', mode= { 'n', 'i' } }, -- Navigate to next prompt in history
@@ -422,6 +424,18 @@ The following editor context is automatically captured and included in your conv
422
424
You can reference files in your project directly in your conversations with Opencode. This is useful when you want to ask about or provide context about specific files. Type `@` in the input window to trigger the file picker.
423
425
Supported pickers include [`fzf-lua`](https://github.com/ibhagwan/fzf-lua), [`telescope`](https://github.com/nvim-telescope/telescope.nvim), [`mini.pick`](https://github.com/echasnovski/mini.nvim/blob/main/readmes/mini-pick.md), [`snacks`](https://github.com/folke/snacks.nvim/blob/main/docs/picker.md)
424
426
427
+
### Context Items Completion
428
+
429
+
You can quickly reference available context items by typing `#` in the input window. This will show a completion menu with all available context items:
430
+
431
+
-**Current File** - The currently focused file in the editor
432
+
-**Selection** - Currently selected text in visual mode
433
+
-**Diagnostics** - LSP diagnostics from the current file
434
+
-**Cursor Data** - Current cursor position and line content
435
+
-**[filename]** - Files that have been mentioned in the conversation
436
+
437
+
Context items that are not currently available will be shown as disabled in the completion menu.
438
+
425
439
## 🔄 Agents
426
440
427
441
Opencode provides two built-in agents and supports custom ones:
0 commit comments