This provides a generator function and a wrapper for the callback to have access to the most recent workspace used in sessionizer.wezterm.
- Require the plugin:
local history = wezterm.plugin.require "https://github.com/mikkasendke/sessionizer-history.git"- Integrate into your schema:
local schema = {
options = {
callback = history.Wrapper(sessionizer.DefaultCallback), -- so it knows when you select and switch to a workspace.
},
history.MostRecentWorkspace {}, -- generator function to display the most recent workspace
}- Key binding
-- use this:
config.keys = {
-- ...
-- ... other binds
{
key = "m",
mods = "ALT",
action = history.switch_to_most_recent_workspace,
},
-- other binds ...
-- ...
}done :)