config

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2026 License: GPL-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetConfigPath added in v1.0.3

func GetConfigPath() (string, error)

GetConfigPath returns the path to the config file

func Save

func Save(config *Config) error

Save writes config to ~/.config/scout/scout-config.json

Types

type Config

type Config struct {
	SkipDirectories []string          `json:"skip_directories"` // User-configurable directories to skip during search (supports wildcards like "Python*")
	MaxResults      int               `json:"maxResults"`
	MaxDepth        int               `json:"maxDepth"`
	MaxFilesScanned int               `json:"maxFilesScanned"`
	RootPath        string            `json:"root_path"`
	Bookmarks       []string          `json:"bookmarks"`
	ShowHidden      bool              `json:"show_hidden"`
	PreviewEnabled  bool              `json:"preview_enabled"`
	Editor          string            `json:"editor"`
	Frecency        map[string]int    `json:"frecency"`
	LastVisited     map[string]string `json:"last_visited"` // path -> timestamp
}

Config holds all Scout configuration

func Load

func Load() *Config

Load reads config from ~/.config/scout/scout-config.json

Jump to

Keyboard shortcuts

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