mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-24 06:15:00 +00:00
Changed command descriptions to be more specific.
This commit is contained in:
parent
605a5af522
commit
24593a345f
2 changed files with 12 additions and 11 deletions
19
README.md
19
README.md
|
@ -21,15 +21,6 @@ Each change is automatically committed to git with a sensible commit message.
|
|||
* Live, colorized, human friendly output.
|
||||
* Readline style chat input history, with autocompletion of tokens found in the source files being discussed (via `prompt_toolkit`)
|
||||
|
||||
## Commands
|
||||
|
||||
Aider supports the following commands:
|
||||
|
||||
* `/help`: Show help about all commands.
|
||||
* `/add <file>`: Add files to the chat.
|
||||
* `/drop <file>`: Remove files from the chat.
|
||||
* `/ls`: List files and show their chat status.
|
||||
To use a command, simply type it in the chat input followed by any required arguments.
|
||||
## Installation
|
||||
|
||||
1. Install the package: `pip install git+https://github.com/paul-gauthier/aider.git`
|
||||
|
@ -47,6 +38,16 @@ Replace `<file1>`, `<file2>`, etc., with the paths to the source code files you
|
|||
|
||||
You can also use additional command-line options to customize the behavior of the tool. For more information, run `aider --help`. Many defaults can be set with `.env` or environment variables, see the help output.
|
||||
|
||||
## Commands
|
||||
|
||||
Aider supports the following commands from within the chat:
|
||||
|
||||
* `/add <file>`: Add matching files to the chat.
|
||||
* `/drop <file>`: Remove matching files from the chat.
|
||||
* `/ls`: List files and show their chat status.
|
||||
|
||||
To use a command, simply type it in the chat input followed by any required arguments.
|
||||
|
||||
## Tips
|
||||
|
||||
* Large changes are best performed as a sequence of bite sized steps. Same as if you were undertaking them by yourself.
|
||||
|
|
|
@ -485,7 +485,7 @@ class Coder:
|
|||
return files
|
||||
|
||||
def cmd_add(self, args):
|
||||
"Add files to the chat"
|
||||
"Add matching files to the chat"
|
||||
|
||||
files = self.get_active_files()
|
||||
for word in args.split():
|
||||
|
@ -499,7 +499,7 @@ class Coder:
|
|||
self.console.print(f"[red]{matched_file} is already in the chat")
|
||||
|
||||
def cmd_drop(self, args):
|
||||
"Remove files from the chat"
|
||||
"Remove matching files from the chat"
|
||||
|
||||
for word in args.split():
|
||||
matched_files = [file for file in self.fnames if word in os.path.relpath(file, self.root)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue