Disclaimer: This has not been properly tested, make sure to have backups, use version control and test it on a test vault first.
- Create a YAML config file
config.yml
(see example below) pip3 install -r requirements.txt
- Set the values for the keys and the vault path.
./main.py
Example config:
keys: ["parent"] # the YAML keys of which the values shall be transformed
vault_path: "/Users/username/vault_path/" # absolute path to your vault
exclude: "Templates" # optional, leave string empty if nothing is to be excluded, but the key needs to exist
convert_inline: false # whether to convert key:: value
Easy creation on Linux/macOS
cat <<< '''keys: ["parent"] # the YAML keys of which the values shall be transformed
vault_path: "/Users/username/vault_path/" # absolute path to your vault
exclude: "Templates" # optional, leave string empty if nothing is to be excluded, but the key needs to exist
convert_inline: false # whether to convert key:: value
''' > config.yml