[PR #989] [MERGED] feat(tui): add /export command to export conversation to editor #9772

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

📋 Pull Request Information

Original PR: https://github.com/anomalyco/opencode/pull/989
Author: @josephschmitt
Created: 7/14/2025
Status: Merged
Merged: 7/15/2025
Merged by: @adamdotdevin

Base: devHead: editor-convo


📝 Commits (3)

  • 5a89b63 feat(tui): add /history command to export conversation to editor
  • 470da35 Rename command to export
  • f942549 Add export keybinding to keybinds schema

📊 Changes

3 files changed (+98 additions, -0 deletions)

View changed files

📝 packages/opencode/src/config/config.ts (+1 -0)
📝 packages/tui/internal/commands/command.go (+7 -0)
📝 packages/tui/internal/tui/tui.go (+90 -0)

📄 Description

Adds a new /export command that exports the current conversation history as a formatted markdown file and opens it in the user's default editor. This allows users to easily view, reference, and work with their conversation history outside the TUI.

🤖 Generated with opencode

I originally tried to implement tmux-style copy mode, but that ended up being way too fiddly, adding a whole bunch of rendering headaches. This gets me most of what I want, which is to be able to select or modify text in the conversation history, and to do it with the power of my editor.


🔄 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/989 **Author:** [@josephschmitt](https://github.com/josephschmitt) **Created:** 7/14/2025 **Status:** ✅ Merged **Merged:** 7/15/2025 **Merged by:** [@adamdotdevin](https://github.com/adamdotdevin) **Base:** `dev` ← **Head:** `editor-convo` --- ### 📝 Commits (3) - [`5a89b63`](https://github.com/anomalyco/opencode/commit/5a89b63ba8a7a0db6087bc501d000c0953349feb) feat(tui): add /history command to export conversation to editor - [`470da35`](https://github.com/anomalyco/opencode/commit/470da352b48e2f720428d1515a2b678ce75cabef) Rename command to export - [`f942549`](https://github.com/anomalyco/opencode/commit/f942549ae2151ed8e48e6d83e63d1c52e4b2126e) Add export keybinding to keybinds schema ### 📊 Changes **3 files changed** (+98 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `packages/opencode/src/config/config.ts` (+1 -0) 📝 `packages/tui/internal/commands/command.go` (+7 -0) 📝 `packages/tui/internal/tui/tui.go` (+90 -0) </details> ### 📄 Description Adds a new `/export` command that exports the current conversation history as a formatted markdown file and opens it in the user's default editor. This allows users to easily view, reference, and work with their conversation history outside the TUI. 🤖 Generated with [opencode](https://opencode.ai) I originally tried to implement tmux-style copy mode, but that ended up being way too fiddly, adding a whole bunch of rendering headaches. This gets me most of what I want, which is to be able to select or modify text in the conversation history, and to do it with the power of my editor. --- <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:08 -05:00
yindo closed this issue 2026-02-16 18:14:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#9772