Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultKeyMaxLen = 64
DefaultKeyMaxLen is the default maximum length for keys
View Source
const DefaultKeyPattern = `^[a-z0-9]+(-[a-z0-9]+)*$`
DefaultKeyPattern is the default regex pattern for keys
Variables ¶
This section is empty.
Functions ¶
func LastSegment ¶ added in v2.3.0
LastSegment returns the last segment of a key (after the last `/`). For flat keys (no `/`), returns the key itself.
Types ¶
type Config ¶
type Config struct {
Version int
Types map[model.TypeName]TypeDef
Tags TagConfig
Edges map[model.EdgeType]EdgeDef
Templates TemplateConfig
Editor string // Editor command to use for opening files
}
Config represents the complete touchlog configuration
func LoadConfig ¶
LoadConfig loads and merges configuration from built-in, global, and repo sources Merge precedence: built-in < global < repo
type TagConfig ¶
type TagConfig struct {
Preferred []string
}
TagConfig defines tag-related configuration
type TemplateConfig ¶
type TemplateConfig struct {
Root string
}
TemplateConfig defines template configuration
Click to show internal directories.
Click to hide internal directories.