Allow separate when
clauses for each command in a keybinding with multiple commands
#184288
Labels
feature-request
Request for new features or functionality
runCommands
Issues related to command 'runCommands'
Milestone
Currently, it seems that 'when' clauses in keybindings are associated with an entire keybinding rather than the individual commands within it. I suggest associating
when
clauses with commands so that it would be possible in a keybinding with multiple commands to have separatewhen
clauses for each, and whether each command is run in a particular instance depends on whether its respectivewhen
clause is fulfilled.So a keybinding would look something like:
so upon pressing
key
, if onlycondition2
is fulfilled and notcondition1
andcondition3
, then onlycommand2
gets run, and ifcondition1
andcondition2
are both fulfilled and notcondition3
, thencommand1
gets run, and thencommand2
gets run (i.e. sequentially as usual), etc.The text was updated successfully, but these errors were encountered: