| EBK-FIND(1) | General Commands Manual | EBK-FIND(1) |
ebk-find — select
and open a book from a Calibre library
ebk-find |
-h |
ebk-find |
-V |
ebk-find |
[-l library]
[-f formats]
[-s command]
[-n] |
The ebk-find command launches a fuzzy
finder program, presenting the titles, authors, and tags of all the books in
the given library. Start typing to narrow down the list to the book to open.
When a book has been selected, ebk-find will open
the corresponding e-book file in the system default viewer for that file
format.
By default, ebk-find opens the EPUB file
for the selected book, if there is one; otherwise, it opens the PDF, if
there is one; otherwise, it opens the first file it can find. The order of
preferred formats can be changed with the -f
flag.
ebk-find calls
xdg-open(1) to open the selected book. If that command is
not available on the system, use the -n flag and
pass the printed path to a different command (see
EXAMPLES below).
The default behaviour can be overridden with the following option flags:
-f,
--format-preference
formatsepub,pdf’)-h,
--help-l,
--library path-n,
--dont-open-s,
--selection-command
commandfzf
--exact’)-V,
--versionThe default behaviour can be changed by setting these environment variables:
EBOOKRACK_LIBRARYEBOOKRACK_FIND_SELECTORThe ebk-find utility exits 0 on
success, and >0 if an error occurs.
Selecting and opening a book from the default library:
ebk-findebk-find
-l ~/books/ebk-find
-f "txt,azw3,epub"ebk-find
-s "sk --exact"ebk-find
-n -f pdf
| xargs -0
pdf2txtpreview
"$(ebk-find
-n)"Code and documentation by JA Viljoen <ebookrack@javiljoen.net>.
| May 20, 2025 | Linux |