|
9 | 9 |
|
10 | 10 | ## 📋 Table of Contents |
11 | 11 |
|
12 | | -- [Features](#-features) |
13 | | -- [Demo](#️-demo) |
14 | 12 | - [Installation](#-installation) |
15 | 13 | - [Usage](#-usage) |
16 | 14 | - [1. Deriving `KeyMap`](#1-deriving-keymap) |
|
26 | 24 |
|
27 | 25 | ## 🔧 Features |
28 | 26 |
|
29 | | -* ✅ **Declarative Key Mappings**: Define keymaps via simple configuration (e.g., TOML, YAML) or directly in your code using derive macros. |
| 27 | +* ✅ **Declarative Key Mappings**: Define keymaps via simple configuration files (e.g., TOML, YAML) or directly in your code using derive macros. |
30 | 28 | * ⌨️ **Key Patterns**: Supports single keys (`a`), combinations (`ctrl-b`), and multi-key sequences (`ctrl-b n`). |
31 | | -* 🧠 **Key Groups**: Use built-in pattern matching for common key groups: |
32 | | - * `@upper` – Uppercase letters |
33 | | - * `@lower` – Lowercase letters |
34 | | - * `@alpha` – All alphabetic characters |
35 | | - * `@alnum` – Alphanumeric characters |
36 | | - * `@any` – Match any key |
| 29 | +* 🧠 **Key Groups**: Use built-in pattern matching for common key groups (`@upper`, `@lower`, `@alpha`, `@alnum`, and `@any`). |
37 | 30 | * 🧬 **Compile-Time Safety**: The `keymap_derive` macro validates key syntax at compile time, preventing runtime errors. |
38 | | -* 🌐 **Backend Agnostic**: Works with multiple backends, including `crossterm`, `termion`, and `wasm`. |
| 31 | +* 🌐 **Backend-Agnostic**: Works with multiple backends, including `crossterm`, `termion`, and `wasm`. |
39 | 32 | * 🪶 **Lightweight & Extensible**: Designed to be minimal and easy to extend with new backends or features. |
40 | 33 |
|
41 | 34 | --- |
|
44 | 37 |
|
45 | 38 | See `keymap-rs` in action with the [WASM example](https://rezigned.com/keymap-rs/): |
46 | 39 |
|
47 | | -<p align="center"> |
48 | | - <img src="./examples/wasm/public/preview.png" alt="keymap-rs WASM Demo" width="700"> |
49 | | -</p> |
| 40 | +<table> |
| 41 | + <thead> |
| 42 | + <tr> |
| 43 | + <th width="500px">Nyan Jump!</th> |
| 44 | + <th width="500px">Tur - Turing Machine Language</th> |
| 45 | + </tr> |
| 46 | + </thead> |
| 47 | + <tbody> |
| 48 | + <tr> |
| 49 | + <td> |
| 50 | + <a href="https://rezigned.com/keymap-rs"><img src="./examples/wasm/public/preview.png" alt="keymap-rs WASM Demo"/></a> |
| 51 | + </td> |
| 52 | + <td> |
| 53 | + <a href="https://rezigned.com/tur"><img src="https://rezigned.com/tur/tur-web.png" /></a> |
| 54 | + </td> |
| 55 | + </tr> |
| 56 | + </tbody> |
| 57 | +</table> |
50 | 58 |
|
51 | 59 | --- |
52 | 60 |
|
|
0 commit comments