Add zk-docs mise task to concatenate blumeops zettelkasten cards

Adds a script that uses bat to display all zettelkasten cards tagged
with 'blumeops', with the main project card shown first.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Erich Blume 2026-01-15 11:02:28 -08:00
commit 325d4b1529
2 changed files with 14 additions and 0 deletions

View file

@ -1,2 +1,3 @@
# CLI tools for blumeops management
brew "bat" # Syntax-highlighted file concatenation
brew "tea" # Gitea/Forgejo CLI for forge.tail8d86e.ts.net

13
mise-tasks/zk-docs Executable file
View file

@ -0,0 +1,13 @@
#!/usr/bin/env bash
#MISE description="Concatenate all blumeops zettelkasten cards"
set -euo pipefail
ZK_DIR="$HOME/code/personal/zk"
MAIN_CARD="$ZK_DIR/1767747119-YCPO.md"
# Find all files tagged with blumeops (excluding main card)
other_cards=$(grep -l '^ - blumeops$' "$ZK_DIR"/*.md 2>/dev/null | grep -v "$(basename "$MAIN_CARD")" | sort)
# Concatenate: main card first, then others
bat --style=full "$MAIN_CARD" $other_cards