]> git.mdlowis.com Git - projs/tide.git/commitdiff
autocommit
authorMichael D. Lowis <mike.lowis@gentex.com>
Wed, 9 Dec 2020 15:19:03 +0000 (10:19 -0500)
committerMichael D. Lowis <mike.lowis@gentex.com>
Wed, 9 Dec 2020 15:19:03 +0000 (10:19 -0500)
bin/findall
bin/pickfile

index 3de59146cd43634096ef5aaf039788bbc6c72389..52d9edddfa7165766d149beeb18dccbbb4d82578 100755 (executable)
@@ -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" {} +
index b0ffe3a06965f1d8497c28179b7142c697bf0708..f3017b6d4990473e1aaf36a97cc27533296e2244 100755 (executable)
@@ -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"