Skip to content

A modern terminal with a built-in multiplexer: close it and your sessions keep running. Run shells and tons of AI agents across your machines, then pick them up from desktop, browser, TUI and more. Written in Rust with no UI framework: interface drawn straight on the GPU. No Electron, GPUI or webview.

580 B
Raw Blame

title: wezterm.has_action tags: - utility - version

wezterm.has_action(NAME)

{{since('20230408-112425-69ae8472')}}

Returns true if the string NAME is a valid key assignment action variant that can be used with wezterm.action.

This is useful when you want to use a wezterm configuration across multiple different versions of wezterm.

if wezterm.has_action 'PromptInputLine' then
  table.insert(config.keys, {
    key = 'p',
    mods = 'LEADER',
    action = wezterm.action.PromptInputLine {
      -- other parameters here
    },
  })
end