Swap active/saved colors in session list (cyan for active, green for saved)
This commit is contained in:
parent
de40ddd225
commit
e00d1f7d5b
|
|
@ -259,8 +259,8 @@ program
|
|||
const cyan = "\x1b[36m"
|
||||
const white = "\x1b[37m"
|
||||
|
||||
const icons: Record<string, string> = { idle: `${dim}◌${reset}`, active: `${green}◯${reset}`, dirty: `${yellow}◎${reset}`, saved: `${cyan}●${reset}` }
|
||||
const branchColors: Record<string, string> = { idle: dim, active: green, dirty: yellow, saved: cyan }
|
||||
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
|
||||
const prefixWidth = branchWidth + 4
|
||||
|
|
@ -277,7 +277,7 @@ program
|
|||
console.log(`${icon} ${bc}${s.branch.padEnd(branchWidth)}${reset} ${dim}${truncated}${reset}`)
|
||||
}
|
||||
|
||||
console.log(`\n${dim}◌ idle${reset} · ${green}◯ active${reset} · ${yellow}◎ unsaved${reset} · ${cyan}● saved${reset}`)
|
||||
console.log(`\n${dim}◌ idle${reset} · ${cyan}◯ active${reset} · ${yellow}◎ unsaved${reset} · ${green}● saved${reset}`)
|
||||
})
|
||||
|
||||
// ── sandlot open <branch> ─────────────────────────────────────────────
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user