nickcoutsos / keymap-editor

A web based graphical editor of ZMK keymaps.
http://nickcoutsos.github.io/keymap-editor
MIT License
1.09k stars 279 forks source link

Feature request: Support for custom keys defined in included *.h files. #222

Open eZtaR1 opened 3 months ago

eZtaR1 commented 3 months ago

Many non-US users have to use this workaround to make our keymaps work as nice as possible.

Would it be possible to include the import or custom defined keys like this, or is there a workaround? :)

nickcoutsos commented 3 months ago

I don't plan on adding support for parsing arbitrary headers because of the complexity it adds, but as far as locale-specific keycodes I think the better option is zmk-locale-generator. Keymap Editor still won't parse the headers, but it will recognize them when included in your keymap and will add the keycodes/symbols to the UI (you're still responsible for actually adding the header file to your repo, though).

eZtaR1 commented 3 months ago

I don't plan on adding support for parsing arbitrary headers because of the complexity it adds, but as far as locale-specific keycodes I think the better option is zmk-locale-generator. Keymap Editor still won't parse the headers, but it will recognize them when included in your keymap and will add the keycodes/symbols to the UI (you're still responsible for actually adding the header file to your repo, though).

Thanks! I'll try it out :)