# WezTerm Gotchas ## Flatpak-installed WezTerm CLI not in PATH `wezterm` CLI binary is not available in PATH when WezTerm is installed via Flatpak. Must invoke as `flatpak run org.wezfurlong.wezterm cli ...`. Scripts should auto-detect both native (`command -v wezterm`) and Flatpak installations. ## Proportional split math for equal-sized panes To split a pane into N equal parts, each split i (0-indexed) uses `percent = (N-1-i)*100/(N-i)`. Example for 3 equal parts: first split at 66%, second at 50%. The `--horizontal` flag creates a column (pane to the right); `--bottom` creates a row (pane below). `wezterm cli split-pane` returns the new pane ID on stdout for subsequent splits.