RafaelGB / obsidian-db-folder

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

[Bug]: In enumerations with wikilins add an extra "]" at the end #824

Open ManuelVicenteG opened 1 year ago

ManuelVicenteG commented 1 year ago

Contact Details

manuel.vicente.ga@gmail.com

What happened?

In enumerations with wikilins add an extra "]" at the end.

For example. A YAML field of type

Field:: [Wikilink 1], [Wikilink 2].

Returns the links in the table but adds an extra ] at the end.

Wikilink 1, Wikilin 2 ]

Thank you very much Rafael for the great work with DB Folder.

What platform were you using?

Desktop

Version of the plugin

3.3.1

Relevant log output

No response

Are you using the latest version of the plugin in your Obsidian vault?

Are you check if there is a similar issue?

RafaelGB commented 1 year ago

thanks for the report, added to the roadmap

cleonibbles commented 1 year ago

I have a lot of lists containing wikilinks in my vault, and so I think I'm running into the same issue. I have some more details for when you get to it as well as a temporary fix for users.

The problem is that when the opening bracket of the array touches the open brackets of the wikilinks it breaks the bullet point list display, so the closing bracket just shows up as appended text.

2023-04-13 22_53_25-Game Database - TTRPGs - Obsidian v1 1 16

When you add a space it displays correctly.

2023-04-13 22_53_33-Game Database - TTRPGs - Obsidian v1 1 16 2023-04-13 22_53_40-Game Database - TTRPGs - Obsidian v1 1 16

However, this doesn't save and as soon as you close and reopen the database table it will be reverted.

The temporary fix for this is to go to the note itself and add square brackets to contain the list, making sure that there's a space between the array bracket and the wikilink bracket.

For example, instead of Genre:: [[Weird]], [[Dream]], [[Crawler]], writing it as Genre:: [ [[Weird]], [[Dream]], [[Crawler]] ]

Unfortunately, this does make the opening and closing brackets part of the field itself. It will show up when using inline references which is ugly, and I don't know whether it would impact querying.

RafaelGB commented 1 year ago

thanks for all your testing! I will prioritise this issue for the next minor version. With your feedback I think we can find a solution

RafaelGB commented 1 year ago

Fixed for the next version =)

Commit 40ee10ad