Introduce performable:
prefix for keybind triggers to passthrough if they would do nothing
#4328
Milestone
performable:
prefix for keybind triggers to passthrough if they would do nothing
#4328
Discussion: #2811
The discussion was focused on
copy
but this could apply to many different actions so I think we should generalize it. Ghostty already has a mechanism inperformBindingAction
to determine if a binding action was performed or not. We can use that.The new prefix
performable:
(similar to other prefixes likeunconsumed:
,all:
,global:
) would be a new modifier with the following effect:Details
performable:
-prefixed triggers will only apply at all if they can be performed. If they can't be performed, they act as if the keybinding doesn't exist. For example, this can be used with copy to copy or send an interrupt signal:This trigger interacts with the other prefixes in the following way:
global:
- No effect. Global actions are always considered performed.all:
- No effect. All actions are always considered performed.unconsumed:
- Only applies if the action is performable. These two sort of cancel each other out so it's odd to use them both, but it doesn't cause problems.The text was updated successfully, but these errors were encountered: