quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

[FEATURE REQUEST] Prompt title when using a suggester

Open Elaws opened this issue 2 years ago • 4 comments

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.

Elaws avatar Feb 15 '22 13:02 Elaws

Hello, are there any news on this Feature Request ?

Thank you :)

Elaws avatar Nov 26 '22 17:11 Elaws

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.

tauren avatar Nov 28 '22 03:11 tauren

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";
}

LilaRest avatar Dec 11 '22 00:12 LilaRest

This is much needed!

FeralFlora avatar Nov 28 '23 21:11 FeralFlora