-
Notifications
You must be signed in to change notification settings - Fork 4
Configuration
LLMDog is designed to work with minimal configuration, but it offers several customization options to tailor the experience to your preferences. This page covers how to configure LLMDog and the available options.
LLMDog stores its configuration in:
-
Linux/macOS:
~/.config/llmdog/config.json -
Windows:
%USERPROFILE%\.config\llmdog\config.json
This file is automatically created with default values when you first run LLMDog.
The config.json file uses the following structure:
{
"showHiddenFiles": false,
"fuzzyThreshold": 0.6,
"maxPreviewSize": 10000,
"colorTheme": "default",
"contentSearchMode": false
}Key: showHiddenFiles
Type: Boolean
Default: false
Description: When set to true, LLMDog will display files and directories that begin with a dot (.), such as .gitignore or .env. When false, these files are hidden by default.
Key: fuzzyThreshold
Type: Float (0.0 to 1.0)
Default: 0.6
Description: Controls the sensitivity of fuzzy search matching. Lower values result in more lenient matching (more results), while higher values require closer matches (fewer results).
Key: maxPreviewSize
Type: Integer (bytes)
Default: 10000
Description: Controls the maximum number of bytes read when previewing a file. Larger values show more content but may slow down the UI when previewing large files.
Key: colorTheme
Type: String
Default: "default"
Description: Specifies the color theme to use. Currently, only the "default" theme is fully implemented.
Key: contentSearchMode
Type: Boolean
Default: false
Description: When set to true, searches will include file contents in addition to file names. This can be toggled during runtime with Ctrl+S.
There are two ways to modify the configuration:
You can edit the config.json file directly with any text editor:
# Linux/macOS
nano ~/.config/llmdog/config.json
# Windows (PowerShell)
notepad $env:USERPROFILE\.config\llmdog\config.jsonMake your changes and save the file. The changes will take effect the next time you launch LLMDog.
Some settings can be toggled while using LLMDog:
-
Content Search Mode: Toggle with
Ctrl+S- This change will be saved to the config file when toggled
LLMDog automatically respects .gitignore files in your project. This behavior is built-in and doesn't require additional configuration.
The application:
- Reads your project's
.gitignorefile - Converts gitignore patterns to regular expressions
- Uses these patterns to identify which files should be marked as "ignored"
Gitignored files:
- Are displayed with faded text in the UI
- Are skipped when selecting a parent directory
- Can still be individually selected if needed
Settings changed during runtime (like toggling content search mode) are saved to the configuration file and will persist between sessions.
If you need to reset to default configuration:
- Exit LLMDog if it's running
- Delete or rename the config file:
# Linux/macOS rm ~/.config/llmdog/config.json # Windows (PowerShell) Remove-Item $env:USERPROFILE\.config\llmdog\config.json
- Launch LLMDog again, and a new default configuration file will be created
LLMDog currently does not use environment variables for configuration. All settings are stored in the config.json file.
-
Preview Size: If you work with large files, consider increasing
maxPreviewSizefor better previews, but be aware this may impact performance. -
Hidden Files: Enable
showHiddenFilesif you frequently need to work with configuration files that start with dots. -
Content Search: Keep
contentSearchModedisabled by default and useCtrl+Sto toggle it on only when needed, as content searching can be slower in large projects. -
Fuzzy Threshold: The default value (0.6) works well for most cases, but you can adjust it if you find search results too broad or too narrow.