A simple plugin to send command to multiple pane in wezterm
I am new to the world of Lua, so feel free to open pull requests to improve the plugin or the documentation.
For Lua type annotations and autocompletion support, this plugin is referenced in wezterm-types by @DrKJeff16.
It can be imported with type annotations as follows:
---@type CmdSender
local cmd_sender = wezterm.plugin.require("https://github.com/aureolebigben/wezterm-cmd-sender")- Require the plugin
local wezterm = require 'wezterm'
local cmd_sender = wezterm.plugin.require("https://github.com/aureolebigben/wezterm-cmd-sender")- Apply the keybinding to config
cmd_sender.apply_to_config(config)If you want to change keybinding or description you can pass opts to apply_to_config
cmd_sender.apply_to_config(config, {
key = 'mapped:s',
mods = 'CMD|SHIFT',
description = 'Enter command to send to all panes of active tab'
})