Skip to content

Commit a803cf8

Browse files
authored
feat(tui): add mouse hover and click support to autocomplete (#7820)
1 parent c526e2d commit a803cf8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

packages/opencode/src/cli/cmd/tui/component/prompt/autocomplete.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -700,6 +700,8 @@ export function Autocomplete(props: {
700700
paddingRight={1}
701701
backgroundColor={index === store.selected ? theme.primary : undefined}
702702
flexDirection="row"
703+
onMouseOver={() => moveTo(index)}
704+
onMouseUp={() => select()}
703705
>
704706
<text fg={index === store.selected ? selectedForeground(theme) : theme.text} flexShrink={0}>
705707
{option().display}

0 commit comments

Comments
 (0)