refactor: Improve keymap upgrader
Moved the keymap upgrader to a top-level page like the power profiler to make it more discoverable. It upgrades more things than key codes now, so putting it in the codes category doesn't make much sense. Converted the upgrader code to TypeScript and split it up into smaller files to make it easier to add new upgrade functions. Added upgrade functions to remove/replace "label" properties and rename matrix-transform.h to matrix_transform.h.
This commit is contained in:
parent
1a3529a3e6
commit
a0465391be
14 changed files with 528 additions and 337 deletions
|
|
@ -1,21 +0,0 @@
|
|||
---
|
||||
title: Keymap Upgrader
|
||||
sidebar_label: Keymap Upgrader
|
||||
hide_title: true
|
||||
hide_table_of_contents: true
|
||||
---
|
||||
|
||||
# Keymap Upgrader
|
||||
|
||||
Many codes have been renamed to be more consistent with each other.
|
||||
Paste the contents of a `.keymap` file below to upgrade all deprecated codes to their replacements.
|
||||
|
||||
Hover your mouse over the upgraded keymap and click the `Copy` button to copy it to your clipboard.
|
||||
|
||||
You will likely need to realign columns in the upgraded keymap. The upgrader also does not handle
|
||||
codes inside a `#define`, so you will need to update those manually using
|
||||
[this list of deprecated codes and replacements](https://github.com/zmkfirmware/zmk/blob/main/docs/src/data/keymap-upgrade.js).
|
||||
|
||||
import KeymapUpgrader from "@site/src/components/KeymapUpgrader/index";
|
||||
|
||||
<KeymapUpgrader />
|
||||
Loading…
Add table
Add a link
Reference in a new issue