Keymap-drawer

Latest version: v0.19.0

Safety actively analyzes 682361 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 4 of 4

0.3.0

This update focuses on cleaning up the styling of the drawn elements by refactoring the CSS classes+other `DrawConfig` settings, and how the elements are assigned classes in the CSS. Thanks to manna-harbour for significant contributions on the design and implementation!

Features

- Overhaul CSS classes and allow specifying custom key types
- Make SVG classes used for `<rect>`'s and `<text>`'s better composable by splitting key types and label types
- Remove literal restrictions from `type` field and add the same field to combo specs. This allows users to specify a custom type for keys/combos and define it in the CSS if they want to customize certain keys/combos.
- This is a **breaking change** due to `draw_config.svg_style` being rewritten, along `draw_config.line_spacing` getting repurposed. If you have any existing configuration files you need to adapt them: See the changes in the default configuration [here](https://github.com/caksoylar/keymap-drawer/compare/v0.2.0...v0.3.0#diff-64a476d4c97f07c0a7eff43a8d18b6f88d469b1321f791a7f8b3fa60f95f0f16).
- Auto-align tap labels inside a key up/down to when it has 2 lines and either hold or shifted label is present
- Add a new config `draw_config.append_colon_to_layer_header` to be able to disable appending colons after layer names
- Darken default key outline by 5% to improve contrast

Web app

- Move to streamlit 0.18, update caching and button styling using new functionality
- Read example keymaps with a different method to reduce random loading problems at startup

**Full Changelog**: https://github.com/caksoylar/keymap-drawer/compare/v0.2.0...v0.3.0

0.2.0

Fixes

- Fix `SQT` and `COLON` mappings in `zmk_keycode_map` (thanks crides)
- Correctly use `bindings` rather than `sensor-bindings` when parsing ZMK keymaps

Features

- Add `shifted` field in key spec (alias `s`) so you can draw mod-morphs/key overrides at the top of the key
- See [Miryoku example](examples/miryoku.yaml)
- These are not parsed from keymaps yet, might be added to ZMK parsing in the future
- Add `--keys-only`, `--combos-only` flags to `keymap draw` to only draw layer keys/combos, `-s`/`--select-layers` to only draw certain layers
- Make `tap` property optional in key spec, so e.g. `{type: held}` works
- Convert examples and YAML dumps to two indents to ease editing

Web app

- Surface errors to users better
- Change parsing layout and make each mode use submitted forms to reduce wonky behavior
- Add query params for parse parameters and permalink generator to link to exact keymap
- Use GitHub APIs to fetch ZMK config rather than download URLs

**Full Changelog**: https://github.com/caksoylar/keymap-drawer/compare/v0.1.2...v0.2.0

0.1.2

What's Changed
* Correct LBKT direction by jcmkk3 in https://github.com/caksoylar/keymap-drawer/pull/1

0.1.1

Update for yanked pydantic dependency.

0.1.0

Initial public release.

Page 4 of 4

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.