Skip to content

feat(tui): preview split layouts in tabs pane - #5

Merged
Franvy merged 1 commit into
Franvy:mainfrom
davidsanchez222:feat/layout-preview
Apr 19, 2026
Merged

Franvy merged 1 commit into
Franvy:mainfrom
davidsanchez222:feat/layout-preview

Conversation

@davidsanchez222

Copy link
Copy Markdown
Contributor

better visual representation of how the tabs/splits were laid out

old

old

new

new

@Franvy

Franvy commented Apr 15, 2026

Copy link
Copy Markdown
Owner

Thanks a lot for the contribution, @davidsanchez222! 🙌 Got it — I'll review this as soon as I have some time. Appreciate your patience!

@Franvy
Franvy force-pushed the feat/layout-preview branch from bbe149a to b4d984c Compare April 19, 2026 08:28
@Franvy
Franvy merged commit b7b60a3 into Franvy:main Apr 19, 2026
Franvy added a commit that referenced this pull request Apr 19, 2026
Ship the split-layout preview from PR #5 (David Sanchez).

The TUI's right-hand tabs pane now renders a visual split layout for
each saved workspace tab. Single-pane tabs still show their working
directory; multi-pane tabs render a tree of horizontal/vertical splits
using box-drawing characters so you can recognize a workspace from the
shape of its panes before you launch it.

Adds two new public types in `core`:

- `WorkspacePaneLayout` (Leaf / SplitRight / SplitDown enum) describing
  the recursive pane tree.
- `WorkspaceTabLayout` (title + root pane) describing one tab.

`Workspace` gains a `layout: Vec<WorkspaceTabLayout>` field populated
when listing workspaces. Existing `.applescript` files are unchanged on
disk; the layout is parsed at read time, so no migration is needed.

Workspace launch, save / rename / delete, Directory Space, filter UX,
and the Ghostty shortcut flow are all unchanged.
@Franvy

Franvy commented Apr 19, 2026

Copy link
Copy Markdown
Owner

Thanks for another great contribution, @davidsanchez222! 🎉

Rebased onto main (which now contains v1.5.1, including your earlier filtering work from #4). The merge resolved cleanly — your PR contained some of the same test changes as #4, so those duplicates were dropped during rebase, leaving only the new split-layout preview code (which is the bulk of the change).

Released as v1.6.0: https://github.com/Franvy/gtab/releases/tag/v1.6.0

Users can pick it up with brew upgrade gtab. The visual representation in the right-hand pane is a really nice readability win — it makes the workspace list much faster to scan when you have several similar-looking workspaces. Much appreciated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants