Open franknoirot opened 6 months ago
Perfect, I like this.
I'll likely do this, but in case someone gets to it before me, here are some steps:
useStateMachineCommands
hook to not filter by the .can()
method of the state machine if the command bar has a search value (or, once implemented, whenever "everything bagel" command bar mode is activated
CommandComboBox
to support showing unreachable commands as disabled options
Often users are just trying to see if a command is possible in the app when they search (such as Arc), and are not expecting to be able to perform the command.
I think we can safely include all possible commands, not just those who guards are satisfied, when a user searches explicitly. If possible, we might even be able to provide a reason it's unavailable or how the user cam get to a state where it would be available (although that's starting to sound like a graph traversal)