mirror of
https://github.com/google-gemini/gemini-cli.git
synced 2026-05-13 05:12:55 -07:00
docs(cli): fix includeDirectories nesting in configuration.md (#15067)
This commit is contained in:
+16
-10
@@ -358,7 +358,7 @@ contain other project-specific files related to Gemini CLI's operation, such as:
|
|||||||
"excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
|
"excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"]
|
||||||
```
|
```
|
||||||
|
|
||||||
- **`includeDirectories`** (array of strings):
|
- **`context.includeDirectories`** (array of strings):
|
||||||
- **Description:** Specifies an array of additional absolute or relative paths
|
- **Description:** Specifies an array of additional absolute or relative paths
|
||||||
to include in the workspace context. This allows you to work with files
|
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
|
across multiple directories as if they were one. Paths can use `~` to refer
|
||||||
@@ -367,14 +367,16 @@ contain other project-specific files related to Gemini CLI's operation, such as:
|
|||||||
- **Default:** `[]`
|
- **Default:** `[]`
|
||||||
- **Example:**
|
- **Example:**
|
||||||
```json
|
```json
|
||||||
"includeDirectories": [
|
"context": {
|
||||||
"/path/to/another/project",
|
"includeDirectories": [
|
||||||
"../shared-library",
|
"/path/to/another/project",
|
||||||
"~/common-utils"
|
"../shared-library",
|
||||||
]
|
"~/common-utils"
|
||||||
|
]
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- **`loadMemoryFromIncludeDirectories`** (boolean):
|
- **`context.loadMemoryFromIncludeDirectories`** (boolean):
|
||||||
- **Description:** Controls the behavior of the `/memory refresh` command. If
|
- **Description:** Controls the behavior of the `/memory refresh` command. If
|
||||||
set to `true`, `GEMINI.md` files should be loaded from all directories that
|
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
|
are added. If set to `false`, `GEMINI.md` should only be loaded from the
|
||||||
@@ -382,7 +384,9 @@ contain other project-specific files related to Gemini CLI's operation, such as:
|
|||||||
- **Default:** `false`
|
- **Default:** `false`
|
||||||
- **Example:**
|
- **Example:**
|
||||||
```json
|
```json
|
||||||
"loadMemoryFromIncludeDirectories": true
|
"context": {
|
||||||
|
"loadMemoryFromIncludeDirectories": true
|
||||||
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
### Example `settings.json`:
|
### Example `settings.json`:
|
||||||
@@ -418,8 +422,10 @@ contain other project-specific files related to Gemini CLI's operation, such as:
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"],
|
"excludedProjectEnvVars": ["DEBUG", "DEBUG_MODE", "NODE_ENV"],
|
||||||
"includeDirectories": ["path/to/dir1", "~/path/to/dir2", "../path/to/dir3"],
|
"context": {
|
||||||
"loadMemoryFromIncludeDirectories": true
|
"includeDirectories": ["path/to/dir1", "~/path/to/dir2", "../path/to/dir3"],
|
||||||
|
"loadMemoryFromIncludeDirectories": true
|
||||||
|
}
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user