Compare commits

...

3 Commits

Author SHA1 Message Date
Davor Racić 852f0cc2a5 fix: Remove redundant colon 2026-02-03 17:44:33 +01:00
Davor Racić d27f6b555f fix: formatting 2026-02-03 17:40:22 +01:00
Davor Racić c23c0baec1 fix: make selection message more clear 2026-02-03 17:30:28 +01:00
2 changed files with 4 additions and 9 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 title = `${color.gray(clack.S_BAR)}\n${clack.symbol(this.state)} ${options.message}\n`;
const userInput = this.userInput; const userInput = this.userInput;
const placeholder = options.placeholder || 'Start typing to find your IDE...'; const placeholder = options.placeholder || 'Type to search...';
const hasPlaceholder = userInput === '' && placeholder !== undefined; const hasPlaceholder = userInput === '' && placeholder !== undefined;
// Show placeholder or user input with cursor // Show placeholder or user input with cursor
@ -303,12 +303,7 @@ async function autocompleteMultiselect(options) {
const errorLine = this.state === 'error' ? [`${bar} ${color.yellow(this.error)}`] : []; const errorLine = this.state === 'error' ? [`${bar} ${color.yellow(this.error)}`] : [];
const headerLines = [ const headerLines = [...`${title}${bar}`.split('\n'), `${bar} ${searchDisplay}${matchCount}`, ...noMatchesLine, ...errorLine];
...`${title}${bar}`.split('\n'),
`${bar} ${color.dim('Search:')} ${searchDisplay}${matchCount}`,
...noMatchesLine,
...errorLine,
];
const footerLines = [`${bar} ${color.dim(hints.join(' • '))}`, `${barEnd}`]; 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 sortedInitialValues = sortedTools.filter((ide) => configuredIdes.includes(ide.value)).map((ide) => ide.value);
const upgradeSelected = await prompts.autocompleteMultiselect({ const upgradeSelected = await prompts.autocompleteMultiselect({
message: 'Select tools to install:', message: 'Integrate with',
options: upgradeOptions, options: upgradeOptions,
initialValues: sortedInitialValues, initialValues: sortedInitialValues,
required: false, required: false,
@ -458,7 +458,7 @@ class UI {
const recommendedInitialValues = configuredPreferred.length > 0 ? configuredPreferred : undefined; const recommendedInitialValues = configuredPreferred.length > 0 ? configuredPreferred : undefined;
const recommendedSelected = await prompts.multiselect({ const recommendedSelected = await prompts.multiselect({
message: `Select tools to install ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`, message: `Integrate with ${chalk.dim('(↑/↓ to navigate • SPACE: select • ENTER: confirm)')}:`,
options: recommendedOptions, options: recommendedOptions,
initialValues: recommendedInitialValues, initialValues: recommendedInitialValues,
required: false, required: false,