Compare commits
3 Commits
1ff3323c87
...
852f0cc2a5
| Author | SHA1 | Date |
|---|---|---|
|
|
852f0cc2a5 | |
|
|
d27f6b555f | |
|
|
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 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}`];
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue