tOnly match files with typical filename extensions - scholarref - tools for DOI and BiBTeX reference extraction, fetching, and parsing | |
git clone git://src.adamsgaard.dk/scholarref | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit 50d8641f0597163394bc8d46097bd8b9ff32371d | |
parent 4d049d4b9f5aadfead9029400f514eafe751fc7d | |
Author: Anders Damsgaard | |
Date: Tue, 17 Dec 2019 11:38:52 +0100 Only match files with typical filename extensions Diffstat: M articlesearch | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- | |
diff --git a/articlesearch b/articlesearch | |
t@@ -4,7 +4,8 @@ set -e # List of directory paths that contain PDFs dir="$HOME/articles $HOME/books" -query="$(find $dir -type f | sed "s|$HOME/||" | dmenu -i -l 10 -p "Search publications:")" || exit 1 +query="$(find $dir -type f -iname "*.pdf" -o -iname "*.eps" -o -iname "*.gs" -o -iname "*.djvu" -o -iname "*.epub" | \ + sed "s|$HOME/||" | dmenu -i -l 10 -p "Search publications:")" || exit 1 action="$(printf "Open\nGet DOI\nSci-Hub\nAdd reference" | dmenu -i -p "Action:")" if [ "$action" = "Open" ]; then |