simplify sbib, sdoi

This commit is contained in:
ackman678
2021-05-04 19:23:54 -07:00
parent 29956101f2
commit 61cc931e94
7 changed files with 133 additions and 156 deletions

8
f
View File

@@ -15,19 +15,13 @@ if [ "$1" == "-h" ] ; then
exit 0
fi
#Setup defaults
# cslFile=${2:-$HOME/projects/bibd/bibd-md.csl}
# bibdFile=${3:-$HOME/projects/bibd/OMEGA.bib}
# cd $(dirname $bibdFile)
set -e #exit if an error
inFlag=${1:-"-i --files"}
if [ "$1" == "p" ]; then
ls *.pdf | fzf --preview 'pdftotext -l 2 -nopgbrk -q {1} -' \
--preview-window=up:70% --bind "enter:execute-silent(zathura {} &)" \
--bind "ctrl-s:execute(pdf2bib.sh {})+reload(ls *.pdf)"
--bind "ctrl-s:execute(spdf.sh {})+reload(ls *.pdf)"
exit 1
fi