Type
Filter (and)
Function Signature
(hook-fn cmd args)Description
Used by the command manager to determine whether a command can be executed. cmd is the command's name, and args is a tuple containing the command's arguments.
hook-fn should return true if the command can be executed, or false otherwise.
Special keymap commands, such as :push-keymap and :pop-keymap, will not trigger this hook.