citadel

My dotfiles, scripts and nix configs
git clone git://jb55.com/citadel
Log | Files | Refs | README | LICENSE

commit 1b555a3ed52dde5300a5e240385b1c958528a9ef
parent cd4b9f54918af9cdabaf8ecd813587bc642f7136
Author: William Casarin <jb55@jb55.com>
Date:   Sat, 14 Nov 2020 16:15:15 -0800

fuzz updates

Diffstat:
Mbin/fuzz-notmuch-archive | 2+-
Mbin/fuzz-notmuch-query-messages | 2+-
Mbin/fuzz-notmuch-query-thread | 2+-
Mbin/fuzz-notmuch-threads | 2+-
Abin/notmuch-thread-table | 2++
Mbin/recent-files | 2+-
6 files changed, 7 insertions(+), 5 deletions(-)

diff --git a/bin/fuzz-notmuch-archive b/bin/fuzz-notmuch-archive @@ -5,6 +5,6 @@ set -eou pipefail thread_search=$(fuzz-notmuch-query-thread) threads=$(eval "$thread_search") -fuzz-record-command "$thread_search | xargs notmuch tag -inbox" +fuzz-record-command "res=\$($thread_search) && notmuch tag -inbox \$res" echo notmuch tag -inbox $threads diff --git a/bin/fuzz-notmuch-query-messages b/bin/fuzz-notmuch-query-messages @@ -2,4 +2,4 @@ set -eou pipefail search_query=$(fuzz-notmuch-query --output=summary --format=json) -echo "$search_query | jq -rcC '.[] | [.date_relative,.subject,.authors,.query[0]] | @tsv' | $FUZZER -m | cutt -f4" +echo "$search_query | notmuch-thread-table | $FUZZER -m | cutt -f4" diff --git a/bin/fuzz-notmuch-query-thread b/bin/fuzz-notmuch-query-thread @@ -2,4 +2,4 @@ set -eou pipefail search_query=$(fuzz-notmuch-query --output=summary --format=json) -echo "$search_query | jq -rcC '.[] | [.date_relative,.subject,.authors,.thread] | @tsv' | $FUZZER -m | cutt -f4 | sed 's,^,thread:,g'" +echo "$search_query | notmuch-thread-table | $FUZZER -m | cutt -f4 | sed 's,^,thread:,g'" diff --git a/bin/fuzz-notmuch-threads b/bin/fuzz-notmuch-threads @@ -6,5 +6,5 @@ thread_search=$(fuzz-notmuch-query-thread) rest="notmuch-show-pretty | less" thread=$(eval "$thread_search") -fuzz-record-command "res=\$($thread_search) && <<<\$res xargs notmuch show | $rest" +fuzz-record-command "res=\$($thread_search) && notmuch show \$res | $rest" echo "notmuch show $thread | $rest" diff --git a/bin/notmuch-thread-table b/bin/notmuch-thread-table @@ -0,0 +1,2 @@ +#!/usr/bin/env bash +exec jq -rcC '.[] | [.date_relative,.subject,.authors,.thread] | @tsv' diff --git a/bin/recent-files b/bin/recent-files @@ -1,2 +1,2 @@ #!/usr/bin/env sh -exec grep ^edit ~/.fuzzhist +grep ^edit ~/.fuzzhist | tac