You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
***External Configuration:** Key settings (`user_agents`, `default_local_excludes`, `binary_file_patterns`) can be modified in a **`config.json`** file created on first run.
21
+
***External Configuration:** Key settings (`user_agents`, `default_local_excludes`, `binary_file_patterns`) can be modified in a **`settings.json`** file created on first run.
22
22
***Cross-Platform:** Supports Light and Dark themes (detects system theme on Windows, macOS, and Linux).
23
23
24
24
-----
@@ -46,6 +46,25 @@ The application operates in two main modes, selected via radio buttons:
46
46
47
47
-----
48
48
49
+
## 🔧 Advanced Configuration (`settings.json`)
50
+
51
+
The application creates a `settings.json` file on first run in the application data directory (e.g., `%APPDATA%\ContextPacker` on Windows). This file contains settings that are only read once on startup and are intended to be user-managed.
52
+
53
+
| Key | Description | Default Value | Notes |
54
+
| :--- | :--- | :--- | :--- |
55
+
|`logging_level`| Sets the verbosity of the internal log output. |`"INFO"`| Options: `"DEBUG"`, `"INFO"`, `"WARNING"`, `"ERROR"`, `"CRITICAL"`. |
56
+
|`log_max_size_mb`| Maximum size (in megabytes) of the `app.log` file before log rotation occurs. |`3`||
57
+
|`log_backup_count`| Number of backup log files to keep during rotation. |`5`||
58
+
|`user_agents`| A list of strings used by the web crawler to identify itself. |`[...]`| The application cycles through these. |
59
+
|`default_output_format`| The default file extension selected in the Output panel. |`".md"`| Options: `".md"`, `".txt"`, `".xml"`. |
60
+
|`default_local_excludes`| A list of global `fnmatch` patterns automatically applied to local directory scans. |`[".archive/", ".git/", ...]`| These are visible and editable in the 'Excludes' text area. |
61
+
|`binary_file_patterns`| A list of `fnmatch` patterns that are considered binary/image files and can be toggled via the 'Hide Images + Binaries' checkbox. |`[*.png, *.jpg, ...]`||
62
+
|`max_age_cache_days`| The number of days after which old, temporary session and cache directories are automatically deleted on startup. |`7`| Set to a high number to keep all cache files indefinitely. |
63
+
64
+
The file also contains window-state keys (`window_size`, `h_sash_state`, etc.) which are managed automatically by the application on close.
0 commit comments