# Obsidian

- Page: https://shared.btbytes.com/p/obsidian
- Date: 2023-04-12
- Tags: markdown, text-editor, pkm

[Obsidian](https://obsidian.md) is a knowledge base that works on top of your local folder of plain text files. Think of [logseq](https://shared.btbytes.com/p/logseq) and roamresearch.

<figure>
  <img src="/img/obsidian-graph.png" alt="Obsidian Graph" with=500>
  <figcaption>Obsidian Graph, manually exported from the Graph View as a screenshot - 2024-04-05</figcaption>
</figure>

## How I'm using Obsidian

<a id="howiam"></a>

* This website is orgnized using markdown
* I open up the `content` directory as a vault (obsidian word).
* I edit them as any other markdown file
* The hotkeys and `/` commands are handy in writing
* I use WikiLinks (double square brackets) to link to peer pages, these are converted to HTML links via the
Python-Markdown extension. `    wikilinks = WikiLinkExtension(base_url="/", end_url=".html")`

## Templates


Creating and using templates in Obsidian.

Use case: I write my [notebooks](https://www.btbytes.com/notebooks.html) and [posts](https://www.btbytes.com/archive) using markdown and ergo obsidian. The two types have a frontmatter that looks like this (taken from this document):


```
---
title: Obsidian
kind: notebook
date: 2023-04-12
tags:
  - pkm
  - markdown
  - text-editor
---
```

Using instructions from the [templates](https://help.obsidian.md/Plugins/Templates) page, i created `_obstemplates` directory and added `notebook.md` as a file with the following content:

```
---
title: {{title}}
date: {{date}}
kind: post
description: TODO
tags:
  - TODO
---

```

To use this template, use the "ribbon" and select "Insert Template". voila!

## Plugins

I'm using these plugins

- dataview
- emoji-toolbar
- style-settings
- periodic-notes
- table-editor

## Alfred Workflows

- [Quick Journal Logging in Obsidian using Alfred and Shortcuts - Sridhar Katakam's Blog](http://web.archive.org/web/20230209230431/https://sridhar.blog/quick-journal-logging-in-obsidian-using-alfred-and-shortcuts/); useful ref : [Navigation | Obsidian Advanced URI](https://vinzent03.github.io/obsidian-advanced-uri/actions/navigation)

## Obsidian published websites

Examples of interesting obsidian published websites

- [MTH 225 Fall 2023 - Obsidian Publish](https://publish.obsidian.md/mth225/START+HERE)
- [Second Brain](https://www.ssp.sh/brain/) - published using [Quartz](https://quartz.jzhao.xyz)
- [Home - Chris Albon](http://web.archive.org/web/20231123052552/https://chrisalbon.com/Home), notes on [machine-learning](https://shared.btbytes.com/p/machine-learning)

## Templater

- investigate how to use [Templater](https://github.com/SilentVoid13/Templater) and [saml-dev/obsidian-custom-js: An Obsidian plugin to allow users to reuse code blocks across all devices and OSes (github.com)](https://github.com/saml-dev/obsidian-custom-js).
- [Automate Your Vault With Templater - How to Use Templater in Obsidian - YouTube](https://www.youtube.com/watch?v=QpJbeP8f55A)

----

Related:

[Introducing My Knowledge Lakehouse](https://tabokie.github.io/non-fiction/2024/01/13/log-kb.html)
