Documentation
¶
Index ¶
- Constants
- func ConfigDir() (string, error)
- func ConfigPath() (string, error)
- func Save(cfg *Config) error
- func VaultDir() (string, error)
- type BackendsConfig
- type Config
- type GitConfig
- type HooksConfig
- type NotificationsConfig
- type NotionConfig
- type ObsidianConfig
- type SearchConfig
- type SyncConfig
- type TUIConfig
- type VaultConfig
Constants ¶
View Source
const ( DefaultVaultPath = "~/.vault/notes" DefaultEditor = "nvim" DefaultTemplateDir = "~/.vault/templates" DefaultDefaultTemplate = "blank" DefaultSyncInterval = 60 DefaultConflictStrat = "ask" DefaultQueueRetryLimit = 5 DefaultTheme = "dark" DefaultDateFormat = "2006-01-02" DefaultListSort = "modified" DefaultMaxResults = 50 DefaultFuzzy = true DefaultHighlight = true DefaultObsidianSubfolder = "VaultSync" DefaultObsidianWikilinks = true DefaultGitAutoCommit = false DefaultGitCommitMessage = "vault: sync {filename}" )
Variables ¶
This section is empty.
Functions ¶
func ConfigPath ¶
Types ¶
type BackendsConfig ¶
type BackendsConfig struct {
Notion NotionConfig `mapstructure:"notion"`
Obsidian ObsidianConfig `mapstructure:"obsidian"`
Git GitConfig `mapstructure:"git"`
}
type Config ¶
type Config struct {
Vault VaultConfig `mapstructure:"vault"`
Sync SyncConfig `mapstructure:"sync"`
Backends BackendsConfig `mapstructure:"backends"`
TUI TUIConfig `mapstructure:"tui"`
Search SearchConfig `mapstructure:"search"`
Notifications NotificationsConfig `mapstructure:"notifications"`
Hooks HooksConfig `mapstructure:"hooks"`
}
func DefaultConfig ¶
func DefaultConfig() Config
type HooksConfig ¶
type NotificationsConfig ¶
type NotionConfig ¶
type NotionConfig struct {
Enabled bool `mapstructure:"enabled"`
Token string `mapstructure:"token"`
WorkspaceID string `mapstructure:"workspace_id"`
TargetPageID string `mapstructure:"target_page_id"`
DatabaseID string `mapstructure:"database_id"`
SyncDirection string `mapstructure:"sync_direction"`
}
type ObsidianConfig ¶
type SearchConfig ¶
type SyncConfig ¶
type VaultConfig ¶
type VaultConfig struct {
Path string `mapstructure:"path"`
Editor string `mapstructure:"editor"`
AutoDaily bool `mapstructure:"auto_daily"`
TemplateDir string `mapstructure:"template_dir"`
DefaultTemplate string `mapstructure:"default_template"`
WordCountInStatusbar bool `mapstructure:"word_count_in_statusbar"`
}
Click to show internal directories.
Click to hide internal directories.