Update fzf book script
parent
e9b0a6acd2
commit
c29ce57628
|
@ -2,8 +2,9 @@
|
||||||
|
|
||||||
# Find and open pdf
|
# Find and open pdf
|
||||||
|
|
||||||
# -printf "%f\n"
|
# Generate menu of book filenames and save paths
|
||||||
selected="$(find /home/h/doc/books/ -regex '.*\.\(pdf\|epub\|djvu\)' -type f | sort | fzf --delimiter=/ --with-nth=-1)"
|
# 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
|
# Open and redirect output to /dev/null
|
||||||
zathura "$selected" 2> /dev/null &
|
zathura "$selected" 2> /dev/null &
|
||||||
|
|
Loading…
Reference in New Issue