[1.6.1] - 2026-05-12
✨ Added
- Code block copy: When the cursor is inside a fenced code block (
```), the smart copy command now copies the block content directly — no more accidentally triggering block ID generation. - Code block copy behavior setting: A new "Code Block" settings group lets you choose what happens when copying from inside a code block:
- Copy plain text (default) — copies the code content without the surrounding
```fence lines - Copy code block (with fences) — copies the full block including the opening
```langand closing```lines - Generate block link — falls through to the existing block ID generation behavior (same as before this feature)
- Disabled — skips code block detection entirely
- Copy plain text (default) — copies the code content without the surrounding
改动内容(点击展开中文说明)
✨ 新增
- 复制代码块:当光标位于代码块(
```)内时,智能复制命令现在会直接复制代码块内容,不再误触发块ID生成。 - 代码块复制行为设置:新增「代码块」设置分组,可自定义在代码块内按下智能复制时的行为:
- 复制纯文本(默认)—— 复制代码内容,不含前后的
```围栏行 - 复制代码块(含
```) —— 复制完整代码块,包括开头的```lang和结尾的```行 - 生成块链接 —— 沿用原有的块ID生成逻辑(与此功能上线前行为一致)
- 禁用 —— 跳过代码块检测,不做任何特殊处理
- 复制纯文本(默认)—— 复制代码内容,不含前后的
[1.6.0] - 2026-05-09
✨ Added
- Paste-time link path resolution: When "Resolve link path on paste" is enabled, Easy Copy regenerates link paths based on the destination file's location at paste time.
- Under "Follow Obsidian settings", uses your vault's configured path style (shortest / relative / absolute)
- Under explicit Wiki/Markdown format, uses shortest-unique paths only
- Same-file heading paste simplifies automatically (e.g.
[[#Setup]]instead of[[MyProject#Setup]])
🐛 Fixed
simplifiedHeadingToNoteLinksetting now correctly controls link simplification (previously had no effect in some configurations)
♻️ Changed
- Extracted
copyMetadata.tsandpasteResolution.tsas pure-function modules with full test coverage - Added 98 new tests (total: 184)
改动内容(点击展开中文说明)
✨ 新增
- 粘贴时解析链接路径:启用「粘贴时解析链接路径」后,Easy Copy 会在粘贴时根据目标文件位置重新生成链接路径。
- 使用「跟随 Obsidian 设置」时,沿用软件设置中的路径风格(最短/相对/绝对)
- 使用明确的 Wiki/Markdown 格式时,仅使用最短唯一路径
- 同一文件内粘贴标题自动简化(如
[[#Setup]]而非[[MyProject#Setup]])
🐛 修复
simplifiedHeadingToNoteLink设置现在正确控制链接简化逻辑(之前在某些配置下无效)
♻️ 变更
- 提取
copyMetadata.ts和pasteResolution.ts为纯函数模块,完整测试覆盖 - 新增 98 个测试(总计 184 个)