From c29ce576280710bbd216704ab7a549d7fdb6ad17 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Thu, 22 Sep 2022 20:46:42 +0200 Subject: [PATCH] Update fzf book script --- .bin/fzf-book | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.bin/fzf-book b/.bin/fzf-book index c563d93..b6cfdde 100755 --- a/.bin/fzf-book +++ b/.bin/fzf-book @@ -2,8 +2,9 @@ # Find and open pdf -# -printf "%f\n" -selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1)" +# Generate menu of book filenames and save paths +# Preview window contains metadata +selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1 --preview 'pdfinfo {}' --preview-window=right:70%:wrap)" # Open and redirect output to /dev/null zathura "$selected" 2> /dev/null &