Skip to content

Commit

Permalink
copy
Browse files Browse the repository at this point in the history
  • Loading branch information
paul-gauthier committed Dec 10, 2024
1 parent 4a37d07 commit 92d2980
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 3 deletions.
3 changes: 3 additions & 0 deletions aider/copypaste.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ def watch_clipboard():
self.last_clipboard = current
self.io.interrupt_input()
self.io.placeholder = current
if len(current.splitlines()) > 1:
self.io.placeholder = "\n" + self.io.placeholder + "\n"

time.sleep(0.5)
except Exception as e:
if self.verbose:
Expand Down
Binary file modified aider/website/assets/copypaste.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified aider/website/assets/copypaste.mp4
Binary file not shown.
4 changes: 2 additions & 2 deletions aider/website/docs/usage/copypaste.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: Aider works with LLM web chat UIs
<style>
.video-container {
position: relative;
padding-bottom: 101.89%; /* 1080 / 1060 = 1.0189 */
padding-bottom: 66.34%; /* 2160 / 3256 = 0.6634 */
height: 0;
overflow: hidden;
}
Expand Down Expand Up @@ -50,7 +50,7 @@ to your local files.
For this "file editor" part of the process
you can run aider with many open source, free or very inexpensive LLMs.
For example, the demo video above shows aider using DeepSeek to apply the changes
that GPT-4o is suggesting in the web chat.
that o1-preview is suggesting in the web chat.

### Copy aider's code context to your clipboard, paste into the web UI

Expand Down
2 changes: 1 addition & 1 deletion aider/website/docs/usage/watch.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ description: Aider can run in your browser, not just on the command line.
<style>
.video-container {
position: relative;
padding-bottom: 101.89%; /* 1080 / 1060 = 1.0189 */
padding-bottom: 102.7%; /1.027 */
height: 0;
overflow: hidden;
}
Expand Down

0 comments on commit 92d2980

Please sign in to comment.