MLFlexer / resurrect.wezterm

A plugin to restore windows, tabs and panes for Wezterm inspired by tmux-resurrect
MIT License
33 stars 1 forks source link

Add wezterm.on emitters #27

Closed MLFlexer closed 1 month ago

MLFlexer commented 1 month ago

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

MLFlexer commented 1 month ago

closed by #35