From 1c54c9363c342fa9461ce2bd1f946e5f76f0ddee Mon Sep 17 00:00:00 2001 From: David Date: Sun, 6 Sep 2020 21:49:07 +0200 Subject: [PATCH] fix: fix bibshow entries display --- .local/bin/bibshow | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.local/bin/bibshow b/.local/bin/bibshow index a6b48c5..cd344ff 100755 --- a/.local/bin/bibshow +++ b/.local/bin/bibshow @@ -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 -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; ref="$(printf "$refs_list" | dmenu -i -p 'reference?' -l 10)"