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
- An optional desc: `{'toggle', desc = 'Toggle Opencode' }`
372
+
- 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
373
372
374
#### Disabling Specific Keymaps
373
375
@@ -661,13 +663,14 @@ Example keymap for silent add:
661
663
662
664
**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
665
664
-
```
666
+
````
665
667
**`path/to/file.lua`**
666
668
667
669
```lua
668
670
<selected text>
669
-
```
670
-
```
671
+
````
672
+
673
+
````
671
674
672
675
The cursor is left in normal mode in the input buffer so you can type your prompt around the inserted snippet.
673
676
@@ -692,7 +695,7 @@ Run a prompt in a new session using the Plan agent and disabling current file co
692
695
```vim
693
696
:Opencode run new_session "Please help me plan a new feature" agent=plan context.current_file.enabled=false
694
697
:Opencode run "Fix the bug in the current file" model=github-copilot/claude-sonnet-4
0 commit comments