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"
|
2023-01-09 04:49:45 +03:00
|
|
|
base64 = "0.21"
|
2020-10-03 03:42:49 +03:00
|
|
|
bintree = { path = "../bintree" }
|
2022-09-02 19:00:28 +03:00
|
|
|
bitflags = "1.3"
|
2022-01-12 08:39:19 +03:00
|
|
|
chrono = { version = "0.4", features = ["serde"] }
|
2020-10-03 03:42:49 +03:00
|
|
|
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" }
|
2022-10-23 22:07:00 +03:00
|
|
|
finl_unicode = "1.2"
|
2022-01-12 08:39:19 +03:00
|
|
|
hostname = "0.3"
|
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" }
|
2021-07-19 05:10:46 +03:00
|
|
|
metrics = { version="0.17", features=["std"]}
|
2022-08-21 18:51:16 +03:00
|
|
|
mlua = "0.8.3"
|
2022-01-15 18:46:21 +03:00
|
|
|
names = { version = "0.12", default-features = false }
|
2022-09-02 19:00:28 +03:00
|
|
|
nix = {version="0.25", features=["term"]}
|
2022-11-23 19:05:30 +03:00
|
|
|
parking_lot = "0.12"
|
2022-01-14 20:59:20 +03:00
|
|
|
percent-encoding = "2"
|
2020-10-03 03:42:49 +03:00
|
|
|
portable-pty = { path = "../pty", features = ["serde_support"]}
|
2022-01-01 05:30:52 +03:00
|
|
|
procinfo = { path = "../procinfo" }
|
2020-10-03 03:42:49 +03:00
|
|
|
promise = { path = "../promise" }
|
|
|
|
rangeset = { path = "../rangeset" }
|
|
|
|
regex = "1"
|
|
|
|
serde = {version="1.0", features = ["rc", "derive"]}
|
2023-03-30 05:05:13 +03:00
|
|
|
serial = "0.4"
|
2022-02-07 04:32:10 +03:00
|
|
|
shell-words = "1.1"
|
2021-03-28 03:49:30 +03:00
|
|
|
smol = "1.2"
|
2023-03-24 20:12:49 +03:00
|
|
|
terminfo = "0.8"
|
2020-10-03 03:42:49 +03:00
|
|
|
termwiz = { path = "../termwiz" }
|
2022-05-19 08:49:53 +03:00
|
|
|
termwiz-funcs = { path = "../lua-api-crates/termwiz-funcs" }
|
2022-10-24 06:50:47 +03:00
|
|
|
textwrap = "0.16"
|
2020-10-03 03:42:49 +03:00
|
|
|
thiserror = "1.0"
|
|
|
|
url = "2"
|
2021-03-28 03:49:30 +03:00
|
|
|
wezterm-ssh = { path = "../wezterm-ssh" }
|
2022-05-14 18:00:03 +03:00
|
|
|
wezterm-dynamic = { path = "../wezterm-dynamic" }
|
2020-10-03 03:42:49 +03:00
|
|
|
wezterm-term = { path = "../term", features=["use_serde"] }
|
2021-08-23 15:44:49 +03:00
|
|
|
flume = "0.10"
|
2021-03-23 08:14:55 +03:00
|
|
|
|
2021-05-29 01:08:21 +03:00
|
|
|
[target."cfg(windows)".dependencies]
|
2022-12-20 01:23:11 +03:00
|
|
|
ntapi = "0.4"
|
2021-05-29 01:08:21 +03:00
|
|
|
winapi = { version = "0.3", features = [
|
|
|
|
"handleapi",
|
2022-01-01 05:20:51 +03:00
|
|
|
"memoryapi",
|
|
|
|
"psapi",
|
|
|
|
"processthreadsapi",
|
|
|
|
"tlhelp32",
|
2021-05-29 01:08:21 +03:00
|
|
|
]}
|
|
|
|
|
2021-03-26 23:18:44 +03:00
|
|
|
[dev-dependencies]
|
|
|
|
k9 = "0.11"
|