You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it would be great if the command palette would 'natively' support submenus to enable an easy way to build some more feature-rich command palettes.
I implemented submenus by manually replacing the assigned command groups and saving the 'history' of groups assigned to the command palette so I can go back via a manually injected back button.
The following code is a snippet of my code that doesn't work as I put it there because of some missing code, but it outlines what I did well enough to understand my submenu implementation.
I second this one. In the current implementation, the command palette is useful for searching links or actions that do not require extra input from the user. For example, I would like to have a command to add a new user to my nuxt 3d game:
At present, I would need to add these creation inputs to another modal that would open from the action selection; it would be nice to keep the user flow inside the command palette.
Another useful thing would be able to add / commands to the search input, like /add-character and then the inputs /add-character name key. Similar UX to Discord commands
Description
Hi,
I think it would be great if the command palette would 'natively' support submenus to enable an easy way to build some more feature-rich command palettes.
I implemented submenus by manually replacing the assigned command groups and saving the 'history' of groups assigned to the command palette so I can go back via a manually injected back button.
The following code is a snippet of my code that doesn't work as I put it there because of some missing code, but it outlines what I did well enough to understand my submenu implementation.
Additional context
The text was updated successfully, but these errors were encountered: