Update list status icons

This commit is contained in:
Chris Wanstrath 2026-02-24 19:02:52 -08:00
parent c00b618706
commit 40cd8f332c

View File

@ -58,7 +58,7 @@ export async function action(opts: { json?: boolean }) {
return
}
const icons: Record<string, string> = { idle: `${dim}${reset}`, active: `${cyan}${reset}`, dirty: `${yellow}${reset}`, saved: `${green}${reset}` }
const icons: Record<string, string> = { idle: `${dim}${reset}`, active: `${cyan}${reset}`, dirty: `${yellow}${reset}`, saved: `${green}${reset}` }
const branchColors: Record<string, string> = { idle: dim, active: cyan, dirty: yellow, saved: green }
const branchWidth = Math.max(6, ...sessions.map((s) => s.branch.length))
const cols = process.stdout.columns || 80
@ -76,5 +76,5 @@ export async function action(opts: { json?: boolean }) {
console.log(`${icon} ${bc}${s.branch.padEnd(branchWidth)}${reset} ${dim}${truncated}${reset}`)
}
console.log(`\n${dim}◌ idle${reset} · ${cyan}◯ active${reset} · ${yellow} unsaved${reset} · ${green}● saved${reset}`)
console.log(`\n${dim}◯ idle${reset} · ${cyan}◎ active${reset} · ${yellow} unsaved${reset} · ${green}● saved${reset}`)
}