1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 14:22:37 +03:00
wezterm/lua-api-crates
Wez Furlong 50d5f94ab0 color schemes: add alias concept
Various color schemes have been duplicated as they have been added to
different scheme collections.  They don't always have identical names
(eg: some remove spaces) and sometimes they have very different names
(eg: _bash vs. nightfox, or Miu vs. Blazer).

We already detected duplicates from different collections but previously
we would omit those dupes.

This commit allows us to track those duplicates by recording their
aliases.

When we write out our data, we only include "interesting" alias names;
those where the name isn't trivially identical.

Some scheme collections (eg: iterm2 color schemes) have duplicates
(eg: zenbones and zenbones_light are identical) and we have previously
shipped with both of those names, so we special case to emit dupes
for which we have prior version information in order to avoid
breaking backwards compatibility for our users.

In the doc generation we can generate links to the aliases if we
included them, but also note about the other names and how we don't
include them.  That is so that someone searching the docs for say
"_bash" can discover that it is actually a duplicate of "nightfox" and
use nightfox instead.
2022-07-20 07:32:46 -07:00
..
battery config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
color-funcs color schemes: add alias concept 2022-07-20 07:32:46 -07:00
filesystem config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
json add wezterm.json_parse and wezterm.json_encode 2022-07-10 09:30:54 -07:00
logging config: split out lua functions into their own crates 2022-05-19 06:48:09 -07:00
mux add MuxTab:set_zoomed and SetPaneZoomState keyassignment 2022-07-19 05:52:38 -07:00
procinfo-funcs lua: add wezterm.procinfo module 2022-07-16 08:49:58 -07:00
share-data lua: add wezterm.GLOBAL 2022-06-18 21:31:53 -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 wezterm.format: accept "ResetAttributes" to reset attributes 2022-07-09 16:19:30 -07:00
time-funcs lua: add wezterm.time.call_after and wezterm.reload_configuration 2022-07-18 07:37:41 -07:00
window-funcs add wezterm.gui.get_appearance to retrieve dark mode 2022-07-14 16:46:18 -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.