Skip to content

Commit 61601c9

Browse files
brtkwrclaude
andcommitted
fix: improve fzf layout and column alignment
- Use tab-separated columns for proper fzf alignment - Move preview panel to bottom (70% height) - Add scroll offset to show selected message - Add tabstop for consistent spacing 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 9bcccdb commit 61601c9

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

main.go

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import (
1515
"time"
1616
)
1717

18-
const version = "0.2.0"
18+
const version = "0.2.1"
1919

2020
// Message represents a conversation message
2121
type Message struct {
@@ -260,8 +260,7 @@ func buildSearchLines(conversations []Conversation) ([]string, map[string]Conver
260260

261261
// Format: id \t date \t project \t message
262262
// Colors: date=dim, project=yellow/bold, message=white
263-
// Use │ separator for visual clarity
264-
line := fmt.Sprintf("%s:%d\t\033[90m%s\033[0m \033[90m│\033[0m \033[1;33m%s\033[0m \033[90m│\033[0m %s",
263+
line := fmt.Sprintf("%s:%d\t\033[90m%s\033[0m\t\033[1;33m%s\033[0m\t%s",
265264
conv.SessionID, i, ts, projectPad, text)
266265
lines = append(lines, line)
267266
}
@@ -505,8 +504,9 @@ func main() {
505504
"--ansi",
506505
"--delimiter=\t",
507506
"--with-nth=2,3,4",
507+
"--tabstop=4",
508508
"--preview", fmt.Sprintf("%s --preview {} {q}", self),
509-
"--preview-window=right:60%:wrap",
509+
"--preview-window=bottom:70%:wrap:+5",
510510
"--header=Search conversations | Enter to resume, Esc to quit",
511511
"--prompt=Search: ",
512512
"--height=90%",

0 commit comments

Comments
 (0)