Compare commits

..

No commits in common. "852f0cc2a5e773e6852fde517cd61648a3d2e540" and "1ff3323c870e937793bcc033b4f2f47ecd2e73ee" have entirely different histories.

2 changed files with 9 additions and 4 deletions

View File

@ -264,7 +264,7 @@ async function autocompleteMultiselect(options) {
const title = `${color.gray(clack.S_BAR)}\n${clack.symbol(this.state)} ${options.message}\n`;
const userInput = this.userInput;
const placeholder = options.placeholder || 'Type to search...';
const placeholder = options.placeholder || 'Start typing to find your IDE...';
const hasPlaceholder = userInput === '' && placeholder !== undefined;
// Show placeholder or user input with cursor
@ -303,7 +303,12 @@ async function autocompleteMultiselect(options) {
const errorLine = this.state === 'error' ? [`${bar} ${color.yellow(this.error)}`] : [];
const headerLines = [...`${title}${bar}`.split('\n'), `${bar} ${searchDisplay}${matchCount}`, ...noMatchesLine, ...errorLine];
const headerLines = [
...`${title}${bar}`.split('\n'),
`${bar} ${color.dim('Search:')} ${searchDisplay}${matchCount}`,
...noMatchesLine,
...errorLine,
];
const footerLines = [`${bar} ${color.dim(hints.join(' • '))}`, `${barEnd}`];

View File

@ -405,7 +405,7 @@ class UI {
const sortedInitialValues = sortedTools.filter((ide) => configuredIdes.includes(ide.value)).map((ide) => ide.value);
const upgradeSelected = await prompts.autocompleteMultiselect({
message: 'Integrate with',
message: 'Select tools to install:',
options: upgradeOptions,
initialValues: sortedInitialValues,
required: false,
@ -458,7 +458,7 @@ class UI {
const recommendedInitialValues = configuredPreferred.length > 0 ? configuredPreferred : undefined;
const recommendedSelected = await prompts.multiselect({
message: `Integrate with ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`,
message: `Select tools to install ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`,
options: recommendedOptions,
initialValues: recommendedInitialValues,
required: false,