REFERENCE · ENVIRONMENT
Configuration
Configuration files
The default user lexicon is $XDG_CONFIG_HOME/kfind/lexicon.toml, then $HOME/.config/kfind/lexicon.toml.
There is no general file that stores all search options. Reproducible scripts and agent skills specify them explicitly.
Environment variables
KFIND_DATA_DIR selects the full-POS and component directory; KFIND_USER_LEXICON selects a user lexicon.
LC_ALL, LC_MESSAGES, and LANG affect only human-readable diagnostics, never options or JSON fields.
Precedence
Explicit --data-dir and --user-lexicon override the environment variables. Installation and default config paths follow.
An invalid explicit path raises an error instead of falling through to another candidate.