opencode
opencode copied to clipboard
/editor: non-successful editor exits should keep the text in the textarea
when doing :cq i assume that the textarea cobtent will not have my changes in vim, but also dont clear up the content (which is what it currently does).
This PR ensures that :cq will avoid overwriting the textarea with emoty xontent
we just added attachments, and we need to avoid SetValue because it clears attachments; i was going to remove that function altogether just hadn't gotten to it yet!
Ack so I’ll figure out a different way. Probably just not removing in the first place.
@adamdotdevin i asked opencode to rebase and make sure to support them attachments. It works, but the main issue I can see is that attachments in /editor are not well supported and get cleared. But that's unrelated to this PR--it is how it works right now in dev.