Skip to content

1.7.2

Latest

Choose a tag to compare

@github-actions github-actions released this 22 Jul 07:39

[1.7.2] - 2026-07-22

✨ New Features

  • Custom regex copy matchers: add named copy rules with configurable regular expressions, flags, capture groups, descriptions, and enable toggles to copy project-specific text formats.
  • Reorderable copy targets: drag built-in and custom matchers into the desired priority order, including Markdown links.
  • AI regex prompt helper: copy a ready-to-use prompt from the matcher editor to help generate a suitable regular expression.

🐛 Bug Fixes

  • Unicode block display text (fixes #41): block link aliases now apply word limits to space-separated text containing Latin Extended letters, Cyrillic, or Unicode punctuation instead of incorrectly truncating them by character count. CJK text continues to use the character limit, and character truncation no longer splits Unicode surrogate pairs.

♻️ Changed

  • Block display text settings: renamed the English/CJK-oriented labels to word and character limits, with descriptions that reflect the actual truncation strategy.
中文说明(点击展开)

✨ 新功能

  • 自定义正则复制规则:支持添加带名称、说明、正则表达式、标志、捕获组和启用开关的复制规则,用于复制项目特有的文本格式。
  • 复制目标排序:支持拖动内置与自定义匹配器来调整优先级,并将 Markdown 链接纳入可排序目标。
  • AI 正则提示词助手:可从匹配器编辑界面复制即用型提示词,辅助生成合适的正则表达式。

🐛 修复

  • Unicode 块显示文本(修复 #41):包含拉丁扩展字母、西里尔字母或 Unicode 标点的空格分词文本,现在会正确采用单词数上限,不再被错误地按字符截短。CJK 文本仍使用字符数上限,按字符截取时也不会再拆断 Unicode 代理对。

♻️ 变更

  • 块显示文本设置:将原先面向英语/CJK 的标签调整为按词和按字符截取上限,并更新说明以准确反映实际截取策略。

[1.7.1] - 2026-05-28

✨ New Features

  • Display name regex replacement (closes #37): added a "Display name: Regex replacement" option under Special copy format options. When enabled, a find-and-replace (with full regex support including capture groups like $1) is applied to the display text of copied heading/note links. Useful for stripping leading numbers (e.g. ^\d+\.\s*) or other prefixes from headings.
中文说明(点击展开)

✨ 新功能

  • 显示名称正则替换(修复 #37):在「特殊复制格式选项」中新增「显示名称:正则替换」选项。启用后,可对复制的标题/笔记链接的显示文本进行正则查找替换,支持 $1 等捕获组引用。适合去除标题前的序号(如 ^\d+\.\s*)等场景。

[1.7.0] - 2026-05-26

✨ Improvements

  • Code block detection — innermost block semantics: when the cursor is inside nested fenced code blocks (e.g. a ```````` block wrapping a ``` block), the command now copies the innermost block the cursor is in, rather than the outermost. Placing the cursor on an inner fence line (which belongs to the outer block's content) correctly returns the outer block.

🔧 Maintenance

  • Settings tab: replace async/await with void in all onChange handlers, following the Obsidian plugin coding guidelines
  • Settings tab: apply SettingGroup grouping updates
  • package.json: fix name field from obsidian-sample-plugin to easy-copy
中文说明(点击展开)

✨ 改进

  • 代码块检测——最内层语义:光标在嵌套代码块内时(如 ```````` 包裹 ```),智能复制现在复制最内层的代码块,而不是最外层。光标停在内层围栏行上(属于外层块的内容)时,则正确返回外层块。

🔧 维护

  • 设置页:将所有 onChange 回调中的 async/await 改为 void,符合 Obsidian 插件编码规范
  • 设置页:更新 SettingGroup 分组
  • package.json:修正 name 字段,从 obsidian-sample-plugin 更正为 easy-copy