Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -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...
Expand Down
12 changes: 6 additions & 6 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -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
Expand Down
Loading