1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00
wezterm/lua-api-crates
Wez Furlong 8e0f9947d2
fix time.call_after when used inside an event callback
```lua
local wezterm = require 'wezterm'

function user_callback_test(window, pane)
  print("user_callback_test()")
  wezterm.time.call_after(3, function()
    print("Hello again, later")
  end)
end

return {
  keys = {
    { mods = 'CTRL|ALT',
      key = 'u',
      action = wezterm.action_callback(user_callback_test)
    }
  }
}
```

refs: https://github.com/wez/wezterm/issues/3026
2023-03-19 07:22:14 -07:00
..
battery config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
color-funcs fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
filesystem Fix compiler warning 2022-11-05 09:05:35 -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 unnecessary clone/to_string calls 2023-03-16 07:40:12 -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 fix(clippy): Remove unnecessary clone/to_string calls 2023-03-16 07:40:12 -07:00
spawn-funcs deps: open -> 4.0 2023-03-12 20:37:58 -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 fix time.call_after when used inside an event callback 2023-03-19 07:22:14 -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.