Save settings to ~/.gemini/settings.json and optionally /your/workspace/.gemini/settings.json (#237)

This commit is contained in:
Jacob Richman
2025-05-01 10:34:07 -07:00
committed by GitHub
parent a18eea8c23
commit 7e8f379dfb
7 changed files with 284 additions and 36 deletions

View File

@@ -37,6 +37,9 @@ export interface RadioButtonSelectProps<T> {
/** Function called when an item is highlighted. Receives the `value` of the selected item. */
onHighlight?: (value: T) => void;
/** Whether this select input is currently focused and should respond to input. */
isFocused?: boolean;
}
/**
@@ -77,6 +80,7 @@ export function RadioButtonSelect<T>({
initialIndex,
onSelect,
onHighlight,
isFocused,
}: RadioButtonSelectProps<T>): React.JSX.Element {
const handleSelect = (item: RadioSelectItem<T>) => {
onSelect(item.value);
@@ -95,6 +99,7 @@ export function RadioButtonSelect<T>({
initialIndex={initialIndex}
onSelect={handleSelect}
onHighlight={handleHighlight}
isFocused={isFocused}
/>
);
}