mirror of
https://github.com/QwenLM/qwen-code.git
synced 2026-04-30 20:50:34 +00:00
Support escaping spaces in file paths. (#241)
This commit is contained in:
parent
ca53565240
commit
53ac7952c7
5 changed files with 138 additions and 25 deletions
|
|
@ -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>
|
||||
);
|
||||
})}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue