From 1edc7b92fb8c05bde96f0aed13f818a48dbca708 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 19 Feb 2026 13:14:24 -0800 Subject: [PATCH] Add header and legend to session list output --- src/cli.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/cli.ts b/src/cli.ts index 440d35c..b8657da 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -216,6 +216,8 @@ program const cols = process.stdout.columns || 80 const prefixWidth = branchWidth + 4 + console.log(` ${"BRANCH".padEnd(branchWidth)} PROMPT`) + for (const s of sessions) { const prompt = s.prompt ?? "" const icon = icons[statuses[s.branch]] @@ -223,6 +225,8 @@ program const truncated = maxPrompt > 3 && prompt.length > maxPrompt ? prompt.slice(0, maxPrompt - 3) + "..." : prompt console.log(`${icon} ${s.branch.padEnd(branchWidth)} ${truncated}`) } + + console.log(`\n◌ idle · ◯ active · ◎ unsaved · ● saved`) }) // ── sandlot open ─────────────────────────────────────────────