Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ConfigPath = func() string { home, err := os.UserHomeDir() if err != nil { return filepath.Join(xdg.ConfigHome, "notebridge", "config.json") } return filepath.Join(home, ".config", "notebridge", "config.json") }
ConfigPath returns the path to the config file Uses ~/.config on all platforms for consistency Can be overridden for testing
View Source
var StateFilePath = func() string { return filepath.Join(xdg.DataHome, "notebridge", "state.json") }
StateFilePath returns the path to the state file Uses platform-specific XDG data directory Can be overridden for testing
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
OrgDir string `json:"org_dir"`
ObsidianDir string `json:"obsidian_dir"`
LogFile string `json:"log_file"`
Interval time.Duration `json:"-"` // Custom JSON handling below
ResolutionStrategy string `json:"resolution_strategy,omitempty"`
ExcludePatterns []string `json:"exclude_patterns,omitempty"`
}
Config represents the notebridge configuration
func (*Config) ExpandPaths ¶
ExpandPaths expands any ~ or relative paths to absolute paths
Click to show internal directories.
Click to hide internal directories.