Terminal-native syntax recall for developers who switch languages daily.
Fuzzy-search a local SQLite database of curated, idiomatic code snippets -- codelex rs match prints Rust's match in two keystrokes. Compares how the same concept is expressed across languages, and keeps per-language session scratchpads with bookmarks and pins.
Single Rust binary. No network, no account, no telemetry.
cargo install --git https://github.com/yugaaank/lexcodeOr build from source:
git clone https://github.com/yugaaank/lexcode
cd lexcode
cargo build --releaseRequires a Rust toolchain (edition 2024).
codelex rs match # Rust match syntax
codelex py "list comprehension"
codelex go error-handlingFlags:
codelex rs match --more # topic metadata + related concepts
codelex rs match --raw # snippets only, no chrome
codelex rs match --json # machine-readable outputCompare across languages:
codelex compare "error handling" --raw
codelex compare "async await" --jsonInteractive TUI (default when run with no arguments):
codelexSnippet pack management:
codelex sync # load packs from disk into the DB
codelex validate # check pack/store integrity
codelex paths # print config / data / packs directoriesSessions (per-language scratchpads):
codelex session create rust-week -l rust
codelex session switch rust-week
codelex session bookmarks
codelex session pinsMIT