fuzzy-pokedex/README.md

60 lines
1.7 KiB
Markdown
Raw Normal View History

2023-04-24 19:47:00 -05:00
# Fuzzy-Pokédex
2023-04-29 14:23:11 -05:00
### The Pokédex for your terminal
2023-04-29 14:22:06 -05:00
Simple fzf based Pokédex I built for my son to enjoy.
Parses results from [PokeAPI](pokeapi.co/) and feeds combined results from `pokemon-colorscripts` to `fzf`
2023-04-16 11:22:13 -05:00
2023-04-16 12:02:34 -05:00
![Screenshot](https://github.com/ericlay/fuzzy-pokedex/blob/main/screenshot.png?raw=true)
2023-04-29 14:22:06 -05:00
A very wonky preview:
[![asciicast](https://asciinema.org/a/581487.svg)](https://asciinema.org/a/581487)
## Install
Requires fzf, parallel, jq, espeak-ng, pokemon-colorscipts and, any nerd font; all else should be there
2023-04-16 11:30:09 -05:00
2023-04-29 14:22:06 -05:00
### Arch (and arch based)
```
$ git clone https://github.com/ericlay/fuzzy-pokedex.git
$ cd fuzzy-pokedex
$ makepkg -si
```
## Usage
2023-04-20 21:30:46 -05:00
```
Use fzf to search Pokemon stats
Can optionally search by name
EXAMPLE
pokedex [pokemon name]
OPTIONS
-q, --quick [pokemon]
2023-04-24 19:47:00 -05:00
Prints single Pokédex entry to terminal
2023-04-20 21:30:46 -05:00
-u, --update [N/+N/-N/N%]
2023-04-24 19:47:00 -05:00
Scrape web for updated Pokémon stats
2023-04-20 21:30:46 -05:00
WARNING: update function is resource heavy
See Parallel job control (-j) for options
Default is 200%
-h, --help
Print this help screen
KEYBINDS
space Reads the Pokedex entry
2023-04-24 19:47:00 -05:00
ctrl-space Stops reading the Pokédex entry
2023-04-20 21:30:46 -05:00
ctrl-n Shows small sprite version
ctrl-b Shows large sprite version
ctrl-s Shows shiny sprite version
ctrl-h Shows this help screen in preview window
```
2023-04-24 19:47:00 -05:00
Credits to the great projects below: \
2023-04-29 14:25:47 -05:00
[Pokémon-colorscripts](https://gitlab.com/phoneybadger/pokemon-colorscripts) && [Pokefetch](https://github.com/rmccorm4/Pokefetch)
2023-04-18 12:42:09 -05:00
## To-do
2023-04-20 21:26:26 -05:00
* [ ] Better arg parsing
2023-04-20 11:18:01 -05:00
* [ ] Refactor to allow user to choose local data source or from web
* [ ] Get sprites from `PokeAPI` if possible {PR WELCOME!}
2023-04-20 11:18:01 -05:00
* [ ] Work on TTS to read entries
2023-04-20 21:26:26 -05:00
* [ ] Add ability to filter on various attributes