Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsRetroTerminalTheme ¶
NormalizeDisplayDensity returns "comfortable" or "compact". Empty or unrecognized values default to "compact". IsRetroTerminalTheme is true for vt52 / vt100 (optional palette overrides in display config).
func NormalizeDisplayDensity ¶
Types ¶
type AIConfig ¶
type AIConfig struct {
Provider string `toml:"provider"` // "openai" | "claude" | "gemini" | "ollama" | ""
OpenAIKey string `toml:"openai_key"`
ClaudeKey string `toml:"claude_key"`
GeminiKey string `toml:"gemini_key"`
OllamaURL string `toml:"ollama_url"`
OllamaModel string `toml:"ollama_model"`
SavePath string `toml:"save_path"`
MarkReadOnSummarize bool `toml:"mark_read_on_summarize"`
}
type Config ¶
type Config struct {
Theme string `toml:"theme"`
Display DisplayConfig `toml:"display"`
Feed FeedConfig `toml:"feed"`
Updates UpdatesConfig `toml:"updates"`
AI AIConfig `toml:"ai"`
Source SourceConfig `toml:"source"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type DisplayConfig ¶
type DisplayConfig struct {
Icons bool `toml:"icons"`
DateFormat string `toml:"date_format"` // "relative" | "absolute"
MarkReadOnOpen bool `toml:"mark_read_on_open"`
MarkReadOnFocus bool `toml:"mark_read_on_focus"`
FocusLine bool `toml:"focus_line"`
DefaultUnreadOnly bool `toml:"default_unread_only"`
ActionableLinks bool `toml:"actionable_links"`
Browser string `toml:"browser"`
Density string `toml:"density"` // "comfortable" | "compact"
VT52 RetroTerminalTweak `toml:"vt52"`
VT100 RetroTerminalTweak `toml:"vt100"`
}
type FeedConfig ¶
type FeedConfig struct {
MaxBodyMiB int `toml:"max_body_mib"`
}
type RetroTerminalTweak ¶
type RetroTerminalTweak struct {
Bg string `toml:"bg"`
Fg string `toml:"fg"`
Accent string `toml:"accent"`
}
RetroTerminalTweak holds optional #rrggbb overrides for vt52 / vt100 built-in themes (empty = default palette).
type SourceConfig ¶
type UpdatesConfig ¶
type UpdatesConfig struct {
CheckOnStartup bool `toml:"check_on_startup"`
CheckIntervalHours int `toml:"check_interval_hours"`
LastCheckedUnix int64 `toml:"last_checked_unix"`
DismissedVersion string `toml:"dismissed_version"`
AvailableVersion string `toml:"available_version"`
AvailableSummary string `toml:"available_summary"`
AvailablePublished int64 `toml:"available_published_unix"`
}
Click to show internal directories.
Click to hide internal directories.