aider icon indicating copy to clipboard operation
aider copied to clipboard

Needs slightly tweaked edit format for adding text?

Open mikehearn opened this issue 3 years ago • 2 comments

gpt-4-preview seems to like this sort of thing, which obviously doesn't work, but it's fair enough because I'm not sure how I'd express appends with this format either?

 headlines.css
 <<<<<<< SEARCH
 /* No changes in this part of the file */
 =======
 /* Add the following CSS rules for the .number class */
 .number {
     display: inline-block;
     width: 30px; /* Adjust the width as needed */
     margin-left: -40px; /* Adjust the negative margin to offset the number to the left */
     text-align: right;
     color: black;
     font-family: 'Noto Serif Display', serif;
 }
 >>>>>>> REPLACE

mikehearn avatar Nov 10 '23 15:11 mikehearn

I've noticed this as well. Maybe we need a search that finds the last few lines of the file when its appending, then include them in the replace portion?

phatwila avatar Nov 12 '23 04:11 phatwila

Duplicate of #343.

paul-gauthier avatar Nov 14 '23 19:11 paul-gauthier