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:
parent
2e326eb30d
commit
325d4b1529
2 changed files with 14 additions and 0 deletions
1
Brewfile
1
Brewfile
|
|
@ -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
13
mise-tasks/zk-docs
Executable 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue