1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-23 13:21:38 +03:00
wezterm/docs/config/lua/MuxTab/active_pane.md

344 B

tab:active_pane()

{{since('20230408-112425-69ae8472')}}

A convenience accessor for returning the active pane in the tab.

In earlier versions of wezterm, you could obtain this via:

function active_pane(tab)
  for _, item in ipairs(tab:panes_with_info()) do
    if item.is_active then
      return item.pane
    end
  end
end