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

New variable `{{yaml_content}}` #267

Closed Taitava closed 1 year ago

Taitava commented 1 year ago

Discussed in https://github.com/Taitava/obsidian-shellcommands/discussions/57

Originally posted by **Taitava** September 30, 2021 - `{{yaml_content}}`: Give only YAML.

TODO:

Taitava commented 1 year ago

Done. Will be released in 0.18.0.

Taitava commented 1 year ago

Test suite: This feature seems to cause a bug: when using command palette to execute a shell command that contains {{date:YYYY-MM-DD}}, the variable's value is rendered like the variable was {{date:dddd}} because that happens to be the last shell command using {{date}} in the test suite's command palette.

I was not able to write this clearly as I'm in a hurry.

Taitava commented 1 year ago

Released.