From 24593a345f561923c7ede4be289e16f043b4f948 Mon Sep 17 00:00:00 2001 From: Paul Gauthier Date: Wed, 10 May 2023 12:30:28 -0700 Subject: [PATCH] Changed command descriptions to be more specific. --- README.md | 19 ++++++++++--------- aider/coder.py | 4 ++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/README.md b/README.md index c95e58463..3d6922f15 100644 --- a/README.md +++ b/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 `: Add files to the chat. -* `/drop `: 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 ``, ``, 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 `: Add matching files to the chat. +* `/drop `: 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. diff --git a/aider/coder.py b/aider/coder.py index 33b7d0097..7d51fe8c5 100755 --- a/aider/coder.py +++ b/aider/coder.py @@ -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)]