Pure aggregate for Traditional renderer-authored hit regions and TUI leader input.
Summary
Functions
Begins a new space-leader timeout generation.
Returns the renderer-authored click-region value.
Expires only a matching space-leader generation.
Installs one already-correlated click-region value.
Installs click regions from one correlated render.
Records the current space-leader timer handle.
Returns the modeline command under a rendered column.
Resets renderer-authored hit regions.
Resets the current space-leader window.
Returns whether a space-leader window is pending.
Returns the current space-leader timer handle.
Returns the tab-bar command under a rendered cell.
Types
@type t() :: %MingaEditor.Shell.Traditional.InputState{ click_regions: MingaEditor.Shell.Traditional.ClickRegions.t(), space_leader: MingaEditor.Shell.Traditional.SpaceLeader.t() }
Functions
@spec begin_space_leader(t()) :: {MingaEditor.Shell.Traditional.SpaceLeader.generation(), t()}
Begins a new space-leader timeout generation.
@spec click_regions(t()) :: MingaEditor.Shell.Traditional.ClickRegions.t()
Returns the renderer-authored click-region value.
@spec expire_space_leader(t(), MingaEditor.Shell.Traditional.SpaceLeader.generation()) :: {:expired | :stale, t()}
Expires only a matching space-leader generation.
@spec install_click_regions(t(), MingaEditor.Shell.Traditional.ClickRegions.t()) :: t()
Installs one already-correlated click-region value.
@spec install_click_regions( t(), [MingaEditor.Shell.Traditional.Modeline.click_region()], [ MingaEditor.Shell.Traditional.ClickRegions.tab_bar_region() ] ) :: t()
Installs click regions from one correlated render.
@spec install_space_leader_timer( t(), MingaEditor.Shell.Traditional.SpaceLeader.generation(), reference() ) :: t()
Records the current space-leader timer handle.
@spec modeline_command_at(t(), non_neg_integer()) :: atom() | nil
Returns the modeline command under a rendered column.
Resets renderer-authored hit regions.
Resets the current space-leader window.
Returns whether a space-leader window is pending.
Returns the current space-leader timer handle.
@spec tab_bar_command_at(t(), non_neg_integer(), non_neg_integer()) :: MingaEditor.Shell.Traditional.ClickRegions.tab_bar_command() | nil
Returns the tab-bar command under a rendered cell.