Skip to content

Commit ffb995f

Browse files
committed
docs(context-bar): add docs for the context-bar/completion
1 parent 5dea720 commit ffb995f

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,14 @@ The following editor context is automatically captured and included in your conv
427427
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.
428428
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)
429429

430+
### Context bar
431+
432+
You can quiclkly see the current context items in the context bar at the top of the input window:
433+
434+
<div align="center">
435+
<img src="https://i.imgur.com/c5ze2Fr.png" alt="Opencode.nvim context bar" width="90%" />
436+
</div>
437+
430438
### Context Items Completion
431439

432440
You can quickly reference available context items by typing `#` in the input window. This will show a completion menu with all available context items:
@@ -436,9 +444,17 @@ You can quickly reference available context items by typing `#` in the input win
436444
- **Diagnostics** - LSP diagnostics from the current file
437445
- **Cursor Data** - Current cursor position and line content
438446
- **[filename]** - Files that have been mentioned in the conversation
447+
- **Agents** - Available agents to switch to
448+
- **Selections** - Previously made selections in visual mode
439449

440450
Context items that are not currently available will be shown as disabled in the completion menu.
441451

452+
You should also see the list of files agents and selections in the menu, selecting them in the menu will remove them from the context.
453+
454+
<div align="center">
455+
<img src="https://i.imgur.com/Be89SG7.png" alt="Opencode.nvim context items completion" width="90%" />
456+
</div>
457+
442458
## 🔄 Agents
443459

444460
Opencode provides two built-in agents and supports custom ones:

0 commit comments

Comments
 (0)