Crates.io | txlib |
lib.rs | txlib |
version | 0.2.1 |
source | src |
created_at | 2023-05-07 16:54:40.560998 |
updated_at | 2024-10-04 17:17:12.113404 |
description | text based epub library |
homepage | https://codeberg.org/gneb000/txlib |
repository | https://codeberg.org/gneb000/txlib |
max_upload_size | |
id | 859275 |
size | 72,812 |
Text based epub library manager.
The program recursively scans the provided directory for epub files and creates a table with the following fields (read from the epub metadata):
The table with the library data is:
printed to stdout (for piping to other programs)
stored in the provided plain text file, that can be manually edited with your preferred text editor. Existing book information has to be edited this way.
A plain text library allows for easy extensibility and integration into any workflow. Some ideas are provided in the Tips section.
Everytime the program runs, removed epub files are deleted from the generated table and new epub files are added.
$ txlib [OPTIONS] --lib-db <LIB_DB> <EPUB_DIR>
<EPUB_DIR> Root directory containing epub files
-l, --lib-db <LIB_DB> File path to read/store epub library data
-s, --sort <SORT> Sort by: date, title, author, read, pages or series [default: date]
-r, --reverse Reverse sorting order
-n, --no-save Print output without saving to DB
-h, --help Print help
-V, --version Print version
/
, however, the columns are also separated by double-spacing. Thus, if you require to differentiate the delimiter slash from the path slashes (e.g., when piping to another program), you can use ␣␣/
as the delimiter.fzf
while also limiting the search to certain fields. Like in the example below, where the path field is being excluded:
$ txlib | fzf --reverse --delimiter="/" --nth=..5 --header-lines=1