1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-03 19:53:40 +03:00
wezterm/lua-api-crates
Wez Furlong 8755e731d3
add __len and __pairs metamethods to wezterm.GLOBALS
Fixes this:

```
> wezterm.GLOBAL.foo = {"bar", "baz"}
> wezterm.GLOBAL.foo
[
    "bar",
    "baz",
]
> #wezterm.GLOBAL.foo
runtime error: [string "repl"]:1: attempt to get length of a userdata value (field 'foo')
stack traceback:
        [string "repl"]:1: in main chunk
>
```

and allows this:

```
> for k, v in pairs(wezterm.GLOBAL.foo) do print(k, v) ; end
```
2023-03-21 21:04:52 -07:00
..
battery fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
color-funcs sync-color-schemes: update for recent gogh schema changes 2023-03-20 11:30:12 -07:00
filesystem fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
json fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
logging config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
mux fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
plugin fix: rewrite . when fetching path in lua plugin crate 2023-03-17 11:57:30 -07:00
procinfo-funcs lua: add wezterm.procinfo module 2022-07-16 08:49:58 -07:00
share-data add __len and __pairs metamethods to wezterm.GLOBALS 2023-03-21 21:04:52 -07:00
spawn-funcs add own open_url crate 2023-03-19 12:44:12 -07:00
ssh-funcs config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
termwiz-funcs fix(clippy): Remove closures where possible 2023-03-19 08:41:38 -07:00
time-funcs time: call_after accepts fractional seconds 2023-03-19 10:29:19 -07:00
window-funcs macos: report max_fps in ScreenInfo 2022-08-19 21:02:51 -07:00
README.md config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00

The crates in this directory provide modules and functions to wezterm's lua config file and interface.

They are registered into the lua config via env-bootstrap.

It is advantageous to build times to have multiple, smaller, crates.