summaryrefslogtreecommitdiff
path: root/docs/cli/configuration.md
diff options
context:
space:
mode:
authorYuki Okita <[email protected]>2025-08-06 02:01:01 +0900
committerGitHub <[email protected]>2025-08-05 17:01:01 +0000
commit5c8268b6f44e96ef1975999baac71c022875c321 (patch)
treedc9d98a133358b85fac5af5daf3d1c48690093ce /docs/cli/configuration.md
parentd0cda58f1fc23daa1d69f782c5ab9593b30217cb (diff)
feat: Multi-Directory Workspace Support (part 3: configuration in settings.json) (#5354)
Co-authored-by: Allen Hutchison <[email protected]>
Diffstat (limited to 'docs/cli/configuration.md')
-rw-r--r--docs/cli/configuration.md24
1 files changed, 23 insertions, 1 deletions
diff --git a/docs/cli/configuration.md b/docs/cli/configuration.md
index ce9b55bc..5c917a3f 100644
--- a/docs/cli/configuration.md
+++ b/docs/cli/configuration.md
@@ -248,6 +248,26 @@ In addition to a project settings file, a project's `.gemini` directory can cont
"excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
```
+- **`includeDirectories`** (array of strings):
+ - **Description:** Specifies an array of additional absolute or relative paths to include in the workspace context. This allows you to work with files across multiple directories as if they were one. Paths can use `~` to refer to the user's home directory. This setting can be combined with the `--include-directories` command-line flag.
+ - **Default:** `[]`
+ - **Example:**
+ ```json
+ "includeDirectories": [
+ "/path/to/another/project",
+ "../shared-library",
+ "~/common-utils"
+ ]
+ ```
+
+- **`loadMemoryFromIncludeDirectories`** (boolean):
+ - **Description:** Controls the behavior of the `/memory refresh` command. If set to `true`, `GEMINI.md` files should be loaded from all directories that are added. If set to `false`, `GEMINI.md` should only be loaded from the current directory.
+ - **Default:** `false`
+ - **Example:**
+ ```json
+ "loadMemoryFromIncludeDirectories": true
+ ```
+
### Example `settings.json`:
```json
@@ -280,7 +300,9 @@ In addition to a project settings file, a project's `.gemini` directory can cont
"tokenBudget": 100
}
},
- "excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
+ "excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"],
+ "includeDirectories": ["path/to/dir1", "~/path/to/dir2", "../path/to/dir3"],
+ "loadMemoryFromIncludeDirectories": true
}
```