config

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Compiler string `yaml:"compiler"`

	// Default template for standard notes
	DefaultTemplate string `yaml:"default_template"`

	// Template for daily notes (NEW)
	DailyTemplate string `yaml:"daily_template"`

	// Default action for smart entry (open or edit)
	DefaultAction string `yaml:"default_action"`

	Editor     string `yaml:"editor"`
	MaxWorkers int    `yaml:"max_workers"`

	// User-defined command aliases
	Aliases map[string]string `yaml:"aliases,omitempty"`
}

func DefaultConfig

func DefaultConfig() *Config

DefaultConfig returns a config with default values

func Load

func Load(path string) (*Config, error)

Load loads the configuration from the specified path

func (*Config) Save

func (c *Config) Save(path string) error

Save writes the configuration to the specified path

Jump to

Keyboard shortcuts

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