From: Michael D. Lowis Date: Wed, 9 Dec 2020 15:19:03 +0000 (-0500) Subject: autocommit X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=b79c17079d328632eac215e6c5851e88ca6d4747;p=projs%2Ftide.git autocommit --- diff --git a/bin/findall b/bin/findall index 3de5914..52d9edd 100755 --- a/bin/findall +++ b/bin/findall @@ -20,4 +20,4 @@ find "$dir" \( \( \ -type d -iname 'build' -o \ -type f -name 'tags' \ \) -prune \ -\) -o -type f -exec grep -n "$@" "$pattern" {} + +\) -o -type f -exec grep -In "$@" "$pattern" {} + diff --git a/bin/pickfile b/bin/pickfile index b0ffe3a..f3017b6 100755 --- a/bin/pickfile +++ b/bin/pickfile @@ -5,5 +5,12 @@ if [ "$#" -ne 1 ]; then fi export PICKTITLE="Pick File ($PWD)" -file="$(find "$1" -not -path '*/\.*' -type f | sed 's|^\./||' | pick)" +file="$(filelist "$1" \! \( \ + -name '*.pdf' -o \ + -name '*.png' -o \ + -name '*.bin' -o \ + -name '*.dbo' -o \ + -name '*.cmdset' -o \ + -name '*.o' \ +\) -not -path '*/\.*' | sed 's|^\./||' | pick)" [ "" != "$file" ] && edit "$file"