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-12-29 20:21:50 +03:00
|
|
|
base64 = "0.13"
|
2020-10-03 03:42:49 +03:00
|
|
|
bintree = { path = "../bintree" }
|
|
|
|
config = { path = "../config" }
|
2020-12-29 20:21:50 +03:00
|
|
|
crossbeam = "0.8"
|
2020-10-03 03:42:49 +03:00
|
|
|
downcast-rs = "1.0"
|
2021-05-24 00:24:01 +03:00
|
|
|
filedescriptor = { version="0.8", path = "../filedescriptor" }
|
2020-10-25 02:40:15 +03:00
|
|
|
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"]}
|
2021-03-28 03:49:30 +03:00
|
|
|
smol = "1.2"
|
2020-11-02 19:33:01 +03:00
|
|
|
terminfo = "0.7"
|
2020-10-03 03:42:49 +03:00
|
|
|
termwiz = { path = "../termwiz" }
|
2021-06-07 18:32:05 +03:00
|
|
|
textwrap = "0.14"
|
2020-10-03 03:42:49 +03:00
|
|
|
thiserror = "1.0"
|
2020-11-02 19:33:01 +03:00
|
|
|
tmux-cc = { path = "../tmux-cc" }
|
2020-11-24 00:45:38 +03:00
|
|
|
unicode-segmentation = "1.7"
|
2020-10-03 03:42:49 +03:00
|
|
|
url = "2"
|
2021-03-28 03:49:30 +03:00
|
|
|
wezterm-ssh = { path = "../wezterm-ssh" }
|
2020-10-03 03:42:49 +03:00
|
|
|
wezterm-term = { path = "../term", features=["use_serde"] }
|
2021-03-23 08:14:55 +03:00
|
|
|
|
2021-04-23 06:28:46 +03:00
|
|
|
[target.'cfg(any(windows, target_os="linux", target_os="macos"))'.dependencies]
|
2021-03-23 08:14:55 +03:00
|
|
|
sysinfo = "0.16"
|
2021-03-26 23:18:44 +03:00
|
|
|
|
2021-05-29 01:08:21 +03:00
|
|
|
[target."cfg(windows)".dependencies]
|
|
|
|
winapi = { version = "0.3", features = [
|
|
|
|
"handleapi",
|
2021-06-01 08:28:14 +03:00
|
|
|
"processthreadsapi"
|
2021-05-29 01:08:21 +03:00
|
|
|
]}
|
|
|
|
|
2021-03-26 23:18:44 +03:00
|
|
|
[dev-dependencies]
|
|
|
|
k9 = "0.11"
|