diff --git a/aider/website/assets/sample.aider.conf.yml b/aider/website/assets/sample.aider.conf.yml index 31088fecc..48d7ed7d1 100644 --- a/aider/website/assets/sample.aider.conf.yml +++ b/aider/website/assets/sample.aider.conf.yml @@ -206,6 +206,9 @@ ## specify a file to edit (can be used multiple times) #file: +## specify a read-only file (can be used multiple times) +#read: + ## Use VI editing mode in the terminal (default: False) #vim: false diff --git a/aider/website/assets/sample.env b/aider/website/assets/sample.env index 56708a188..90afaec04 100644 --- a/aider/website/assets/sample.env +++ b/aider/website/assets/sample.env @@ -210,6 +210,9 @@ ## specify a file to edit (can be used multiple times) #AIDER_FILE= +## specify a read-only file (can be used multiple times) +#AIDER_READ= + ## Use VI editing mode in the terminal (default: False) #AIDER_VIM=false diff --git a/aider/website/docs/config/aider_conf.md b/aider/website/docs/config/aider_conf.md index 3f6c1e40a..8f090ec4a 100644 --- a/aider/website/docs/config/aider_conf.md +++ b/aider/website/docs/config/aider_conf.md @@ -245,6 +245,9 @@ cog.outl("```") ## specify a file to edit (can be used multiple times) #file: +## specify a read-only file (can be used multiple times) +#read: + ## Use VI editing mode in the terminal (default: False) #vim: false diff --git a/aider/website/docs/config/dotenv.md b/aider/website/docs/config/dotenv.md index 493b123db..b12fa9a3e 100644 --- a/aider/website/docs/config/dotenv.md +++ b/aider/website/docs/config/dotenv.md @@ -252,6 +252,9 @@ cog.outl("```") ## specify a file to edit (can be used multiple times) #AIDER_FILE= +## specify a read-only file (can be used multiple times) +#AIDER_READ= + ## Use VI editing mode in the terminal (default: False) #AIDER_VIM=false diff --git a/aider/website/docs/config/options.md b/aider/website/docs/config/options.md index 1c6428b24..c35273f3d 100644 --- a/aider/website/docs/config/options.md +++ b/aider/website/docs/config/options.md @@ -51,8 +51,8 @@ usage: aider [-h] [--openai-api-key] [--anthropic-api-key] [--model] [--commit] [--commit-prompt] [--dry-run | --no-dry-run] [--lint] [--lint-cmd] [--auto-lint | --no-auto-lint] [--test-cmd] [--auto-test | --no-auto-test] [--test] - [--file] [--vim] [--voice-language] [--version] - [--just-check-update] + [--file] [--read] [--vim] [--voice-language] + [--version] [--just-check-update] [--check-update | --no-check-update] [--apply] [--yes] [-v] [--show-repo-map] [--show-prompts] [--exit] [--message] [--message-file] [--encoding] [-c] [--gui] @@ -396,6 +396,10 @@ Environment variable: `AIDER_TEST` specify a file to edit (can be used multiple times) Environment variable: `AIDER_FILE` +### `--read FILE` +specify a read-only file (can be used multiple times) +Environment variable: `AIDER_READ` + ### `--vim` Use VI editing mode in the terminal (default: False) Default: False diff --git a/aider/website/docs/usage/commands.md b/aider/website/docs/usage/commands.md index 576cc3085..d17274800 100644 --- a/aider/website/docs/usage/commands.md +++ b/aider/website/docs/usage/commands.md @@ -31,6 +31,7 @@ cog.out(get_help_md()) | **/model** | Switch to a new LLM | | **/models** | Search the list of available models | | **/quit** | Exit the application | +| **/read** | Load a file from anywhere and add it to abs_read_only_fnames | | **/run** | Run a shell command and optionally add the output to the chat (alias: !) | | **/test** | Run a shell command and add the output to the chat on non-zero exit code | | **/tokens** | Report on the number of tokens used by the current chat context |