Module geometry

Source
Expand description

Pure geometry: scaling tmux cell-coordinates into screen rectangles and hit-testing the cursor against them. No tmux or terminal I/O here.

Functions§

contains
hit
Pane under the cursor; the smallest containing box wins so borders never block selection of an inner pane.
map_rect
Scale a pane’s tmux cell-geometry into the on-screen area.
mpane_at
(window id, pane id) of the mini-pane under the cursor (window mode).
rects_for
tile_at
Window id of the tile under the cursor (window mode).