Skip to main content

Add a snippet for my Obsidian note header

ID
4518e92
date
2024-04-10 06:22:45+00:00
author
Alex Chan <alex@alexwlchan.net>
parent
0be183a
message
Add a snippet for my Obsidian note header
changed files
2 files, 8 additions

Changed files

create_snippets.py (6849) → create_snippets.py (6958)

diff --git a/create_snippets.py b/create_snippets.py
index a037633..d58abec 100755
--- a/create_snippets.py
+++ b/create_snippets.py
@@ -223,6 +223,11 @@ SNIPPETS = {
     # I can never remember the order of args to this function,
     # so when I start typing it, add a comment to help me out.
     "datetime.datetime.strp": "datetime.datetime.strptime({cursor})  # date_string, format",
+
+    # =================
+    # Obsidian snippets
+    # =================
+    ";nd": read("note_header.txt"),
 }
 # fmt: on
 

expansions/note_header.txt (0) → expansions/note_header.txt (35)

diff --git a/expansions/note_header.txt b/expansions/note_header.txt
new file mode 100644
index 0000000..c3638ba
--- /dev/null
+++ b/expansions/note_header.txt
@@ -0,0 +1,3 @@
+---
+date: {isodate:yyyy-MM-dd}
+---