Dropdown menu question - view all options?

Hello! New TB user here and I have a question about using the dropdown menu command (or some other similar one).

If I had to write what I'm looking for as a user story, I'd say, "As a TB user I want to create a single shortcut that allows me to view a list of text strings and select one of the strings using a secondary hotkey so that I can efficiently insert text.".

Take inserting a date/time as an example. I want to use one shortcut to choose from several different date/time formats. It's easy enough to set that up in a dropdown menu field. The issue is, when I use the shortcut and the TB window opens to show the form I can only see the options one at a time and have to use the down/up arrows (or mouse) to cycle through options. I'd rather see all the options at once and then just hit a secondary key (like 1 through 9) to select an item in the list.

Is that possible with the dropdown menu or other type of command?

Here's a screenshot of a similar tool in action. When the shortcut is used this form opens and shows all the available date options I've set up. I then just need to hit the 1 - 6 keys to select the matched text string and have it inserted (or I could use up/down arrows and then select enter). From a productivity perspective, using the secondary number selection makes it quicker and more efficient.

hi @Howland_Nate - you could try somthing like this:

  • navigate to the drop down using tab
  • use the down arrow to open the drop-down
  • use the number to select the menu option

{formmenu: value 1; value 2; value 3; default=value 4; formatter=(v)->extractregex(v,"\d* (.*)"); itemformatter=(v,i)->i & " " & v}

Quick note: itemformatter formats each item on the list. In this instance it adds the index of the item. formatter formats the output of the menu. In this instance, it removes the number at the beginning.

Thanks @Dan_Barak1 that's helpful. It solves the quick secondary hotkey, but I was hoping there would also be a way to display all the item options in the list at once. Otherwise, I'll need to cycle through (or remember) what each item is which decreases the efficiency of the process.

If you click on the drop-down, all options are presented. Is that not what you're looking for?

You could also present the items in a note:

{values=["value 1", "value 2", "value 3", "value 4"]}{note}{repeat: for (item,index) in values}
{=index}: {=item}{endrepeat}{endnote}
{formmenu: values={=values}; formatter=(v)->extractregex(v,"\d* (.*)"); itemformatter=(v,i)->i & " " & v}