From 8c06ccc74b880f6a77572f2c2d9256fee25edd2e Mon Sep 17 00:00:00 2001 From: Bharat Kunwar Date: Wed, 23 Sep 2026 20:38:08 +0545 Subject: [PATCH] fix: put SIZE before CTX in the list Column order is now TOPIC, SIZE, CTX, MSGS, HITS, so the two "how big is this session" numbers sit together. Co-Authored-By: Claude Opus 5.5 (1M context) Claude-Session: https://claude.ai/code/session_01JUmkVYwbkobda1AnHuwFDE --- AGENTS.md | 6 +++--- main.go | 12 ++++++------ 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/AGENTS.md b/AGENTS.md index 8d17aee..f29de6b 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -93,10 +93,10 @@ Install the release locally: `brew update && brew upgrade ccs`. ccs · claude code search Resume:Enter Fork:Ctrl+F Rename:Ctrl+R Delete:Ctrl+D Prune:Ctrl+X Scroll:Ctrl+J/K Exit:Esc > type to search... (N/total) - WHEN PROJECT TOPIC CTX MSGS HITS SIZE + WHEN PROJECT TOPIC SIZE CTX MSGS HITS ────────────────────────────────────────────────────────────────────────────────────── - 2h ago project-name ● Refactor auth flow ✍ 281k 42 3 1.2GB -> 3h ago selected This one is selected 92k 28 1 12MB + 2h ago project-name ● Refactor auth flow ✍ 1.2GB 281k 42 3 +> 3h ago selected This one is selected 12MB 92k 28 1 ────────────────────────────────────────────────────────────────────────────────────── Project: /path/to/project Session: abc123... diff --git a/main.go b/main.go index dcd51f5..18c0066 100644 --- a/main.go +++ b/main.go @@ -633,7 +633,7 @@ func (m model) View() string { // Column headers b.WriteString(fmt.Sprintf(" \033[90m%-*s %-*s %-*s %*s %*s %*s %*s\033[0m\n", - colWhen, "WHEN", colProject, "PROJECT", m.topicColWidth(), strings.Repeat(" ", colMarks)+"TOPIC", colCtx, "CTX", colMsgs, "MSGS", colHits, "HITS", colSize, "SIZE")) + colWhen, "WHEN", colProject, "PROJECT", m.topicColWidth(), strings.Repeat(" ", colMarks)+"TOPIC", colSize, "SIZE", colCtx, "CTX", colMsgs, "MSGS", colHits, "HITS")) b.WriteString(strings.Repeat("─", m.width)) b.WriteString("\n") @@ -745,15 +745,15 @@ func (m model) formatListItem(item listItem, selected bool) string { ctx := formatTokens(item.conv.ContextTokens) - // Format: when | project | topic | ctx | msgs | hits | size (aligned columns) + // Format: when | project | topic | size | ctx | msgs | hits (aligned columns) if selected { - return fmt.Sprintf("%-*s %-*s %s%-*s %*s %*d %*d %*s", - colWhen, when, colProject, project, marks, tw-colMarks, topic, colCtx, ctx, colMsgs, msgs, colHits, hits, colSize, size) + return fmt.Sprintf("%-*s %-*s %s%-*s %*s %*s %*d %*d", + colWhen, when, colProject, project, marks, tw-colMarks, topic, colSize, size, colCtx, ctx, colMsgs, msgs, colHits, hits) } // Pad before colouring so the escape codes don't eat into the column width. topic = colouredMarks + padRight(topic, tw-colMarks) - return fmt.Sprintf("\033[90m%-*s\033[0m \033[1;33m%-*s\033[0m %s \033[34m%*s\033[0m %*d \033[36m%*d\033[0m \033[35m%*s\033[0m", - colWhen, when, colProject, project, topic, colCtx, ctx, colMsgs, msgs, colHits, hits, colSize, size) + return fmt.Sprintf("\033[90m%-*s\033[0m \033[1;33m%-*s\033[0m %s \033[35m%*s\033[0m \033[34m%*s\033[0m %*d \033[36m%*d\033[0m", + colWhen, when, colProject, project, topic, colSize, size, colCtx, ctx, colMsgs, msgs, colHits, hits) } // buildPreviewLines builds the scrollable message lines of a conversation