has_action
On this page
wakterm.has_action(NAME)#
Returns true if the string NAME is a valid key assignment action variant that can be used with wakterm.action.
This is useful when you want to use a wakterm configuration across multiple different versions of wakterm.
if wakterm.has_action 'PromptInputLine' then
table.insert(config.keys, {
key = 'p',
mods = 'LEADER',
action = wakterm.action.PromptInputLine {
-- other parameters here
},
})
end