EPUB Search
Search engine for EPUB files on local machine
If you want EPUB search web application, check EPUB Searcher out.
Installation
$ gem install epub-search
Usage
$ epub-search help
Commands:
epub-search add FILE # Add FILE to database
epub-search help [COMMAND] # Describe available commands or one specific command
epub-search init [DIR] # Setup database
epub-search list # Show list of book titles in database
epub-search remove FILE # Remove FILE from database
epub-search search WORD [BOOK] # Search WORD in book whose title is like BOOK from database
epub-search watch [DIRECTORY [DIRECTORY ...]] # Index all of EPUB files in DIRECTORY
Options:
-c, [--config=CONFIG] # Path to config file
To watch directories in backend:
$ epub-search watch --daemonize
Configuration
EPUB Search(epub-search
command) detectes configuration file following by this order:
- A file specified by
--config
global option -
.epub-searchrc
in current directory $HOME/.epub-search/config.yaml
Configuration file should be written as YAML and you can set properties below:
- :dir: String. Directory for Groonga database and other files, defaults to $HOME/.epub-search/db
- :directories: Array of String. Directories
watch
subcommand watches.
ChangeLog
0.0.6
- Lock Celluloid version to prevent compatibility breaking
- Remove server feature
0.0.5
- Remove version specification for Listen gem
0.0.4
- Remove recored which book was removed during sleeping
0.0.3
- Specify the version of Listen gem
0.0.2
- Ruby vertion limited to 2.0
- Database directory changed
- Exec
epub-search init
again
- Exec
- Pid file is used to avoid multiple processes are running at once for epub-search watch
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request