1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-19 19:31:49 +03:00
wezterm/docs/config/lua/keyassignment/ActivateLastTab.md
Alex Gartrell ee4b4b598c Add ActivateLastTab command
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.
2021-04-02 09:14:59 -07:00

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"},
  }
}