- Python 100%
Refs #2, #3, #4. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Mv4cZ2TAgLi4RirGrVaqXv |
||
|---|---|---|
| .github | ||
| .vscode | ||
| src/kmr | ||
| .gitignore | ||
| .python-version | ||
| LICENSE.md | ||
| pyproject.toml | ||
| README.md | ||
| uv.lock | ||
Keymap Renderer
This project takes two files, a keyboard-layout-editor format keyboard description JSON file, and a .kdl.json ("keybind description language") file.
If you copy the Raw Data, be sure to save it as .js! If it's downloaded through Download JSON, make sure to save it as .json.
It will then render a keyboard annotated with the bind present in each key in the KDL and produce a Markdown file containing each keybind layer and a table containing additional information.
Each layer's markdown file will then be converted into PDF, and all layers for a given KDL will be merged into a final PDF file. You may then print out this PDF file or use it as reference.
Also contains a script to generate KDLs from the following sources:
nvim-nmap.kdl.json(create withuv run nvim-nmap.kdl.py -o /tmp/nvim-nmap.kdl.json)
Existing work
Substantial parts of the rendering code for this project are taken from kle_render. Unfortunately, the original keyboard-layout-editor is distributed under an all rights reserved license despite being open source.
TODO
- Additional KDL creators
- Code is a little jank, but is readable.