Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/tomodachi94/obsidian-metadata-handler

Adds some useful YAML frontmatter to your Obsidian notes
https://github.com/tomodachi94/obsidian-metadata-handler

obsidian-md obsidian-script python yaml-frontmatter

Last synced: about 1 month ago
JSON representation

Adds some useful YAML frontmatter to your Obsidian notes

Awesome Lists containing this project

README

        

# Obsidian Metadata Handler

:warning: **This script has been deprecated. It's not guaranteed to work.** :warning:

> A small Python script to update system metadata and then put it into the YAML frontmatter.

**Note: This is unoffical and is not associated with the developers of Obsidian.**

So far, this script is able to fill in the created and modified dates. Filenames are coming soon.

## Use cases

- You want to move some files around, but are scared of losing the metadata?
- You want to make sure your grandchildren can read the metadata?
- You want to use the metadata in a Dataview script?

This is for you!

## Running from source

**It's recommended to do modified date first, as the modified date *will* be overrided when updating the YAML frontmatter.**

This assumes you have Python and `pip` installed as a prerequisite.

### Modified dates

```bash
pip install -r requirements.txt
python obsidian-metadata-handler/modified.py -p "full_path_to_your_vault"
```

### Creation dates

```bash
pip install -r requirements.txt
python obsidian-metadata-handler/created.py -p "full_path_to_your_vault"
```

## Native builds

These are being worked on, stay tuned!

## See also

- [Forum post](https://forum.obsidian.md/t/yaml-metadata-prefixer-a-python-script/22738)