From 1346c0e63e2b2c3bb8fc3f2ab8323a1a5efeb6c0 Mon Sep 17 00:00:00 2001 From: dozens Date: Tue, 7 Mar 2023 19:04:19 -0700 Subject: [PATCH] posix > vim --- justfile | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/justfile b/justfile index 49dfdc1..3ff48a0 100644 --- a/justfile +++ b/justfile @@ -8,9 +8,7 @@ draw n: # show a cutup cutup: - recsel -P desc tarot.rec > /tmp/tarotdesc.txt && \ - vim -es -c ":set tw=30" -c ":norm gggqGgg" -c ":g/^$/d" -c ":1,\$!shuf" -c ":wq!" /tmp/tarotdesc.txt && \ - head -n 5 /tmp/tarotdesc.txt + recsel -P desc tarot.rec | fold -sw 30 | sed '/^$/d' | shuf | head -n 5 # example: group by type type: