A user should be able to run code when certain events happend, like having a toast notification when writing the state to a file.
wezterm.on events are a great way to allow a user to have a custom callback for events. wezterm.on should be added where users might want to run a callback function, before and/or after an event like writing the state.
See #25 for more info on this.
The events should be named such that they do not interfer with events from other users or plugins. They should thus have the following structure resurrect.<function_name>.<event_name>. See example here
A user should be able to run code when certain events happend, like having a toast notification when writing the state to a file. wezterm.on events are a great way to allow a user to have a custom callback for events.
wezterm.on
should be added where users might want to run a callback function, before and/or after an event like writing the state.See #25 for more info on this.
The events should be named such that they do not interfer with events from other users or plugins. They should thus have the following structure
resurrect.<function_name>.<event_name>
. See example here