Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,8 +223,25 @@ results_chart_y = "gray;italic"

# restart/quit prompt in results ui
results_restart_prompt = "gray;italic"

[key_map]
# results screen: quit, new random test, repeat same test
quit = "q"
restart = "r"
repeat = "t"
# results screen: practice missed/slow words
practice_missed = "p"
practice_slow = "s"
# test screen: start new test with different words
new_test = "Tab"
```

### key binding format

Key bindings are specified as strings. A single character (e.g. `"q"`) maps to that key. Special keys are capitalized: `Tab`, `Space`, `Enter`, `Esc`, `Backspace`, `Delete`.

Modifier keys use a prefix with a dash: `C-` for Ctrl, `A-` for Alt. For example, `"C-r"` means Ctrl+R.

### style format

The configuration uses a custom style format which can specify most [ANSI escape styling codes](<https://en.wikipedia.org/wiki/ANSI_escape_code#SGR_(Select_Graphic_Rendition)_parameters>), encoded as a string.
Expand Down
Loading