Skip to content

Instantly share code, notes, and snippets.

View Ninjani's full-sized avatar

Jay Ninjani

View GitHub Profile
@Ninjani
Ninjani / obsidian_to_md.py
Created March 13, 2021 22:31
Obsidian vault to standard markdown
import re
from pathlib import Path
VAULT = Path("/path/to/vault")
OUTPUT_FOLDER = Path("path/to/output/folder")
# Change this to False if the link should have the full path
# i.e. True =>
# [link](other_file.md) if other_file is in the same folder,
# [link](../other_file.md) if it's one folder up etc.
@Ninjani
Ninjani / README.md
Last active April 8, 2022 15:16
Get a book description from the title

Using with Obsidian and the Templater plugin

  1. Download kring.py somewhere and rename as just kring. (e.g. to /usr/local/bin/kring)
  2. Add a Templater template {{book}} with the content: /usr/local/bin/kring "{{note_title}}" "path/to/vault/Covers/{{note_title}}.png"
  3. CHANGE the Timeout setting to at least 20 as the command can take a while.
  4. To use, make a new note with "Book Title" or "Book Title - Author" as the note title and insert the {{book}} template.