Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/moisentinel/obsortian

parse yaml frontmatter and sort markdown files
https://github.com/moisentinel/obsortian

markdown obsidian obsidian-md sort yaml

Last synced: 3 days ago
JSON representation

parse yaml frontmatter and sort markdown files

Awesome Lists containing this project

README

        

# obsortian

sort and find markdown files by yaml frontmatter.


thank you necessity.


---

Tested only on an [Obsidian](https://obsidian.md) vault, but may be used for other stuff that uses markdown and YAML frontmatter.

## Logic:
- Checks for files on a given path
- Removes any "exclusions"
- Checks for properties (if they exist) on the frontmatter
- Prints/ writes the files.

### Current usage:
For now, it searches the `tags` and `status` properties in the frontmatter, finds the files and returns a *random* list of 20 files from it. (this is more of a personal thing, working to generalise it.)

You can set up which `tag` or `status` to look for in the `conf.json`, and set up the vault path and excluded folders:

```json
{
"vault_path": "/home/nibir/Documents/obsidian_vault/",
"exclusions": ["Templates", "Scripts"], // excluded folder must be in array
"tag": "Study",
"status": "needs work"
}
```

## Installation

```bash
git clone https://github.com/moiSentineL/obsortian.git

cd obsortian

python finder.py
```

## Contribution

fix the code, goddamit.