Steps to reproduce
I’ve tried this both on Windows and on a fresh MAcOS install. No plugins, no themes. I want a list of properties that are links, and I’m trying to do it with the CLI because I can’t do it with the import CSV function. Simple CLI command, I thought:
obsidian vault=test property:set type=list file=testingtesting name=IPaddresses value=“[[1.1.1.1]], [[2.2.2.2]]”
Did you follow the troubleshooting guide? [Y/N]
yes
Expected result
I expect to see a list of properties that are links, like…
IPaddresses:
- “[[1.1.1.1]]”
- “[[2.2.2.2]]”
Actual result
Instead of getting the two links as separate properties, I get a single link. It seems like the parser is taking the first double square brackets, and the final double square brackets, and assuming that everything in between is a single string, and therefore a single file to link to. In the graph, it links to…
1.1.1.1]], [[2.2.2.2
and in the frontmatter, it’s
IPaddresses: “[[1.1.1.1]], [[2.2.2.2]]”
instead of
IP addresses:
- “[[1.1.1.1]]”
- “[[2.2.2.2]]”
And when I specify only one of the IPs as a link, then it works just fine. Or if I just have a single link property in the list, that works too.
obsidian vault=test file=testingtesting property:set type=list name=IPaddresses value=“1.1.1.1, [[2.2.2.2]]”
gives me
IPaddresses: - 1.1.1.1
- “[[2.2.2.2]]”
When I escape the doublequotes in MacOS with a backslash…
obsidian vault=test file=testingtesting property:set type=list name=IPaddresses value=““[[1.1.1.1]]”, “[[2.2.2.2]]””
I get these extraneous apostrophes around the links, and the links don’t work…
IPaddresses: - ‘“[[1.1.1.1]]”’
- ‘“[[2.2.2.2]]”’
On Windows, escaping the doublequotes with a backtick gives me the same single-string “link” as happens when I don’t add any quote marks around the links; that’s the original complaint.
Environment
SYSTEM INFO:
Obsidian version: 1.12.7
Installer version: 1.12.7
Operating system: Windows 11 Enterprise 10.0.26100
Login status: not logged in
Language: en
Insider build toggle: off
Live preview: on
Base theme: adapt to system
Community theme: none
Snippets enabled: 0
Restricted mode: off
Plugins installed: 1
Plugins enabled: 1
1: Importer v1.8.6