From b79c17079d328632eac215e6c5851e88ca6d4747 Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Wed, 9 Dec 2020 10:19:03 -0500 Subject: [PATCH] autocommit --- bin/findall | 2 +- bin/pickfile | 9 ++++++++- 2 files changed, 9 insertions(+), 2 deletions(-) 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" -- 2.51.0