obsidian-db-folder icon indicating copy to clipboard operation
obsidian-db-folder copied to clipboard

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

Open ManuelVicenteG opened this issue 2 years ago • 4 comments

Contact Details

[email protected]

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?

  • [X] I have verified that I am on the latest version

Are you check if there is a similar issue?

  • [X] I have verified that there are not similar issues

ManuelVicenteG avatar Feb 16 '23 22:02 ManuelVicenteG

thanks for the report, added to the roadmap

RafaelGB avatar Feb 16 '23 23:02 RafaelGB

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.

cleonibbles avatar Apr 13 '23 22:04 cleonibbles

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 avatar Apr 14 '23 14:04 RafaelGB

Fixed for the next version =)

Commit 40ee10ad

RafaelGB avatar Apr 26 '23 21:04 RafaelGB