Skip to content

Commit ec437ab

Browse files
committed
docs(context-bar): add docs for the context-bar/completion
1 parent 2670f6d commit ec437ab

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
@@ -425,6 +425,14 @@ The following editor context is automatically captured and included in your conv
425425
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.
426426
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)
427427

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

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

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

450+
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.
451+
452+
<div align="center">
453+
<img src="https://i.imgur.com/Be89SG7.png" alt="Opencode.nvim context items completion" width="90%" />
454+
</div>
455+
440456
## 🔄 Agents
441457

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

0 commit comments

Comments
 (0)