Obsidian-Memos icon indicating copy to clipboard operation
Obsidian-Memos copied to clipboard

[Feature request]: Update markid correctly when update thino id

Open kbyyd24 opened this issue 2 months ago • 1 comments

Bug Description | BUG 描述

引用采用的是 markdown 的链接语法,链接地址是 yyyyMMddhhmmss+<last row number>。所以当我修改了被引用的 memo 的原始文件,导致 memo 行数变化时,就会出现这个问题。这时点击引用,就会创建一个空白文件,名称则是链接地址。

建议

可以使用一些不可变的信息作为引用地址,比如 Obsidian 的块引用、使用时间作为引用(yyyyMMddhhmmssSSS)等等。为了兼容旧数据,这些新方式可以作为配置选项。

Relevant Screenshot | 相关截图

No response

To Reproduce | 重现问题

  1. 创建第一条 memo1,其在所在文件的行数为 10
  2. 创建第二天 memo2。引用 memo1,其链接地址假设为 2024041816320010
  3. 修改 memo1 所在的文件,使其行数变成 11
  4. 回到 Thino,点击 memo2 里的引用,不会打开 memo1,而是创建文件 2024041816320010,也就是第二步的链接地址
  5. 回到 memo2,修改引用地址为 2024041816320011 并保存,然后再点击引用就能成功打开 memo1

Obsidian Version | Obsidian 版本

1.5.12

Which editor are you using? (If applicable)

  • [ ] New Editor (WYSIWYG) | 新编辑器
  • [ ] Legacy Editor (Markdown) | 旧编辑器

Checklist

  • [X] I updated to the latest version of the plugin. 我更新到了插件的最新版本。

kbyyd24 avatar Apr 18 '24 09:04 kbyyd24

Bot detected the issue body's language is not English, translate it automatically...


Title: [Bug]: After editing the original file, the reference becomes invalid

Issues-translate-bot avatar Apr 18 '24 09:04 Issues-translate-bot