Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Diff-based edits #210

Open
JoeHowarth opened this issue Dec 3, 2024 · 3 comments
Open

Support Diff-based edits #210

JoeHowarth opened this issue Dec 3, 2024 · 3 comments

Comments

@JoeHowarth
Copy link

When working with a large file, it's not practical to have the model re-write it entirely for each edit. Many models support Search + Replace blocks that would make edits faster and make using more powerful and expensive models practical.

For a reference example, look at aider's feature.

@bracesproul
Copy link
Member

You can do this with the highlight to edit feature. On the backend, that takes the highlighted text, along with 200 (if I remember correctly, it's somewhere around there) characters before & after and only regenerates that.

@RVCA212
Copy link

RVCA212 commented Dec 30, 2024

Why did you choose to have the DOM show where the highlighted content (text or code) on the canvas was rather than using the CodeMirror API?
@bracesproul

@bracesproul
Copy link
Member

I wasn't aware it existed haha. We use the built in API and not DOM for the markdown renderer @RVCA212

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants