Skip to content

Add tree-grouped alias display in moshmux list - #8

Open
plinde wants to merge 2 commits into
mainfrom
tree-grouped-list
Open

Add tree-grouped alias display in moshmux list#8
plinde wants to merge 2 commits into
mainfrom
tree-grouped-list

Conversation

@plinde

@plinde plinde commented Mar 8, 2026

Copy link
Copy Markdown
Owner

Summary

  • Aliases sharing the same directory are now visually grouped with ASCII tree connectors (├─/└─) in moshmux list
  • Canonical alias is auto-detected: alias referenced as session by others > alias where name == session > alphabetically first
  • Children sharing the parent's session have redundant status/time columns blanked for cleaner output
  • New --no-tree flag disables grouping for flat output

Example output

ALIAS          STATUS     LAST ACTIVE  CONFIGURED
minecraft      detached   13h ago      ~/workspace/minecraft-bedrock
└─ * mc
hpi            attached   1d ago       ~/workspace/screaming-into-the-void
└─ * void
moshmux        detached   14h ago      ~/workspace/moshmux
└─ mux         detached   2m ago       ~/workspace/moshmux

Test plan

  • moshmux list --no-tui — tree-grouped output with ASCII connectors
  • moshmux list --no-tui --no-tree — flat output (original behavior)
  • moshmux list — TUI mode with tree grouping and 2s refresh
  • moshmux upgrade — still works (uses buildRows directly)
  • Build succeeds with no errors

🤖 Generated with Claude Code

plinde and others added 2 commits March 8, 2026 09:38
Aliases sharing the same directory are now visually grouped with ASCII
tree connectors (├─/└─). Canonical alias is auto-detected (session
references > self-session > alphabetical). Children sharing the parent
session have redundant status columns blanked.

Add --no-tree flag to disable grouping for flat output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Renders BorderRow separators between each group (canonical + children)
while keeping rows within a group visually connected without separators.
Uses post-processing to selectively strip intra-group border lines from
lipgloss table output.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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.

1 participant