config

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package config handles the application configuration management.

Package models provides structure for config.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load()

Load sets default configuration values and overrides them with settings from the user's config file if it exists.

Types

type Config

type Config struct {
	RepoPath  string // Absolute path to the git repository root
	NotesPath string // Absolute path to the directory containing notes
	Editor    string // Command to launch the preferred text editor (e.g., "vim", "code")
	Templates string // Path to the directory containing note templates
}

Config holds the global application configuration settings.

var Cfg Config

Cfg is the global configuration instance used throughout the application. It is initialized once during startup.

Jump to

Keyboard shortcuts

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