[PR #1191] [CLOSED] fix(tui): allow character-by-character editing of TUI file attachments #9846

Closed
opened 2026-02-16 18:14:16 -05:00 by yindo · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1191
Author: @neriousy
Created: 7/21/2025
Status: Closed

Base: devHead: fix/tui-attachment-backspace-editing


📝 Commits (1)

  • bc2faab fix(tui): allow character-by-character editing of TUI file attachments

📊 Changes

3 files changed (+108 additions, -49 deletions)

View changed files

📝 packages/tui/internal/components/dialog/complete.go (+61 -40)
📝 packages/tui/internal/components/textarea/textarea.go (+28 -0)
📝 packages/tui/internal/tui/tui.go (+19 -9)

📄 Description

Enables backspace on file attachments to convert to editable text instead of deleting it entirely.
When user presses backspace on @stainless.yml, it becomes @stainless.ym with completion dialog open for continued editing.

If u want to delete the whole file you can still press CTRL + W


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/anomalyco/opencode/pull/1191 **Author:** [@neriousy](https://github.com/neriousy) **Created:** 7/21/2025 **Status:** ❌ Closed **Base:** `dev` ← **Head:** `fix/tui-attachment-backspace-editing` --- ### 📝 Commits (1) - [`bc2faab`](https://github.com/anomalyco/opencode/commit/bc2faab745ce33db2737df186e89e6ff11497e5f) fix(tui): allow character-by-character editing of TUI file attachments ### 📊 Changes **3 files changed** (+108 additions, -49 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/dialog/complete.go` (+61 -40) 📝 `packages/tui/internal/components/textarea/textarea.go` (+28 -0) 📝 `packages/tui/internal/tui/tui.go` (+19 -9) </details> ### 📄 Description Enables backspace on file attachments to convert to editable text instead of deleting it entirely. When user presses backspace on @stainless.yml, it becomes @stainless.ym with completion dialog open for continued editing. If u want to delete the whole file you can still press CTRL + W --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
yindo added the pull-request label 2026-02-16 18:14:16 -05:00
yindo closed this issue 2026-02-16 18:14:16 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9846