From e13ab8e855924c43c730b93243aeeeabc0ccda60 Mon Sep 17 00:00:00 2001 From: Julian Prein Date: Tue, 12 Apr 2022 17:18:00 +0200 Subject: [PATCH] zk: Add a horizontal ruler before the modeline When using the zettel as a commit message this is also convenient as git will ignore everything behind it. (Which also means that all horizontal rulers in a zettel should use atleast 4 dashes) --- .config/zsh/autoload/zk | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/.config/zsh/autoload/zk b/.config/zsh/autoload/zk index fc045a9..0b59fcf 100755 --- a/.config/zsh/autoload/zk +++ b/.config/zsh/autoload/zk @@ -24,10 +24,13 @@ dir="$(date +"%Y/%m/%d/%H%M%S")" mkdir -p "$dir" if [[ ! -e "$dir/README.md" ]]; then - # Paste zettel template + # Paste zettel template, including header prefix, end-of-payload divider and + # vim-modeline cat >"$dir/README.md" <<-EOF # + --- + EOF else