quickadd
quickadd copied to clipboard
[FEATURE REQUEST] Prompt title when using a suggester
Description
It seems that there are no options to add a title to a prompt when using a suggester in format syntax or in a macro.
Describe the solution you'd like An option to add a title to a prompt.
Hello, are there any news on this Feature Request ?
Thank you :)
I too find it odd that suggester
doesn't have an option for a title when the other prompts do. I haven't used it yet, but It looks like checkboxPrompt
doesn't have a title either. Not exactly a deal breaker, but would make it more obvious what data is being collected. Especially when scripting multiple prompts in a row.
Would love to see that functionality too :)
In case it could help someone, as an alternative before the functionnality gets natively implemented, I'm actually using a trick where the first suggested item acts as the title, eg. :
const number_choices = [
"--- Choose a number ---",
"1",
"2",
"3",
"4"
];
const number_items = [
null,
1,
2,
3,
4
];
const number = await params.quickAddApi.suggester(number_choices, number_items);
// If the data is required
if (number === null) {
throw "Number is required";
}
This is much needed!