nickcoutsos / keymap-editor

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

Support for hyper/meh #213

Open ThomasAlban opened 2 months ago

ThomasAlban commented 2 months ago

In my config I have defined HYPER as LS(LA(LC(LCMD))). However when I use it as a keypress, it shows up in the editor as undefined. It would be nice if there was some way that this could be supported!

nickcoutsos commented 2 months ago

Hi @ThomasAlban it's unfortunately not that straightforward to support. It may sound like there isn't a lot to it in this case but when opening the door to parsing preprocessor statements it's more a question of how complex it could be. I wrote a little more about the complexity in Keymap Editor Wiki::Preprocessor Support

ThomasAlban commented 2 months ago

Yeah you're right - I was invisioning some sort of simple pre-processor but your writeup does a good job of explaining why it's not really possible to implement it simply!

ThomasAlban commented 2 months ago

I just had a different idea about this which would perhaps make more sense - having the UI show LS(LA(LC(LCMD))) (in any order) as 'Hyper' and LS(LA(LCTRL)) as 'Meh' (or maybe as symbols), perhaps as a togglable option.