RafaelGB/obsidian-db-folder

[Bug]: does not work with existing columns with a space in their ID

nerkuda opened this issue · 3 comments

Contact Details

nerkuda@gmail.com

What happened?

In the table settings, I added an existing column, for example, "место покупки". Column ID was automatically changed to "место_покупки". The existing values from the notes are not displayed in the table.

If you change the value in the table, the "место_покупки" field will be created in the .md file next to the existing "место покупки" field

What platform were you using?

Desktop

Version of the plugin

3.5.1

Relevant log output

No response

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

  • I have verified that I am on the latest version

Are you check if there is a similar issue?

  • I have verified that there are not similar issues

First of all you're not supposed to have spaces in your properties' names

I tested it myself and created test test with value test
image

In the DB plugin when adding existing properties i get following recommendations:
image

When choosing test-test the corresponding testvalue gets displayed correctly in the DB view
test test however would not show anything.
image

So even with spaces it's working

I saw this issue and fixed it by replacing spaces with _

Annoying but manageable

First of all you're not supposed to have spaces in your properties' names

I tested it myself and created test test with value test image

In the DB plugin when adding existing properties i get following recommendations: image

When choosing test-test the corresponding testvalue gets displayed correctly in the DB view test test however would not show anything. image

So even with spaces it's working

How would I go about getting the plugin to read a "-' in the column ID? I'm not allowed to change the ID itself because a plugin is depending on that particular format.
Edit: Specifically the nested columns under the column with a "-" in the title.