mirror of
https://github.com/anomalyco/opencode.git
synced 2026-05-06 00:12:11 +00:00
file attachments
This commit is contained in:
parent
32d5db4f0a
commit
ee01f01271
2 changed files with 51 additions and 15 deletions
|
|
@ -108,7 +108,7 @@ func (m *editorComponent) Update(msg tea.Msg) (tea.Model, tea.Cmd) {
|
|||
attachment := &textarea.Attachment{
|
||||
ID: uuid.NewString(),
|
||||
Display: "@" + fileName,
|
||||
URL: fmt.Sprintf("file://%s", filePath),
|
||||
URL: fmt.Sprintf("file://./%s", filePath),
|
||||
Filename: fileName,
|
||||
MediaType: mediaType,
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue