[PR #1117] [MERGED] feat(tui): parse for file attachments when exiting EDITOR #9814

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/1117
Author: @timoclsn
Created: 7/18/2025
Status: Merged
Merged: 7/18/2025
Merged by: @adamdotdevin

Base: devHead: add-attachement-parsing-when-closing-editor


📝 Commits (2)

  • a510197 Add attachement parisng when closing editor
  • 34ef571 Remove duplicate code and add attachement helper functions

📊 Changes

2 files changed (+103 additions, -60 deletions)

View changed files

📝 packages/tui/internal/components/chat/editor.go (+102 -59)
📝 packages/tui/internal/tui/tui.go (+1 -1)

📄 Description

When moving from EDITOR to input, parse content for file attachments.

  • Looks for strings that start with @ and checks if they are files. If yes, creates an attachment.
  • Adds a couple of helper functions for the attachments handling to remove duplicated code.

🔄 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/1117 **Author:** [@timoclsn](https://github.com/timoclsn) **Created:** 7/18/2025 **Status:** ✅ Merged **Merged:** 7/18/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `add-attachement-parsing-when-closing-editor` --- ### 📝 Commits (2) - [`a510197`](https://github.com/anomalyco/opencode/commit/a5101974d08182f11b19bf1def512b1d52e08d3d) Add attachement parisng when closing editor - [`34ef571`](https://github.com/anomalyco/opencode/commit/34ef5718deb353f6ec994e653294fb89ceaddfd3) Remove duplicate code and add attachement helper functions ### 📊 Changes **2 files changed** (+103 additions, -60 deletions) <details> <summary>View changed files</summary> 📝 `packages/tui/internal/components/chat/editor.go` (+102 -59) 📝 `packages/tui/internal/tui/tui.go` (+1 -1) </details> ### 📄 Description When moving from EDITOR to input, parse content for file attachments. - Looks for strings that start with @ and checks if they are files. If yes, creates an attachment. - Adds a couple of helper functions for the attachments handling to remove duplicated code. --- <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:13 -05:00
yindo closed this issue 2026-02-16 18:14:13 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9814