RafaelGB / obsidian-db-folder

Obsidian Plugin to Allow Notion like database based on folders
MIT License
1.25k stars 61 forks source link

Modify the metadata automatically #226

Open Yubuxin opened 2 years ago

Yubuxin commented 2 years ago

Describe the bug When I change a value of metadata (e.g. date or tags) within the db-table, another metadata (a text field named "pic", I use it to note the wiki-links of my book's cover) always be modified automatically.

To Reproduce Date: 2022-07-11 Start: 2022-07-10 pic: "![[History.jpg]]" (after this error occurring, its value turns into "![[{picture' folder name}/History.jpg|History.jpg]]") about: history

Steps to reproduce the behavior:

  1. open the db-table
  2. change the Date into like "2022-07-01"
  3. the pic's value turns into "![[{picture' folder name}/History.jpg|History.jpg]]"

Desktop (please complete the following information):

RafaelGB commented 2 years ago

hi @Yubuxin , thats the expected behaviour just in case of multiple files with the same name.

those { } were added too? if that so I will include the issue to the roadmap as a bug for sure!

Yubuxin commented 2 years ago

@RafaelGB Thanks for reply, the character { } didn't be added. Understand what you mean, but it seem that this automatic modification can make the dataview table unable to render the image, is there any way to avoid it ?

RafaelGB commented 2 years ago

I will think about a cleaner way to save links. I understand this is not the most fancy solution

RafaelGB commented 2 years ago

With the nested metadata architecture included with 2.7.3 and 2.7.4 we can fix this issue

Commit 9342c1de