Taitava / obsidian-shellcommands

Execute system commands via hotkeys or command palette in Obsidian (https://obsidian.md). Some automated events are also supported, and execution via URI links.
GNU General Public License v3.0
348 stars 11 forks source link

Bug: An empty argument in {{yaml_value}}/{{event_yaml_value}} causes a crash. #181

Closed Taitava closed 2 years ago

Taitava commented 2 years ago

{{yaml_value:}}/{{event_yaml_value:}} crashes

Note that the crash happens after typing :, not when no colon is present. kuva kuva

Commit 964678fb6ce7064faa3207107f036db8e507705a moved the YAML value reader logic into a new function, but it didn't change the following line of code, which causes a crash: https://github.com/Taitava/obsidian-shellcommands/blob/964678fb6ce7064faa3207107f036db8e507705a/src/variables/VariableHelpers.ts#L89

this.arguments.property_name should be property_path.

TODO:

Taitava commented 2 years ago

Fixed, will be released in 0.12.0.

Taitava commented 2 years ago

Fix released.