2020-10-03 03:42:49 +03:00
|
|
|
[package]
|
|
|
|
name = "mux"
|
|
|
|
version = "0.1.0"
|
|
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
|
|
edition = "2018"
|
|
|
|
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
|
|
|
|
[dependencies]
|
|
|
|
anyhow = "1.0"
|
|
|
|
async-trait = "0.1"
|
2020-10-25 02:40:15 +03:00
|
|
|
base64 = "0.10"
|
2020-10-03 03:42:49 +03:00
|
|
|
bintree = { path = "../bintree" }
|
|
|
|
config = { path = "../config" }
|
2020-10-25 02:40:15 +03:00
|
|
|
crossbeam = "0.7"
|
2020-10-03 03:42:49 +03:00
|
|
|
downcast-rs = "1.0"
|
2020-10-25 02:40:15 +03:00
|
|
|
filedescriptor = { version="0.7", path = "../filedescriptor" }
|
|
|
|
lazy_static = "1.4"
|
2020-10-05 19:11:17 +03:00
|
|
|
libc = "0.2"
|
2020-10-03 03:42:49 +03:00
|
|
|
log = "0.4"
|
lua: add GuiWin and PaneObject proxies for use in script
This commit adds very basic first passes at representing the Pane
and GuiWindow types in lua script.
The `open-uri` event from 9397f2a2dbdb47b43e18e5efdabf3ef8a0b18936
has been redefined to receive `(window, pane, uri)` parameters
instead of its prior very basic `uri` parameter.
A new key assignment `wezterm.action{EmitEvent="event-name"}` is
now available that allows a key binding assignment to emit an arbitrary
event, which in turn allows for triggering an arbitrary lua callback
in response to a key or mouse click.
`EmitEvent` passes the `(window, pane)` from the triggering window and
pane as parameters.
Here's a brief example:
```lua
local wezterm = require 'wezterm';
wezterm.on("my-thingy", function(window, pane)
local dims = pane:get_dimensions();
wezterm.log_error("did my thingy with window " .. window:window_id() ..
" pane " .. pane:pane_id() .. " " .. dims.cols .. "x" .. dims.viewport_rows);
window:perform_action("IncreaseFontSize", pane);
end)
return {
keys = {
{key="E", mods="CTRL", action=wezterm.action{EmitEvent="my-thingy"}},
}
}
```
refs: #223
refs: #225
2020-10-09 23:45:34 +03:00
|
|
|
luahelper = { path = "../luahelper" }
|
2020-10-03 03:42:49 +03:00
|
|
|
portable-pty = { path = "../pty", features = ["serde_support"]}
|
|
|
|
promise = { path = "../promise" }
|
|
|
|
rangeset = { path = "../rangeset" }
|
|
|
|
ratelim= { path = "../ratelim" }
|
|
|
|
regex = "1"
|
|
|
|
serde = {version="1.0", features = ["rc", "derive"]}
|
2020-10-25 02:40:15 +03:00
|
|
|
ssh2 = "0.8"
|
2020-10-03 03:42:49 +03:00
|
|
|
termwiz = { path = "../termwiz" }
|
|
|
|
thiserror = "1.0"
|
|
|
|
url = "2"
|
|
|
|
wezterm-term = { path = "../term", features=["use_serde"] }
|
2020-10-25 02:40:15 +03:00
|
|
|
terminfo = "0.7"
|
|
|
|
unicode-segmentation = "1.6"
|
|
|
|
textwrap = "0.12"
|