feat(output): export terminal tables as structured HTML/Markdown for lossless copy-paste to note-taking apps
Preflight Checklist
- [x] I have searched existing requests and this feature hasn't been requested yet
- [x] This is a single feature request (not multiple features)
Problem Statement
feat(output): export terminal tables as structured HTML/Markdown for lossless copy-paste to note-taking apps
enhancement claude-code developer-ux
PROBLEM
When Claude Code outputs structured data as terminal box-drawing tables (using Unicode characters like ┌─┬─┐ │ ├─┤ └─┘), copying that output and pasting into any rich-text environment (Google Docs, Notion, Confluence, Apple Notes, etc.) produces broken, misaligned text.
The root cause is that terminal tables depend entirely on monospace font rendering. Paste destinations use proportional fonts by default, and even switching to a monospace font in the destination (e.g. Courier New 8pt in Google Docs) does not fully restore alignment due to subtle character-spacing differences per application.
This is a significant friction point for developers who use Claude Code as a planning/build tool and want to move status summaries, sprint tables, or task breakdowns into their documentation workflow.
CURRENT BEHAVIOUR
Claude Code renders tables like this in the terminal:
┌────────────────────┬────────────┬─────────────────────────────┐
│ Item │ Migrations │ Backend │
├────────────────────┼────────────┼─────────────────────────────┤
│ Accessibility │ 025 ✅ │ auth.service ✅ │
└────────────────────┴────────────┴─────────────────────────────┘
Pasting into Google Docs or any rich-text editor produces garbled columns — characters no longer align.
ENVIRONMENT
• Claude Code (terminal)
• Ubuntu 22.04 via WSL2 on Windows 11
• Destination: Google Docs (reproduced; likely affects all rich-text editors)
ACCEPTANCE CRITERIA
[ ] A table block rendered in the CC terminal can be exported as Markdown, HTML, or CSV
[ ] The exported output, when pasted into Google Docs, preserves column alignment perfectly
[ ] The feature is accessible without leaving the CC session (command or keybind)
[ ] No change to existing terminal rendering — purely additive
Proposed Solution
PROPOSED SOLUTION
Add a /copy or /export command (or a keybind like Ctrl+Shift+C on a table block) that re-serialises the last table output in one or more portable formats:
- Markdown table — renders natively in Notion, GitHub, Obsidian, Confluence
- HTML table — paste into Google Docs, Word, any browser-based editor
- CSV — for spreadsheet drop-in (Google Sheets, Excel)
Example: user types /export markdown and Claude Code emits the table as clean GFM:
| Item | Migrations | Backend |
|---------------|------------|----------------------|
| Accessibility | 025 ✅ | auth.service ✅ |
This copies and pastes with zero alignment loss into any destination.
Alternative Solutions
ALTERNATIVES CONSIDERED
• Instructing users to switch destination font to monospace — fragile, app-specific, still misaligns in some apps
• Screenshotting the terminal — loses selectability and searchability of text
• Manually re-typing as Markdown — unacceptable friction for multi-row tables
Priority
Low - Nice to have
Feature Category
Other
Use Case Example
_No response_
Additional Context
_No response_
This issue has 2 comments on GitHub. Read the full discussion on GitHub ↗