1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 23:21:08 +03:00
wezterm/lua-api-crates
Wez Furlong 2b298f5f96
mux: pass gui window position through from new mux window
Threads through a GuiPosition from mux window creation to allow it to be
used when the corresponding gui window is created.

SpawnCommand now has an optional position field to use for that purpose.

```lua
wezterm.mux.spawn_window {
  position = {
    x = 10,
    y = 300,
    -- Optional origin to use for x and y.
    -- Possible values:
    -- * "ScreenCoordinateSystem" (this is the default)
    -- * "MainScreen" (the primary or main screen)
    -- * "ActiveScreen" (whichever screen hosts the active/focused window)
    -- * {Named="HDMI-1"} - uses a screen by name. See wezterm.gui.screens()
    -- origin = "ScreenCoordinateSystem"
  },
}
```

refs: https://github.com/wez/wezterm/issues/2976
2023-02-05 21:43:37 -07:00
..
battery config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
color-funcs colors: add base16 indexed colors 16-21 like base16-shell sets 2022-09-08 06:51:01 -07:00
filesystem Fix compiler warning 2022-11-05 09:05:35 -07:00
json json: fix visited hash set 2022-07-25 07:25:41 -07:00
logging config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
mux mux: pass gui window position through from new mux window 2023-02-05 21:43:37 -07:00
plugin Add wezterm.plugin module, allows loading modules from git 2023-01-31 20:07:42 -07:00
procinfo-funcs lua: add wezterm.procinfo module 2022-07-16 08:49:58 -07:00
share-data wezterm.GLOBAL now returns references to stored data 2023-01-24 18:26:14 -07:00
spawn-funcs ensure that we spawn open calls on a background thread 2022-07-11 08:03:37 -07:00
ssh-funcs config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
termwiz-funcs add wezterm cli get-text command 2023-02-05 09:05:48 -07:00
time-funcs lua: add wezterm.time.call_after and wezterm.reload_configuration 2022-07-18 07:37:41 -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.