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
@@ -423,6 +425,18 @@ The following editor context is automatically captured and included in your conv
423
425
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.
424
426
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)
425
427
428
+
### Context Items Completion
429
+
430
+
You can quickly reference available context items by typing `#` in the input window. This will show a completion menu with all available context items:
431
+
432
+
-**Current File** - The currently focused file in the editor
433
+
-**Selection** - Currently selected text in visual mode
434
+
-**Diagnostics** - LSP diagnostics from the current file
435
+
-**Cursor Data** - Current cursor position and line content
436
+
-**[filename]** - Files that have been mentioned in the conversation
437
+
438
+
Context items that are not currently available will be shown as disabled in the completion menu.
439
+
426
440
## 🔄 Agents
427
441
428
442
Opencode provides two built-in agents and supports custom ones:
0 commit comments