feat(algorithm): add grid #23

Merged
barrettruth merged 1 commit from feat/grid-clean into main 2026-04-25 18:31:19 +00:00
barrettruth commented 2026-04-25 18:29:17 +00:00

Problem

grid was still missing, even though the shared helper refactor now on main made it straightforward to add without copying the old toggle and relayout boilerplate. Direct CLI use of unsupported operations on no-master layouts also had no visible message path when no tmux client was attached.

Solution

Add scripts/algorithms/grid.sh on top of the shared helper layer using tmux's native tiled layout, document grid in the README, and add integration coverage for both the tiled 2x2 geometry and the missing-promote message. Route user-facing messages through a shared mosaic_show_message helper so they still surface in direct CLI use when there is no attached client.

Verified locally with direnv exec /home/barrett/dev/tmux-mosaic just --justfile /tmp/tmux-mosaic/6-clean/justfile --working-directory /tmp/tmux-mosaic/6-clean ci and the matching build recipe.

Closes #6.

## Problem `grid` was still missing, even though the shared helper refactor now on `main` made it straightforward to add without copying the old toggle and relayout boilerplate. Direct CLI use of unsupported operations on no-master layouts also had no visible message path when no tmux client was attached. ## Solution Add `scripts/algorithms/grid.sh` on top of the shared helper layer using tmux's native `tiled` layout, document `grid` in the README, and add integration coverage for both the tiled 2x2 geometry and the missing-`promote` message. Route user-facing messages through a shared `mosaic_show_message` helper so they still surface in direct CLI use when there is no attached client. Verified locally with `direnv exec /home/barrett/dev/tmux-mosaic just --justfile /tmp/tmux-mosaic/6-clean/justfile --working-directory /tmp/tmux-mosaic/6-clean ci` and the matching `build` recipe. Closes #6.
Sign in to join this conversation.
No description provided.