Commit graph

4630 commits

Author SHA1 Message Date
Paul Gauthier
f2de9d26c7 added techfren video to tutorials 2024-06-07 05:27:32 -07:00
Paul Gauthier
2be24f207f copy 2024-06-06 16:44:00 -07:00
Paul Gauthier
329e16e59b copy 2024-06-06 16:42:24 -07:00
Paul Gauthier
519b95713b browser blog & doc need to be separate 2024-06-06 16:05:13 -07:00
Paul Gauthier
435e9a0d86 fixing broken links 2024-06-06 16:00:17 -07:00
Paul Gauthier
f760eacfd6 fixed link 2024-06-06 15:25:23 -07:00
Paul Gauthier
f97ed15dd3 fixed broken links 2024-06-06 15:14:41 -07:00
Paul Gauthier
fa3df117d9 copy 2024-06-06 14:52:31 -07:00
Paul Gauthier
30f4a905c1 renamed config/options and get_md_help() 2024-06-06 14:00:14 -07:00
Paul Gauthier
53deb04e75 use dashed-names not underscore_names in yaml 2024-06-06 13:46:32 -07:00
Paul Gauthier
65c9a7866a improved handling of defaults 2024-06-06 13:40:16 -07:00
Paul Gauthier
3be2c3e893 copy 2024-06-06 12:49:12 -07:00
Paul Gauthier
645ace1d0e fix defaults in sample yml 2024-06-06 12:46:07 -07:00
Paul Gauthier
0068a35554 Merge remote-tracking branch 'origin/main' 2024-06-06 12:41:50 -07:00
Paul Gauthier
2d62e3fb1f add sample aider.conf.yml 2024-06-06 12:40:25 -07:00
Paul Gauthier
caca261587 output nice md usage 2024-06-06 12:26:06 -07:00
Paul Gauthier
8e9cbcc014 Refactored MarkdownHelpFormatter to improve formatting and display additional information about actions. 2024-06-06 12:14:20 -07:00
Paul Gauthier
e7aafd9590 aider: Add argument formatter to print arguments in a specified format.
# Aider chat conversation:

USER: Add an args formatter that prints out args like this:

## Output Settings:

### --dark-mode
Use colors suitable for a dark terminal background
Default: False

### --light-mode
Use colors suitable for a light terminal background
Default: False

...

ASSISTANT: To add an argument formatter that prints out arguments in the specified format, we need to:

1. Create a new formatter class.
2. Update the `get_help` function to use this new formatter.

Here are the changes:

1. Create a new file `aider/args_formatter.py` with the custom formatter class.
2. Update `aider/args.py` to use this new formatter.

Let's start with the new file:

aider/args_formatter.py
```python
<<<<<<< SEARCH
=======
import argparse

class CustomHelpFormatter(argparse.HelpFormatter):
    def start_section(self, heading):
        super().start_section(f"## {heading}:")

    def _format_action(self, action):
        parts = []
        if action.help:
            parts.append(f"### --{action.dest}")
            parts.append(action.help)
            if action.default is not argparse.SUPPRESS:
                parts.append(f"Default: {action.default}")
        return "\n".join(parts)

    def _format_action_invocation(self, action):
        return ""

    def _format_args(self, action, default_metavar):
        return ""
>>>>>>> REPLACE
```

Next, update `aider/args.py` to use this new formatter:

aider/args.py
```python
<<<<<<< SEARCH
from aider import __version__, models
=======
from aider import __version__, models
from aider.args_formatter import CustomHelpFormatter
>>>>>>> REPLACE
```

aider/args.py
```python
<<<<<<< SEARCH
        description="aider is GPT powered coding in your terminal",
=======
        description="aider is GPT powered coding in your terminal",
        formatter_class=CustomHelpFormatter,
>>>>>>> REPLACE
```

aider/args.py
```python
<<<<<<< SEARCH
    parser = get_parser([], None)
=======
    parser = get_parser([], None)
    parser.formatter_class = CustomHelpFormatter
>>>>>>> REPLACE
```
2024-06-06 11:38:45 -07:00
paul-gauthier
1b7a04f168
Merge pull request #647 from eltociear/patch-4
docs: update HISTORY.md
2024-06-06 11:14:26 -07:00
Paul Gauthier
0e5342fdb8 copy 2024-06-06 11:01:27 -07:00
Paul Gauthier
3cda6d7dd3 copy 2024-06-06 10:40:57 -07:00
Paul Gauthier
ef08b2fa1b copy 2024-06-06 10:37:16 -07:00
Paul Gauthier
9873db94f0 copy 2024-06-06 10:23:27 -07:00
Paul Gauthier
3e6a4d5edc copy 2024-06-06 10:21:09 -07:00
Paul Gauthier
3073a02450 copy 2024-06-06 10:11:49 -07:00
Paul Gauthier
36d6dc820a copy 2024-06-06 10:02:18 -07:00
Paul Gauthier
8c3ccf5054 copy 2024-06-06 09:54:24 -07:00
Paul Gauthier
f2ab3c6966 copy 2024-06-06 09:44:53 -07:00
Paul Gauthier
542bcaab76 copy 2024-06-06 09:36:41 -07:00
Paul Gauthier
8e868e3a2d copy 2024-06-06 09:22:25 -07:00
Paul Gauthier
ed8a807b6a moved _include -> _includes; added footer 2024-06-06 09:22:08 -07:00
Paul Gauthier
6847ce5434 copy 2024-06-06 09:01:06 -07:00
Paul Gauthier
da2a7638ab copy 2024-06-06 07:27:00 -07:00
Paul Gauthier
4f42b6038a copy 2024-06-06 06:52:43 -07:00
Paul Gauthier
6d4c87a54a copy 2024-06-06 06:43:56 -07:00
Paul Gauthier
bd52643dbe copy 2024-06-06 06:30:15 -07:00
Paul Gauthier
e341fb9baa copy 2024-06-06 06:26:57 -07:00
Paul Gauthier
c6074c16f3 copy 2024-06-05 21:17:50 -07:00
Paul Gauthier
dc66f8e8e3 copy 2024-06-05 21:17:41 -07:00
Paul Gauthier
220ae44725 copy 2024-06-05 21:16:18 -07:00
Paul Gauthier
9437fb28c4 removed configargparse.YAMLConfigFileParser 2024-06-05 21:14:54 -07:00
Paul Gauthier
01f1e62269 split up install 2024-06-05 21:13:56 -07:00
Paul Gauthier
7bd8d26f95 copy 2024-06-05 21:05:15 -07:00
Paul Gauthier
f8b30e0703 added .env docs 2024-06-05 20:58:34 -07:00
Paul Gauthier
0b7bee8712 repo-map 2024-06-05 20:55:41 -07:00
Paul Gauthier
c5e127d6fa Broke apart llms 2024-06-05 20:50:55 -07:00
Paul Gauthier
65f80e965f copy 2024-06-05 20:32:45 -07:00
Ikko Eltociear Ashimine
99ed0437fb
docs: update HISTORY.md
geneated -> generated
2024-06-06 12:31:18 +09:00
Paul Gauthier
1063b6360e copy 2024-06-05 20:29:58 -07:00
Paul Gauthier
0d9150c77b coq for languages.md 2024-06-05 20:24:19 -07:00