Hello!
I recently upgraded from OC 0.15.13 to 0.16.2 and I noticed that up/down navigation in the autocomplete popup shown on #foo doesn't work anymore.
They still work correctly for OC's builtin autocompletes like /foo or @foo, just not for snippets.
(NOTE: I've also now customized the keys used to navigate up/down using keybinds→prompt.autocomplete.{prev,next} in tui.jsonc, but I also checked #foo nav is broken without my custom keybindings)
I checked the release notes of OC 0.16.0 (commits v1.15.13...v1.16.0)
👉 I found a potential commit that changes keybinds handling in OC: anomalyco/opencode#30077 (commit)
What do you think?
Pinging author of that potential PR: @simonklee
(sorry for the direct ping but you might be able to help here 🤔)
A quick look around in this plugin's codebase seems to indicate that autocomplete is implemented with this component:
|
function PromptWithSnippetAutocomplete(props: { |
And the keyboard event handling:
|
const handleNavigationKey = (evt: { |
👉 What needs to be changed in the plugin to support the new autocomplete, potentially with new up/down customizations? 🤔
Or if you can point to up-to-date documentation for this I can try to take a look..
(although I don't have much experience with TypeScript)
Hello!
I recently upgraded from OC 0.15.13 to 0.16.2 and I noticed that up/down navigation in the autocomplete popup shown on
#foodoesn't work anymore.They still work correctly for OC's builtin autocompletes like
/fooor@foo, just not for snippets.(NOTE: I've also now customized the keys used to navigate up/down using
keybinds→prompt.autocomplete.{prev,next}intui.jsonc, but I also checked#foonav is broken without my custom keybindings)I checked the release notes of OC 0.16.0 (commits v1.15.13...v1.16.0)
👉 I found a potential commit that changes keybinds handling in OC: anomalyco/opencode#30077 (commit)
What do you think?
Pinging author of that potential PR: @simonklee
(sorry for the direct ping but you might be able to help here 🤔)
A quick look around in this plugin's codebase seems to indicate that autocomplete is implemented with this component:
opencode-snippets/tui.tsx
Line 321 in b9eb211
And the keyboard event handling:
opencode-snippets/tui.tsx
Line 588 in b9eb211
👉 What needs to be changed in the plugin to support the new autocomplete, potentially with new up/down customizations? 🤔
Or if you can point to up-to-date documentation for this I can try to take a look..
(although I don't have much experience with TypeScript)