fix: fix bibshow entries display

This commit is contained in:
David 2020-09-06 21:49:07 +02:00
parent d5a12a9577
commit 1c54c9363c

View File

@ -13,7 +13,7 @@
file="$(find $HOME/documents/bibliographies/ -type f -not -path '*/\.*' | dmenu -l 20 -p "[bibshow] which bibliography?")" # the -not -path allows find to ignore hidden files file="$(find $HOME/documents/bibliographies/ -type f -not -path '*/\.*' | dmenu -l 20 -p "[bibshow] which bibliography?")" # the -not -path allows find to ignore hidden files
refs_list="$(sed -e 's/\t//g' "$file" | tr '\n' ' ' | sed -e 's/}\ /}\n/g')" refs_list="$(sed -e 's/\t//g' "$file" | tr '\n' ' ' | sed -e 's/}\s\s/}\n/g')"
[ -z $refs_list ] && exit 1; [ -z $refs_list ] && exit 1;
ref="$(printf "$refs_list" | dmenu -i -p 'reference?' -l 10)" ref="$(printf "$refs_list" | dmenu -i -p 'reference?' -l 10)"