obsidian-shellcommands icon indicating copy to clipboard operation
obsidian-shellcommands copied to clipboard

New output channel: Assign custom variables

Open Taitava opened this issue 1 year ago • 1 comments

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

This output channel assumes the output is a JSON object, reading it's properties and assigning them to custom variables.

For example, consider the following JSON output:

{
    "_link_to_file": "My folder/My note.md",
    "_link_alias": "Meeting notes"
}

This would assign the value My folder/My note.md to a custom variable named {{_link_to_file}}, and Meeting notes to {{_link_alias}}.

TODO:

  • [x] Implement the thing.
  • [x] Add to CHANGELOG.md
  • [x] Write documentation.

Taitava avatar Jan 17 '24 18:01 Taitava

Done. Will be released in 0.22.0.

Taitava avatar Jan 21 '24 17:01 Taitava

This is now released.

Taitava avatar May 05 '24 15:05 Taitava