Commit graph

3849 commits

Author SHA1 Message Date
Paul Gauthier
178af4a327 copy 2024-04-29 13:17:40 -07:00
Paul Gauthier
e88ea7793b copy 2024-04-29 12:56:41 -07:00
Paul Gauthier
e668803f82 added deepseek docs 2024-04-29 12:35:57 -07:00
Paul Gauthier
c07f7931f2 Merge branch 'main' into gui 2024-04-29 11:27:49 -07:00
Paul Gauthier
4b87f2b40f updated icons 2024-04-29 11:00:23 -07:00
Paul Gauthier
ae7d6a16af aider: Added additional favicon tags to ensure the favicon works well across all browsers.
# Aider chat conversation:

USER: add whatever other tags are needed so the favicon works well on all browsers

ASSISTANT: To ensure the favicon works well across all browsers, we should add a few more link tags with different icon sizes and formats. Here are the changes to make in the `_layouts/default.html` file:

_layouts/default.html
```html
<<<<<<< SEARCH
    <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url }}">
=======
    <link rel="icon" type="image/png" sizes="32x32" href="{{ '/assets/favicon-32x32.png' | relative_url }}">
    <link rel="icon" type="image/png" sizes="16x16" href="{{ '/assets/favicon-16x16.png' | relative_url }}">
    <link rel="apple-touch-icon" sizes="180x180" href="{{ '/assets/apple-touch-icon.png' | relative_url }}">
    <link rel="manifest" href="{{ '/assets/site.webmanifest' | relative_url }}">
    <link rel="mask-icon" href="{{ '/assets/safari-pinned-tab.svg' | relative_url }}" color="#5bbad5">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="theme-color" content="#ffffff">
>>>>>>> REPLACE
```

These additional tags cover:

1. A 16x16 PNG favicon for older browsers
2. An Apple Touch icon for iOS devices
3. A Web App Manifest file for progressive web apps
4. A mask icon for Safari pinned tabs
5. A tile color for Windows 8/10 start screen
6. A theme color for mobile browsers

Make sure to also add the corresponding favicon files in the `/assets` directory of your project:

- `favicon-16x16.png`
- `apple-touch-icon.png`
- `site.webmanifest`
- `safari-pinned-tab.svg`

With these changes, your favicon should display correctly across all modern browsers and devices.
2024-04-29 10:58:02 -07:00
Paul Gauthier
29f4d788a3 set streamlit config options 2024-04-29 10:19:22 -07:00
Paul Gauthier
03908c5ab6 copy 2024-04-29 06:35:45 -07:00
Paul Gauthier
3199a8f704 fix multiselect for 2nd,3rd,.. files 2024-04-29 06:24:14 -07:00
Paul Gauthier
28cd2c8580 Merge branch 'main' into gui 2024-04-29 05:54:03 -07:00
Paul Gauthier
8a9005eed1 copy 2024-04-28 17:36:58 -07:00
Paul Gauthier
dd9da6ef6a copy 2024-04-28 17:31:30 -07:00
Paul Gauthier
f8b51ea2df copy 2024-04-28 17:12:23 -07:00
Paul Gauthier
821dd1e18a copy 2024-04-28 17:08:17 -07:00
Paul Gauthier
b2acaae882 copy 2024-04-28 15:42:41 -07:00
Paul Gauthier
0689d89e87 copy 2024-04-28 15:41:10 -07:00
Paul Gauthier
7114eb55b0 copy 2024-04-28 15:39:03 -07:00
Paul Gauthier
2a116eac6d copy 2024-04-28 15:36:43 -07:00
Paul Gauthier
58b5a37943 fix 2024-04-28 15:34:59 -07:00
Paul Gauthier
9008789e84 added new template 2024-04-28 15:32:46 -07:00
Paul Gauthier
b3225a4070 added warning 2024-04-28 15:18:53 -07:00
Paul Gauthier
ec9fac2500 simpler launch of streamlit 2024-04-28 14:48:40 -07:00
Paul Gauthier
73bad5250b hit control-c 2024-04-28 14:38:30 -07:00
Paul Gauthier
64356eaf76 Added favicon to html 2024-04-28 14:36:06 -07:00
Paul Gauthier
80d299cb28 favicon 2024-04-28 14:30:05 -07:00
Paul Gauthier
0bf45c2cf6 added favicon 2024-04-28 14:28:50 -07:00
Paul Gauthier
4f996d43ae added streamlit dep 2024-04-28 14:17:55 -07:00
Paul Gauthier
542c091cf3 Added --gui functionality 2024-04-28 14:08:25 -07:00
Paul Gauthier
d60b343274 layout 2024-04-28 13:44:04 -07:00
Paul Gauthier
9bc8ed9227 fixed test to work with yield 2024-04-28 13:26:29 -07:00
Paul Gauthier
d889dfc879 added args.py 2024-04-28 13:25:31 -07:00
Paul Gauthier
15a50a6afc more refactor 2024-04-28 13:19:48 -07:00
Paul Gauthier
5a01ba70a6 refactored parser, args 2024-04-28 13:15:14 -07:00
Paul Gauthier
221ddbb9ea cleanup unimplemented UI 2024-04-28 12:43:22 -07:00
Paul Gauthier
ca6349069c noop 2024-04-28 12:38:25 -07:00
Paul Gauthier
1ccc83f097 Merge branch 'main' into gui 2024-04-28 11:58:19 -07:00
Paul Gauthier
4efa97201f copy 2024-04-28 11:52:38 -07:00
Paul Gauthier
81b0415a90 info dict messages->content 2024-04-28 07:27:38 -07:00
Paul Gauthier
c0fec1d6ac persist the announce lines 2024-04-28 07:24:46 -07:00
Paul Gauthier
0f8efa3714 Coder.drop_rel_fname 2024-04-28 07:15:48 -07:00
Paul Gauthier
bfd9398f28 persist file add/drop messages 2024-04-28 07:12:46 -07:00
Paul Gauthier
ce5abf8c79 working undo 2024-04-27 16:47:07 -07:00
Paul Gauthier
d0d5326228 roughed in undo 2024-04-27 16:00:10 -07:00
Paul Gauthier
f822fd0554 put web content into a text box 2024-04-27 15:52:14 -07:00
Paul Gauthier
355e072de8 refactored self.prompt 2024-04-27 15:44:10 -07:00
Paul Gauthier
dcb6100ce9 Add web page 2024-04-27 15:28:08 -07:00
Paul Gauthier
6e5e195ea8 resend recent msg 2024-04-27 14:40:44 -07:00
Paul Gauthier
640d321b3e aider: Removed duplicates from the input history while preserving their order.
# Aider chat conversation:

USER: do the todo

ASSISTANT: To address the TODO comment in the code about making the `self.state.input_history` entries unique while keeping their order, we can modify the `initialize_state()` method in `aider/gui.py`.

Here are the changes:

aider/gui.py
```python
<<<<<<< SEARCH
        if "input_history" not in self.state.keys:
            self.state.input_history = list(self.coder.io.get_input_history())
            # TODO: make self.state.input_history entries unique, but keep their order
=======
        if "input_history" not in self.state.keys:
            input_history = list(self.coder.io.get_input_history())
            seen = set()
            self.state.input_history = [x for x in input_history if not (x in seen or seen.add(x))]
>>>>>>> REPLACE
```

Explanation:
1. We first store the input history from `self.coder.io.get_input_history()` in a variable called `input_history`.
2. We create an empty set called `seen` to keep track of entries we've already processed.
3. We use a list comprehension to build `self.state.input_history`. For each item `x` in `input_history`:
   - If `x` is not in `seen`, it's a new entry so we add it to `self.state.input_history` and add it to `seen`.
   - If `x` is already in `seen`, it's a duplicate so we skip it.

This preserves the original order of the input history while removing any duplicate entries.
2024-04-27 14:36:49 -07:00
Paul Gauthier
0b853204e4 Improved chat history handling by clearing history, storing input history, and appending new prompts to the input history. 2024-04-27 14:36:47 -07:00
Paul Gauthier
fb8e604fbe Clear chat history 2024-04-27 14:29:00 -07:00