fix: make selection message more clear
This commit is contained in:
parent
1ff3323c87
commit
c23c0baec1
|
|
@ -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 || 'Start typing to find your IDE...';
|
||||
const placeholder = options.placeholder || 'Type to search...';
|
||||
const hasPlaceholder = userInput === '' && placeholder !== undefined;
|
||||
|
||||
// Show placeholder or user input with cursor
|
||||
|
|
@ -305,7 +305,7 @@ async function autocompleteMultiselect(options) {
|
|||
|
||||
const headerLines = [
|
||||
...`${title}${bar}`.split('\n'),
|
||||
`${bar} ${color.dim('Search:')} ${searchDisplay}${matchCount}`,
|
||||
`${bar} ${searchDisplay}${matchCount}`,
|
||||
...noMatchesLine,
|
||||
...errorLine,
|
||||
];
|
||||
|
|
|
|||
|
|
@ -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: 'Select tools to install:',
|
||||
message: 'Integrate with::',
|
||||
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: `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,
|
||||
initialValues: recommendedInitialValues,
|
||||
required: false,
|
||||
|
|
@ -999,7 +999,7 @@ class UI {
|
|||
|
||||
console.log(
|
||||
chalk.gray(`Directory exists and contains ${files.length} item(s)`) +
|
||||
(hasBmadInstall ? chalk.yellow(` including existing BMAD installation (${path.basename(bmadResult.bmadDir)})`) : ''),
|
||||
(hasBmadInstall ? chalk.yellow(` including existing BMAD installation (${path.basename(bmadResult.bmadDir)})`) : ''),
|
||||
);
|
||||
} else {
|
||||
console.log(chalk.gray('Directory exists and is empty'));
|
||||
|
|
|
|||
Loading…
Reference in New Issue