Update fzf book script

master
Hektor Misplon 2022-09-22 20:46:42 +02:00
parent e9b0a6acd2
commit c29ce57628
1 changed files with 3 additions and 2 deletions

View File

@ -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 &