Install GitHub

Configuration

On this page

.greplm/config.toml is created by greplm init or on the first greplm index. It controls the walk and indexing:

include = []                       # glob whitelist (empty = all text files)
exclude = ["**/.git/**", "**/node_modules/**", "**/target/**", "**/.greplm/**"]
max_file_size = 4194304            # skip files larger than this (bytes); 0 = no limit
respect_gitignore = true
index_hidden = false
index_binary = false               # index NUL-containing (binary) files, like grep -a
index_empty = false                # index zero-byte files
backend = "auto"                   # auto | rayon | io-uring
merge_threshold = 16               # auto-compact once segments exceed this

Environment overrides

These GREPLM_* variables override the file for one-off runs (no need to edit config.toml):

VariableEffect
GREPLM_MAX_FILE_SIZEOverride max_file_size (bytes)
GREPLM_RESPECT_GITIGNORE1/true or 0/false
GREPLM_INDEX_HIDDEN1/true or 0/false
GREPLM_INDEX_BINARY1/true or 0/false
GREPLM_INDEX_EMPTY1/true or 0/false
GREPLM_LOGLog level (debug, info, warn, …)
GREPLM_NO_SAVINGS1 to disable token-savings recording
GREPLM_SEMANTIC_MODELPath to a Model2Vec model directory (semantic search)

The greplm index flags --index-binary, --index-empty, and --max-file-size set the corresponding env vars for that run.