citadel

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

commit e2437fafdaa509fab4deeb3ae30a220e12ed7bf8
parent 67a5ade267ec9d2c744bf232ccaa3aa8f207b26d
Author: William Casarin <jb55@jb55.com>
Date:   Tue, 17 Nov 2020 15:18:20 -0800

fuzz: compile improvements

Diffstat:
Mbin/fuzz-compile | 2+-
Mbin/fuzz-compile-error | 8+++++++-
2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/bin/fuzz-compile b/bin/fuzz-compile @@ -3,4 +3,4 @@ set -eou pipefail #make_cmd=$(fuzz-make "$@") -echo make \2\>\&\1\| tee .build-result +echo make -j \2\>\&\1\| tee .build-result diff --git a/bin/fuzz-compile-error b/bin/fuzz-compile-error @@ -7,4 +7,10 @@ if [ ! -f .build-result ]; then exit 1 fi -<.build-result grep : | fuzzer "$@" | file-jump +# todo: determine project language +LANG=rust +ERR_OPTS="--exit-0 --preview 'grep -A20 {} .build-result | bat -l $LANG --color=always --highlight-line 1' --preview-window=:wrap:60%" + +<.build-result grep -E '[[:space:]]*[^: ]+:[0-9]+.*' | +env FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS $ERR_OPTS" fuzzer "$@" | +file-jump