jyqqs77 downloads把 AI 对话(豆包/DeepSeek 等)复制的 Tab/空格纯文本一键转成标准 Markdown 表格,支持可选的数字排序列
Obsidian plugin · Turn plain-text tables copied from AI into real Markdown tables instantly.
When you copy a table from an AI chat (ChatGPT, Claude, DeepSeek, etc.) or any other source, the clipboard actually contains plain text — rows aligned with Tab or spaces:
Capability Command Use case
Cache object SET / GET / EXPIRE user profile, config, session
Batch caching MSET / MGET fewer network round-trips
Pasting that into Obsidian produces scattered text and the table structure is completely lost. Paste Table converts it back into a real Markdown table with one action.
Tab, | (pipe), and consecutive-space separators, covering most AI copy scenarios.# / 1 / 2 / 3 … to the leftmost column.<table> (e.g. from browsers) when present.Before (copied from AI)
Capability Command Use case
Cache object SET / GET / EXPIRE user profile, config
Batch caching MSET / MGET fewer round-trips
After (inserted into Obsidian)
| Capability | Command | Use case |
|---|---|---|
| Cache object | SET / GET / EXPIRE | user profile, config |
| Batch caching | MSET / MGET | fewer round-trips |
Settings → Community plugins → Turn off Restricted mode → Browse → search "Paste Table" → Install & Enable
main.js, manifest.json, styles.css from the releases<Vault>/.obsidian/plugins/paste-table/
Tip: bind
Ctrl+Shift+Vto Clipboard plain text (Settings → Hotkeys) for an instant "copy → paste-as-table" workflow.
| Command | Description |
|---|---|
| Clipboard plain text | Reads the clipboard and converts to a Markdown table if a table structure is detected |
| Convert selection | Converts selected Tab/space-aligned text into a Markdown table |
| Clipboard HTML | Converts clipboard HTML <table> data (fallback) |
Workflow
Ctrl+Shift+V (or run the command from the palette)| Setting | Description | Default |
|---|---|---|
| Row number column | Show # / 1 / 2 / 3 … on the leftmost column |
Off |
| Min space gap | Minimum consecutive spaces to treat as a column separator | 2 |
Q: My content was inserted as-is instead of being converted. A: It failed the "looks like a table" check — likely a single line or not enough structure. Try lowering "Min space gap".
Q: Do you upload my notes or clipboard? A: No. Everything runs locally; the plugin makes no network requests.
Q: Does it work on mobile?
A: It is a desktop-only plugin (isDesktopOnly: true). Mobile support may be evaluated later.
Q: Hotkey not working?
A: Obsidian doesn't reserve Ctrl+Shift+V by default — just bind the command under Settings → Hotkeys.
git clone https://github.com/SpiderK-104/paste-table.git
cd paste-table
npm install # install dependencies
npm run dev # watch mode
npm run build # production build
npm run lint # lint
从 AI 对话(豆包、DeepSeek、腾讯元宝…)或其他任意来源内容中复制表格时,剪贴板里拿到的其实是纯文本——用 Tab 或空格对齐的文本行,举个例子:
能力 用到的指令 场景
缓存对象 SET / GET / EXPIRE 用户信息、配置、session
批量缓存 MSET / MGET 减少网络往返
直接粘贴进 Obsidian 会变成一堆散乱文字,表格结构全部丢失。Paste Table 帮你一键转换回真正的 Markdown 表格。
Tab → | 管道 → 连续空格 三种分隔形式,覆盖绝大多数 AI 复制场景# / 1 / 2 / 3 … 序号列<table>(如浏览器网页)时也能转换设置 → 第三方插件 → 关闭安全模式 → 社区插件 → 浏览 → 搜索 "Paste Table" → 安装并启用
国内访问官方市场困难时,推荐使用 PKMer Market 加速安装与更新。
建议把
Ctrl+Shift+V绑定到 Clipboard plain text(设置 → 快捷键),实现「复制 → 粘贴即表格」。
| 命令 | 说明 |
|---|---|
| Clipboard plain text | 读取剪贴板,检测到表格结构即转成 Markdown 表格插入 |
| Convert selection | 直接将选中的 Tab / 空格对齐文本转换为表格 |
| Clipboard HTML | 剪贴板有 HTML <table> 时按 HTML 转换(保底方案) |
| 设置 | 说明 | 默认值 |
|---|---|---|
| 数字排序列 | 表格最左侧显示 # / 1 / 2 / 3… 序号列 |
关 |
| 最小连续空格数 | 空格对齐表格的列分隔阈值,连续 n 个空格视为一列 | 2 |
Q:为什么我的内容被原样插入而没有转换? A:说明文本未通过「像表格」检测。可能是单行文本或不足以构成表格结构;也可以调低「最小连续空格数」再试。
Q:会把我笔记内容或剪贴板上传吗? A:不会。所有转换都在本地完成,插件不发起任何网络请求。
Q:支持手机端吗?
A:插件声明为桌面端(isDesktopOnly: true)。核心逻辑是纯 TypeScript,后续版本可评估开放移动端。