-
Notifications
You must be signed in to change notification settings - Fork 11
Expand file tree
/
Copy pathconfig.example.toml
More file actions
55 lines (46 loc) · 1.76 KB
/
config.example.toml
File metadata and controls
55 lines (46 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# DankSearch Configuration File
# Default location: ~/.config/danksearch/config.toml
# Override with: dsearch -c /path/to/config.toml
# Index storage path (defaults to $XDG_CACHE_HOME/danksearch/index or ~/.cache/danksearch/index)
index_path = "/home/brandon/.cache/danksearch/index"
# HTTP server listen address
listen_addr = "127.0.0.1:43654"
# Maximum file size to index (in bytes)
max_file_bytes = 2097152 # 2MB
# Number of indexing workers (defaults to CPU count / 2)
worker_count = 4
# Index all file types (not just text files)
index_all_files = true
# File extensions to extract text content from
text_extensions = [
".txt", ".md", ".go", ".py", ".js", ".ts",
".jsx", ".tsx", ".json", ".yaml", ".yml",
".toml", ".html", ".css", ".rs", ".c",
".cpp", ".h", ".java", ".rb", ".php", ".sh",
]
# Multiple paths to index with individual configuration
[[index_paths]]
path = "/home/brandon"
max_depth = 6 # Default depth for home directory
exclude_hidden = true
extract_exif = true # Extract EXIF metadata from images
exclude_dirs = [
"node_modules", "bower_components", "__pycache__", "site-packages",
"venv", ".venv", "target", "dist", "build", "vendor", ".cache"
]
[[index_paths]]
path = "/home/brandon/repos"
max_depth = 6 # Go deeper for repos directory
exclude_hidden = true
extract_exif = false # Skip EXIF extraction for code repos
exclude_dirs = [
"node_modules", "bower_components", "__pycache__", "site-packages",
"venv", ".venv", "target", "dist", "build", "vendor", ".cache",
".git", ".idea", ".vscode"
]
[[index_paths]]
path = "/home/brandon/Documents"
max_depth = 0 # Unlimited depth for Documents
exclude_hidden = false # Include hidden files in Documents
extract_exif = true # Extract EXIF metadata from images
exclude_dirs = []