mirror of
https://github.com/wez/wezterm.git
synced 2024-12-19 19:31:49 +03:00
ee4b4b598c
This replicates `last-window` in tmux. To pull this off, I deliberately store the last tab whenever I'm activating a new one or spawning a new one. I had to do this explicitly rather than hooking set_active, because we end up setting the active tab briefly for some common operations like moving a tab.
189 B
189 B
ActivateLastTab
Activate the last active tab. If there is none, it will do nothing.
return {
keys = {
{key="o", mods="LEADER|CTRL", action="ActivateLastTab"},
}
}