posix > vim

main
dozens 2023-03-07 19:04:19 -07:00
parent 704259d3e0
commit 1346c0e63e
1 changed files with 1 additions and 3 deletions

View File

@ -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: