reidbarber / gen-ui

Use text or image prompts to generate components and apps built with React.
11 stars 3 forks source link

String replace support for updateFile #11

Open reidbarber opened 11 months ago

reidbarber commented 11 months ago

It would be much faster if the updateFile function didn't have to include the entire update file, if just a small part of it is being changed.

updateFile could support string replace where RegEx can be used to replace part of the initial file.

Alternatively, using unified diffs may be worth trying: https://aider.chat/docs/unified-diffs.html