From 84ff27fd8e077c1471da379f5e2d85abb14bf612 Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Thu, 19 Feb 2026 11:22:48 -0800 Subject: [PATCH] Remove worktree column from sessions list output --- src/cli.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/cli.ts b/src/cli.ts index eaa1baf..8d93937 100755 --- a/src/cli.ts +++ b/src/cli.ts @@ -170,15 +170,10 @@ program return } - const home = homedir() - const tilde = (p: string) => p.startsWith(home) ? "~" + p.slice(home.length) : p - const branchWidth = Math.max(6, ...sessions.map((s) => s.branch.length)) - const worktreeWidth = Math.max(8, ...sessions.map((s) => tilde(s.worktree).length + 1)) - console.log(`${"BRANCH".padEnd(branchWidth)} ${"WORKTREE".padEnd(worktreeWidth)} PROMPT`) + console.log(`${"BRANCH".padEnd(branchWidth)} PROMPT`) for (const s of sessions) { - const wt = tilde(s.worktree) + "/" - console.log(`${s.branch.padEnd(branchWidth)} ${wt.padEnd(worktreeWidth)} ${s.prompt ?? ""}`) + console.log(`${s.branch.padEnd(branchWidth)} ${s.prompt ?? ""}`) } })