]> gitweb.fluxo.info Git - scripts.git/commitdiff
Show: use a filelist
authorSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Nov 2020 21:24:53 +0000 (18:24 -0300)
committerSilvio Rhatto <rhatto@riseup.net>
Mon, 2 Nov 2020 21:24:53 +0000 (18:24 -0300)
show

diff --git a/show b/show
index b822af51c309086d485bc1c66f30371519e779b4..a3c6ff503d87fd96549fef614d7f9a928c372b25 100755 (executable)
--- a/show
+++ b/show
@@ -6,6 +6,7 @@
 # Parameters
 BASENAME="`basename $0`"
 DOCS="$HOME/data/doc"
+LIST="$DOCS/.filelist"
 ITEM="$1"
 
 # Check
@@ -15,4 +16,5 @@ if [ -z "$ITEM" ]; then
 fi
 
 # Dispatch
-find $DOCS -iname "*$ITEM*" | head -1 | while read item; do xdg-open "$item"; done
+#find $DOCS -iname "*$ITEM*" | head -1 | while read item; do xdg-open "$item"; done
+grep "$ITEM" $LIST | while read item; do xdg-open "$item"; done