Documentation
¶
Overview ¶
Package preview renders the three-pane preview (SESSION INFO / RECENT MESSAGES / DIRECTORY) shown inside the picker.
Index ¶
- func ClaudeInfo(sessionID, projectPath, workingDir string) string
- func ClaudeMsgs(sessionID, projectPath string) string
- func DirListing(dir string) string
- func OpencodeInfo(sessionID, directory string) string
- func RenderClaude(w io.Writer, sessionID, projectPath, workingDir string)
- func RenderOpencode(w io.Writer, sessionID, directory string)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClaudeInfo ¶
ClaudeInfo returns the session info fields (Title/Time/Messages/Directory) as a styled string for the info viewport section. No section header is included; the caller provides the header via lipgloss.
func ClaudeMsgs ¶
ClaudeMsgs returns the recent user messages as a styled bullet list. Returns empty string when the JSONL file is missing or has no user messages.
func DirListing ¶
DirListing returns the directory listing as a string. Delegates to listDir; the caller is responsible for providing the section header.
func OpencodeInfo ¶
OpencodeInfo returns the session info fields from the Opencode SQLite DB as a styled string for the info viewport section. Returns empty string when the DB is absent or the session is not found.
func RenderClaude ¶
RenderClaude writes a preview of a Claude Code session to w.
func RenderOpencode ¶
RenderOpencode writes a preview of an Opencode session to w.
Types ¶
This section is empty.