Support escaping spaces in file paths. (#241)

This commit is contained in:
Jacob Richman
2025-05-01 18:02:04 -07:00
committed by GitHub
parent ca53565240
commit 53ac7952c7
5 changed files with 138 additions and 25 deletions

View File

@@ -6,9 +6,12 @@
import React from 'react';
import { Box, Text } from 'ink';
export interface Suggestion {
label: string;
value: string;
}
interface SuggestionsDisplayProps {
suggestions: string[];
suggestions: Suggestion[];
activeIndex: number;
isLoading: boolean;
width: number;
@@ -62,7 +65,7 @@ export function SuggestionsDisplay({
color={isActive ? 'black' : 'white'}
backgroundColor={isActive ? 'blue' : undefined}
>
{suggestion}
{suggestion.label}
</Text>
);
})}