From 3be007871ef4ac9c0949e4cf02b89bd1875812e6 Mon Sep 17 00:00:00 2001 From: Mike Levin Date: Mon, 18 May 2026 12:59:55 -0400 Subject: [PATCH] fix: suppress header for machine-readable output --- flake.nix | 1 + scripts/articles/lsa.py | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 5950e1d0..aee9a888 100644 --- a/flake.nix +++ b/flake.nix @@ -667,6 +667,7 @@ runScript = pkgs.writeShellScriptBin "run-script" '' alias chop='nvim foo_files.py' alias story='python prompt_foo.py -l [:] --no-tree' alias latest='python prompt_foo.py -a [-1:] --no-tree' + alias still='python prompt_foo.py --chop ROLLING_PIN_CHOP --no-tree' alias release='python release.py --release --force' alias g='clear && echo "$ git status" && git status' m() { diff --git a/scripts/articles/lsa.py b/scripts/articles/lsa.py index b8d985e0..fe0a7b47 100644 --- a/scripts/articles/lsa.py +++ b/scripts/articles/lsa.py @@ -190,7 +190,9 @@ def main(): # Determine the sort description based on the reverse flag sort_desc = "Newest First" if args.reverse else "Oldest First" - print(f"# 🎯 Target: {targets[target_key]['name']} [{sort_desc}]\n", flush=True) + # Suppress header for machine-readable output formats + if args.fmt not in ('paths', 'slugs', 'dated-slugs'): + print(f"# 🎯 Target: {targets[target_key]['name']} [{sort_desc}]\n", flush=True) metadata = [] # --- PASS 1: FAST METADATA EXTRACTION ---