mirror of
https://github.com/Aider-AI/aider.git
synced 2025-06-01 10:14:59 +00:00
copy
This commit is contained in:
parent
8e6774babd
commit
adcfbf5d85
1 changed files with 6 additions and 6 deletions
|
@ -80,11 +80,11 @@ relevant files for the task at hand.
|
||||||
Under the hood, `aider` uses
|
Under the hood, `aider` uses
|
||||||
[universal ctags](https://github.com/universal-ctags/ctags)
|
[universal ctags](https://github.com/universal-ctags/ctags)
|
||||||
to build the
|
to build the
|
||||||
map. Universal ctags can scan source code in a large variety of
|
map. Universal ctags can scan source code written in a large variety of
|
||||||
languages, and extract data about all the symbols defined in each
|
languages, and extract data about all the symbols defined in each
|
||||||
file.
|
file.
|
||||||
|
|
||||||
For example, here is the `ctags --fields=+S --output-format=json` output for the `main.py` mapped above:
|
For example, here is the `ctags --fields=+S --output-format=json` output for the `main.py` file mapped above:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
|
@ -104,14 +104,14 @@ For example, here is the `ctags --fields=+S --output-format=json` output for the
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
The map is built using the `name`, `path`, `scope`, `kind` and
|
The repo map is built using the `name`, `path`, `scope`, `kind` and
|
||||||
`signature` data from `ctags`. The map is formatted is a sorted,
|
`signature` data from `ctags`. The map is formatted as a sorted,
|
||||||
hierarchical tree to efficiently convey the data to GPT-4 using a
|
hierarchical tree to efficiently convey the data to GPT-4 using a
|
||||||
minimal number of tokens.
|
minimal number of tokens.
|
||||||
|
|
||||||
## Trying it out
|
## Try it out
|
||||||
|
|
||||||
To use the repo map feature with `aider`:
|
To use this experimental repo map feature with `aider`:
|
||||||
|
|
||||||
- Install [universal ctags](https://github.com/universal-ctags/ctags).
|
- Install [universal ctags](https://github.com/universal-ctags/ctags).
|
||||||
- Run `aider` with the `--ctags` option.
|
- Run `aider` with the `--ctags` option.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue