opencode icon indicating copy to clipboard operation
opencode copied to clipboard

/editor: non-successful editor exits should keep the text in the textarea

Open Schniz opened this issue 5 months ago • 3 comments

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

Schniz avatar Jul 04 '25 20:07 Schniz

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!

adamdotdevin avatar Jul 04 '25 21:07 adamdotdevin

Ack so I’ll figure out a different way. Probably just not removing in the first place.

Schniz avatar Jul 04 '25 22:07 Schniz

@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.

Schniz avatar Jul 06 '25 07:07 Schniz