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
Add support for deferring keymap actions to the completion engine when
the completion menu is visible. Introduces defer_to_completion field
for keymap entries, wraps callbacks to feed the original key sequence
to the completion module when visible, updates defaults and README,
and adds unit tests and types for the new behavior.
This should fix#332
- An optional desc: `{'toggle', desc = 'Toggle Opencode' }`
371
+
- An optional defer_to_completion: `{'toggle', defer_to_completion = true }` if true, when completion menu is open, it will defer to the completion keymaps instead of triggering the action
371
372
372
373
#### Disabling Specific Keymaps
373
374
@@ -661,13 +662,14 @@ Example keymap for silent add:
661
662
662
663
**add_visual_selection_inline** inserts the visually selected code directly into the input buffer as a Markdown code block, prefixed with the file path:
663
664
664
-
```
665
+
````
665
666
**`path/to/file.lua`**
666
667
667
668
```lua
668
669
<selected text>
669
-
```
670
-
```
670
+
````
671
+
672
+
````
671
673
672
674
The cursor is left in normal mode in the input buffer so you can type your prompt around the inserted snippet.
673
675
@@ -692,7 +694,7 @@ Run a prompt in a new session using the Plan agent and disabling current file co
692
694
```vim
693
695
:Opencode run new_session "Please help me plan a new feature" agent=plan context.current_file.enabled=false
694
696
:Opencode run "Fix the bug in the current file" model=github-copilot/claude-sonnet-4
0 commit comments