MCPcopy Index your code
hub / github.com/ckaznable/poketex

github.com/ckaznable/poketex @v1.17.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.17.0 ↗ · + Follow
125 symbols 235 edges 21 files 0 documented · 0%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

📖 Poketex

Simple Pokedex based on TUI(Terminal User Interface)

Crates.io Crates.io

demo

Feature

  1. All Pokemon (until Pokemon SV)
  2. All Region Form (until Pokemon SV)
  3. Searchable
  4. include English, Chinese, Japanese locales data

Installation

Packaging status

Install from Github Release

Download the last version binary depending on your configuration here: Release Page

Then you just need to enter this command in your terminal:

tar -xf <downloaded_archive> poketext
sudo mv poketex /usr/local/bin
sudo mkdir -p /usr/local/share/poketex/colorscripts
sudo cp -rf colorscripts /usr/local/share/poketex

Install from crates.io

If you're a Rust programmer, poketex can be installed with cargo.

cargo install poketex --locked

Install from the AUR

If you're using Arch Linux, you can install poketex from the extra repository using pacman:

pacman -S poketex

Install from Source Code

poketex is written in Rust, so you'll need to grab a Rust installation in order to compile it.

git clone https://github.com/ckaznable/poketex
cd poketex
make build
sudo make install

If you want to uninstall

sudo make uninsall

Usage

Usage: poketex [OPTIONS]

Options:
  -l, --locale <LOCALE>  locales [zh, ja, en] [default: en]
  -h, --help             Print help
  -V, --version          Print version

Keyboard Navigation Instructions

Use arrow keys or hjkl to move around.

Press Page Up or Page Down to move 4 steps at a time.

Press f to switch ascii forms.

Press E to toggle list showing.

Press A to toggle ability showing.

Press V to toggle IV showing.

Press q to exit.

Press H to display help information.

Press gg to go to the top and G to go to the bottom.

Press alt+j or alt+k to scroll up or down ability description.

Press / to enter search mode.

RoadMap

  • [x] show pokemon iv and type
  • [x] pokemon list searchable
  • [x] add pokemon ability rows
  • [x] add region form
  • [x] Alola
  • [x] Galar
  • [x] Hisuian
  • [x] Paldea
  • [x] add cli flags
  • [x] --locale [en, ja, zh]
  • [x] help key
  • [x] gen 9 DLC - The Teal Mask
  • [x] gen 9 DLC - The Indigo Disk
  • [x] Image support
  • Gen 8 and below(powered by pokemon-colorscripts)
  • Gen 9(#58, Creator Caruban)

Troubleshoot

Image are not displaying

If the ansi images are not displaying, please copy the colorscripts folder from this repository to /usr/local/share/poketex.

git clone https://github.com/ckaznable/poketex
cd poketex
mkdir -p /usr/local/share/poketex/colorscripts
cp -rf colorscripts /usr/local/share/poketex

Pokemon data source

data generated from ckaznable/poke-data-crawler

License

MIT

Extension points exported contracts — how you extend this code

Pokemon (Interface)
(no doc) [1 implementers]
src/pokemon/pokemon.rs

Core symbols most depended-on inside this repo

len
called by 14
src/state/pokemon.rs
get
called by 12
src/pokemon/translate.rs
select
called by 8
src/state/pokemon.rs
is_empty
called by 7
src/state/pokemon.rs
reset_command
called by 4
src/state/mod.rs
scroll_down
called by 3
src/state/pokemon.rs
scroll_up
called by 3
src/state/pokemon.rs
region_form_len
called by 3
src/state/pokemon.rs

Shape

Method 81
Class 28
Function 11
Enum 4
Interface 1

Languages

Rust100%

Modules by API surface

src/state/pokemon.rs30 symbols
src/pokemon/pokemon.rs21 symbols
src/widget/profile/mod.rs10 symbols
src/main.rs8 symbols
src/state/mod.rs7 symbols
src/state/tui.rs6 symbols
src/pokemon/translate.rs6 symbols
src/widget/profile/iv.rs5 symbols
src/pokemon/ascii_form.rs5 symbols
src/keybinding.rs5 symbols
src/pokemon/mod.rs4 symbols
src/widget/profile/overview.rs3 symbols

For agents

$ claude mcp add poketex \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact

Ask about this repo answers extend the page