Re-order selection window items with repeating shortcuts

Hey @Andreas_Hegenberg , could you confirm if version 5.468 already includes the submenu identifier? I'm not able to find it in this configuration of the conditional activation group:

I was also trying to make it work by setting a variable when opening the submenu, but I'm afraid I don't know how to do that… Is the screen below the right one? If you could provide some guidance, I would appreciate it. Thank you!

the submenu identifier should already be available in the standard visible_floating_menu_identifiers variable now

Yay, it is! :slight_smile:
Here's the behavior on my side: when I'm inside the submenu, meaning when I see this screen:

cmd+1 now triggers both the first item of the submenu (desired behavior) and the first item of the main menu (undesired)
image

I was hoping when inside the submenu, cmd'+1 would trigger just the item inside the submenu… Any workarounds perhaps?

You need to adapt the condition for the main menu a little bit so it's not active if the submenu is visible:

visible_floating_menu_identifiers CONTAINS "your_main_menu_identifier" AND (NOT (visible_floating_menu_identifiers CONTAINS "your_submenu_identifier"))

I will add a much easier way to assign triggers to floating menus items, but it will still take a few weeks

DAMN! It works :slight_smile: Thank you Andreas! Yes, it's a bit of a gymnastic to get it set up so definietely looking forward to the easier version :slight_smile:

The only thing I'm struggling with now is: when pressing the keyboard shortcut to toggle the main menu (opt cmd K), it brings me again inside the submenu instead of starting in the main menu (desired behavior).

I notice that even with the visibility options on to close after button press, that only applies with actual mouse clicks, and hotkeys cmd+1-3 as triggers don't close the menu.

So to sum up, desired behavior behavior would be:

  • opt cmd K to always trigger the main menu
  • after any hotkey is pressed, menu would close

In 5.469 I have added an option to close submenus:

Alternatively you can add the predefined action "Close Submenu" in your action sequence

1 Like

Andreas, when using the text-selection floating menu and the MarkDown submenu is shown after I close the whole floating menu, then show it again (right away, less then 1-2 secs) the MarkDown submenu is not shown. If this is not the default behavior, why my text-selection menu could act like this - I do not use the "Close Submenu" action?

in the example text-selection menu this is executed explicitly in the menu's "actions executed on disappear"

Hm, it should be here, right?

I meant in the top level menu

1 Like

That use case is intriguing @xidiot . Does your menu appear automatically every time you have text selected? If so, how can you set up that trigger?

Hey @James_Oliver , check this thread

1 Like

Hey @Andreas_Hegenberg, I've tested once again the Choose From List action and as of version 5.469 the fuzzy search bar is still loosing focus once you are inside a Submenu :slight_smile:

Thanks!