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
This PR is adding a context bar to manage/view context being sent by the plugin.
You can now manage the context via the completion menu with the `#` trigger.
['<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
@@ -425,6 +427,34 @@ The following editor context is automatically captured and included in your conv
425
427
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.
426
428
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)
427
429
430
+
### Context bar
431
+
432
+
You can quiclkly see the current context items in the context bar at the top of the input window:
You can quickly reference available context items by typing `#` in the input window. This will show a completion menu with all available context items:
441
+
442
+
-**Current File** - The currently focused file in the editor
443
+
-**Selection** - Currently selected text in visual mode
444
+
-**Diagnostics** - LSP diagnostics from the current file
445
+
-**Cursor Data** - Current cursor position and line content
446
+
-**[filename]** - Files that have been mentioned in the conversation
447
+
-**Agents** - Available agents to switch to
448
+
-**Selections** - Previously made selections in visual mode
449
+
450
+
Context items that are not currently available will be shown as disabled in the completion menu.
451
+
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.
0 commit comments