config

package
v0.0.0-...-8e2590b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 27, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigPath

func ConfigPath() (string, error)

Types

type AppConfig

type AppConfig struct {
	Theme        string `toml:"theme"`
	VimMode      bool   `toml:"vim_mode"`
	ShowHelp     bool   `toml:"show_help"`
	Rainbow      bool   `toml:"rainbow"`
	GeminiAPIKey string `toml:"gemini_api_key"`
	AIModel      string `toml:"ai_model"`
	MCPEnabled   bool   `toml:"mcp_enabled"`
}

type Config

type Config struct {
	App     AppConfig     `toml:"app"`
	Theme   ThemeConfig   `toml:"theme"`
	Storage StorageConfig `toml:"storage"`
	Sync    SyncConfig    `toml:"sync"`
	Plugins PluginsConfig `toml:"plugins"`
	Keymap  KeymapConfig  `toml:"keymap"`
}

func Default

func Default() Config

func Load

func Load() (Config, error)

func (Config) Save

func (c Config) Save() error

type KeymapConfig

type KeymapConfig struct {
	Palette    string `toml:"palette"`
	TaskSearch string `toml:"task_search"`
	NewTask    string `toml:"new_task"`
	EditTask   string `toml:"edit_task"`
	DeleteTask string `toml:"delete_task"`
	OpenTask   string `toml:"open_task"`
	Back       string `toml:"back"`
	Quit       string `toml:"quit"`

	ViewInbox     string `toml:"view_inbox"`
	ViewToday     string `toml:"view_today"`
	ViewUpcoming  string `toml:"view_upcoming"`
	ViewCompleted string `toml:"view_completed"`
	ViewTag       string `toml:"view_tag"`
	ViewPriority  string `toml:"view_priority"`
	CycleTheme    string `toml:"cycle_theme"`
	OpenPluginDir string `toml:"open_plugin_dir"`
	ManagePlugins string `toml:"manage_plugins"`
	ToggleStrike  string `toml:"toggle_strike"`
	Help          string `toml:"help"`
	Issues        string `toml:"issues"`
	Discussions   string `toml:"discussions"`
	Changelog     string `toml:"changelog"`
	Settings      string `toml:"settings"`
	ImportExport  string `toml:"import_export"`
	AIPanelToggle string `toml:"ai_panel_toggle"`
}

type PluginsConfig

type PluginsConfig struct {
	Enabled bool   `toml:"enabled"`
	Dir     string `toml:"dir"`
}

type StorageConfig

type StorageConfig struct {
	Path string `toml:"path"`
}

type SyncConfig

type SyncConfig struct {
	Enabled  bool   `toml:"enabled"`
	RepoPath string `toml:"repo_path"`
	Remote   string `toml:"remote"`
	Branch   string `toml:"branch"`
	Strategy string `toml:"strategy"`
	AutoPush bool   `toml:"auto_push"`
}

type ThemeConfig

type ThemeConfig struct {
	Bg      string `toml:"bg"`
	Fg      string `toml:"fg"`
	Muted   string `toml:"muted"`
	Border  string `toml:"border"`
	Accent  string `toml:"accent"`
	Good    string `toml:"good"`
	Warn    string `toml:"warn"`
	Bad     string `toml:"bad"`
	Overlay string `toml:"overlay"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL