Commit graph

298 commits

Author SHA1 Message Date
Paul Gauthier
06e6bf95e0 copy 2023-10-20 13:45:08 -07:00
Paul Gauthier
51c8bf0614 copy 2023-10-20 11:45:48 -07:00
Paul Gauthier
fed7e9b408 copy 2023-10-20 10:15:35 -07:00
Paul Gauthier
458f1fb872 aider: Turned all the links in the credits list into actual links.
# Aider chat conversation:

ASSISTANT: To turn all the links in the credits list into actual links, we need to modify the `docs/repomap.md` file.

Here's the step-by-step process:

1. Identify the lines that contain the URLs.
2. Add Markdown syntax to turn the URLs into clickable links.

Here are the changes:

<source>markdown
docs/repomap.md
<<<<<<< HEAD
* https://github.com/tree-sitter/tree-sitter-c — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-c-sharp — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-cpp — licensed under the MIT License.
* https://github.com/Wilfred/tree-sitter-elisp — licensed under the MIT License.
* https://github.com/elixir-lang/tree-sitter-elixir — licensed under the Apache License, Version 2.0.
* https://github.com/elm-tooling/tree-sitter-elm — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-go — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-java — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-javascript — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-ocaml — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-php — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-python — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-ql — licensed under the MIT License.
* https://github.com/r-lib/tree-sitter-r — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-ruby — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-rust — licensed under the MIT License.
* https://github.com/tree-sitter/tree-sitter-typescript — licensed under the MIT License.
=======
* [https://github.com/tree-sitter/tree-sitter-c](https://github.com/tree-sitter/tree-sitter-c) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-c-sharp](https://github.com/tree-sitter/tree-sitter-c-sharp) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-cpp](https://github.com/tree-sitter/tree-sitter-cpp) — licensed under the MIT License.
* [https://github.com/Wilfred/tree-sitter-elisp](https://github.com/Wilfred/tree-sitter-elisp) — licensed under the MIT License.
* [https://github.com/elixir-lang/tree-sitter-elixir](https://github.com/elixir-lang/tree-sitter-elixir) — licensed under the Apache License, Version 2.0.
* [https://github.com/elm-tooling/tree-sitter-elm](https://github.com/elm-tooling/tree-sitter-elm) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-go](https://github.com/tree-sitter/tree-sitter-go) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-java](https://github.com/tree-sitter/tree-sitter-java) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-javascript](https://github.com/tree-sitter/tree-sitter-javascript) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-ocaml](https://github.com/tree-sitter/tree-sitter-ocaml) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-php](https://github.com/tree-sitter/tree-sitter-php) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-python](https://github.com/tree-sitter/tree-sitter-python) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-ql](https://github.com/tree-sitter/tree-sitter-ql) — licensed under the MIT License.
* [https://github.com/r-lib/tree-sitter-r](https://github.com/r-lib/tree-sitter-r) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-ruby](https://github.com/tree-sitter/tree-sitter-ruby) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-rust](https://github.com/tree-sitter/tree-sitter-rust) — licensed under the MIT License.
* [https://github.com/tree-sitter/tree-sitter-typescript](https://github.com/tree-sitter/tree-sitter-typescript) — licensed under the MIT License.
>>>>>>> updated
</source>
2023-10-20 10:13:24 -07:00
Paul Gauthier
3a8e9a0ce5 Build the repository map automatically using tree-sitter to extract symbol definitions from source files. 2023-10-20 10:13:23 -07:00
Paul Gauthier
561f433733 copy 2023-10-20 10:09:26 -07:00
Paul Gauthier
c450b40e3f copy 2023-10-20 08:44:31 -07:00
Paul Gauthier
4f2fd324f1 copy 2023-10-20 08:32:52 -07:00
Paul Gauthier
80c03045ef put universal ctags back into the install instructions until tree-sitter ships in a released version 2023-10-19 17:51:03 -07:00
Paul Gauthier
427dcf67b5 update references to ctags in the docs 2023-10-19 15:49:44 -07:00
Paul Gauthier
3c817e9895 copy 2023-10-19 15:47:45 -07:00
Paul Gauthier
eec174fae7 added tags.scm for C 2023-10-19 12:32:44 -07:00
Paul Gauthier
c7f35b2ce5 add ts credits 2023-10-19 12:25:55 -07:00
Paul Gauthier
8b87c1291e new repomap article 2023-10-19 09:11:15 -07:00
Paul Gauthier
b2b78a98ee Added libportaudio2 to the docker container 2023-10-18 13:38:41 -07:00
Paul Gauthier
49b9034629 Added universal ctags to the docker image 2023-10-18 13:30:49 -07:00
Paul Gauthier
5b494a114e copy 2023-10-18 09:33:01 -07:00
Paul Gauthier
4a10087a6e Moved docker docs into docs/ 2023-10-18 09:31:17 -07:00
Paul Gauthier
6a7fd93580 copy 2023-09-27 10:20:59 -07:00
Paul Gauthier
7910c2f731 copy 2023-09-25 12:25:22 -07:00
Farhan Ahmad
7137b29744 Moved instructions from README.md into FAQs section. 2023-09-18 15:04:00 -04:00
paul-gauthier
30a3cc0847
Merge pull request #199 from joshuavial/openrouter
Openrouter compatibility
2023-08-31 17:17:28 -07:00
Paul Gauthier
bcf4a55714 copy 2023-08-25 07:16:40 -07:00
Joshua Vial
6405193a95 docs for openrouter 2023-08-23 22:26:14 +12:00
Paul Gauthier
968095b36d Updated HISTORY 2023-08-22 07:45:17 -07:00
Paul Gauthier
e15b0b04d4 copy 2023-08-19 19:12:55 -07:00
Paul Gauthier
d7443e21b9 copy 2023-08-19 19:12:35 -07:00
Paul Gauthier
354b216bbe added /voice to docs 2023-08-19 11:42:56 -07:00
Paul Gauthier
66e04bde3d copy 2023-08-19 06:47:39 -07:00
Paul Gauthier
b56340db6a Updated FAQ 2023-08-18 10:30:34 -07:00
Paul Gauthier
26857e8563 reverse colors in progress bar 2023-08-11 08:43:36 -03:00
Paul Gauthier
f1b86282ad copy 2023-08-11 08:30:36 -03:00
Paul Gauthier
b8a01f1cf8 copy 2023-08-11 08:14:40 -03:00
Paul Gauthier
aa0b8be3a2 copy 2023-08-11 08:02:01 -03:00
Paul Gauthier
a06299b308 copy 2023-08-11 07:33:39 -03:00
Paul Gauthier
ea2e2dc45d copy 2023-08-11 07:30:33 -03:00
Paul Gauthier
c2ac1f69eb updated docs for voice-to-code 2023-08-11 07:27:32 -03:00
Paul Gauthier
88f0ef3a85 Change voice progress bar animation percentages. 2023-08-10 22:42:51 -03:00
Paul Gauthier
d2dde5d592 aider: Changed CSS animation in docs/voice.md to make the progress bar oscillate in a less regular pattern.
# Aider chat conversation:

USER: I did `git reset --hard HEAD~1` to discard the last edits.

ASSISTANT: Okay, that command will undo the last commit and discard the changes made in it. If you need to make any further changes or need assistance with anything else, feel free to ask.

USER: can we make the css animation less regular, maybe cycle from 1-9 and then 1-3 and then 1-9 ...

ASSISTANT: Sure, we can modify the CSS animation in the `docs/voice.md` file to make the progress bar oscillate in a less regular pattern. We can achieve this by defining multiple keyframes for the animation.

Here is the *edit block* for this change:

<source>markdown
docs/voice.md
<<<<<<< HEAD
<style>
    .recording-line > * {
        display: inline-block;
        vertical-align: middle;
    }
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        margin-left: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>
=======
<style>
    .recording-line > * {
        display: inline-block;
        vertical-align: middle;
    }
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        margin-left: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 3s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        33% { width: 90%; }
        66% { width: 30%; }
        100% { width: 90%; }
    }
</style>
>>>>>>> updated
</source>
2023-08-10 22:40:58 -03:00
Paul Gauthier
85742e3b35 9sec 2023-08-10 22:38:02 -03:00
Paul Gauthier
37d1504b5e Add timer functionality to the aider chat session. 2023-08-10 22:36:10 -03:00
Paul Gauthier
4861a1de2e aider: Changed timer to count up by 0.1 every 0.1 second.
# Aider chat conversation:

USER: count up by 0.1 sec

ASSISTANT: To count up by 0.1 second, we need to modify the JavaScript code in the `docs/voice.md` file. Specifically, we need to change the `setInterval` function to increment the counter by 0.1 instead of 1, and to run every 100 milliseconds (0.1 seconds) instead of every 1000 milliseconds (1 second).

Here is the *edit block* for this change:

<source>markdown
docs/voice.md
<<<<<<< HEAD
<script>
    var counter = 0;
    var timer = document.getElementById('timer');
    setInterval(function() {
        counter = (counter + 1) % 10;
        timer.textContent = counter;
    }, 1000);
</script>
=======
<script>
    var counter = 0;
    var timer = document.getElementById('timer');
    setInterval(function() {
        counter = (counter + 0.1) % 10;
        timer.textContent = counter.toFixed(1);
    }, 100);
</script>
>>>>>>> updated
</source>

This will make the timer count up by 0.1 every 0.1 second, and reset to 0 when it reaches 10. The `toFixed(1)` function is used to format the counter value to one decimal place.
2023-08-10 22:35:37 -03:00
Paul Gauthier
32f530c4a8 Change the recording timer display from "0sec" to "3.5sec". 2023-08-10 22:35:05 -03:00
Paul Gauthier
d3a79fbb57 aider: Updated the docs/voice.md file to display a timer that counts from 0 to 9 seconds and then resets.
# Aider chat conversation:

USER: can we make the 3.5sec count from 0 to 9 sec and then loop?

ASSISTANT: Sure, we can do that. We will need to modify the `docs/voice.md` file.

We will use JavaScript to create a timer that counts from 0 to 9 seconds and then resets. This timer will replace the static "3.5sec" text.

Here are the steps:

1. Add a `span` element with an id of `timer` where the "3.5sec" text is.
2. Add a script tag at the end of the file.
3. In the script, create a function that increments a counter every second.
4. If the counter reaches 10, reset it to 0.
5. Every second, update the text content of the `timer` element with the current counter value followed by "sec".

Here is the *edit block* for these changes:

<source>markdown
docs/voice.md
<<<<<<< HEAD
<div class="recording-line">
    <p style="display: inline;">Recording, press ENTER when done... 3.5sec</p>
    <div id="progress-bar">
        <div id="progress"></div>
    </div>
</div>
</blockquote>

<style>
    .recording-line > * {
        display: inline-block;
        vertical-align: middle;
    }
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        margin-left: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>
=======
<div class="recording-line">
    <p style="display: inline;">Recording, press ENTER when done... <span id="timer">0</span>sec</p>
    <div id="progress-bar">
        <div id="progress"></div>
    </div>
</div>
</blockquote>

<style>
    .recording-line > * {
        display: inline-block;
        vertical-align: middle;
    }
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        margin-left: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>

<script>
    var counter = 0;
    var timer = document.getElementById('timer');
    setInterval(function() {
        counter = (counter + 1) % 10;
        timer.textContent = counter;
    }, 1000);
</script>
>>>>>>> updated
</source>
2023-08-10 22:34:16 -03:00
Paul Gauthier
4eebeb1637 Remove border-radius from the voice chat session progress bar. 2023-08-10 22:33:06 -03:00
Paul Gauthier
70617e7b6c aider: The progress bar and the "Recording, ..." text are now displayed on the same line.
# Aider chat conversation:

USER: i want the bar to stay on the same line as the "Recording, ..." text

ASSISTANT: To keep the progress bar on the same line as the "Recording, ..." text, we need to modify the `docs/voice.md` file. We will use CSS to make the progress bar and the text appear on the same line.

Here are the steps:

1. Wrap the "Recording, ..." text and the progress bar in a `div` element with a class of `recording-line`.
2. Add CSS to make the elements within `recording-line` display inline.

Here is the *edit block* for these changes:

<source>markdown
docs/voice.md
<<<<<<< HEAD
<blockquote>
<p>Recording, press ENTER when done... 3.5sec
<div id="progress-bar">
    <div id="progress"></div>
</div>
</p>
</blockquote>

<style>
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        border-radius: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>
=======
<blockquote>
<div class="recording-line">
    <p style="display: inline;">Recording, press ENTER when done... 3.5sec</p>
    <div id="progress-bar">
        <div id="progress"></div>
    </div>
</div>
</blockquote>

<style>
    .recording-line > * {
        display: inline-block;
        vertical-align: middle;
    }
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        border-radius: 10px;
        margin-left: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>
>>>>>>> updated
</source>

This will make the progress bar and the "Recording, ..." text appear on the same line. The `display: inline-block;` property in the CSS code makes the elements within `recording-line` display inline. The `vertical-align: middle;` property aligns the elements vertically in the middle. The `margin-left: 10px;` property adds a 10px space to the left of the progress bar for better visual separation.
2023-08-10 22:32:23 -03:00
Paul Gauthier
490a4b6823 Add progress bar to voice recording feature. 2023-08-10 22:31:44 -03:00
Paul Gauthier
18ba9f9707 aider: Replace the static progress bar with a dynamic one that oscillates from 1 █ and 9 ░ to 9 █ and 1 ░.
# Aider chat conversation:

USER: make the █████░░░░░ oscillate from 1 █ and 9 ░ to 9 █ and 1 ░. turn that line into html+css

ASSISTANT: To make the progress bar oscillate, we need to modify the `docs/voice.md` file. We will replace the static progress bar with a dynamic one using HTML and CSS.

Here are the steps:

1. Replace the static progress bar █████░░░░░ with a dynamic one.
2. Use HTML and CSS to create a progress bar that oscillates from 1 █ and 9 ░ to 9 █ and 1 ░.

Here is the *edit block* for these changes:

<source>markdown
docs/voice.md
<<<<<<< HEAD
> Recording, press ENTER when done... 3.5sec █████░░░░░
=======
> Recording, press ENTER when done... 3.5sec
<div id="progress-bar">
    <div id="progress"></div>
</div>
<style>
    #progress-bar {
        width: 100px;
        height: 20px;
        background-color: #f0f0f0;
        border-radius: 10px;
    }
    #progress {
        height: 100%;
        background-color: #333;
        animation: progress 1s infinite;
    }
    @keyframes progress {
        0% { width: 10%; }
        50% { width: 90%; }
        100% { width: 10%; }
    }
</style>
>>>>>>> updated
</source>

This will replace the static progress bar with a dynamic one that oscillates from 1 █ and 9 ░ to 9 █ and 1 ░. The `animation` property in the CSS code makes the width of the progress bar oscillate between 10% and 90% every second.
2023-08-10 22:30:30 -03:00
Paul Gauthier
b59e5bf298 copy 2023-08-10 22:27:18 -03:00
Paul Gauthier
24f574a7dc better bar 2023-08-10 22:21:39 -03:00