caksoylar / keymap-drawer

Visualize keymaps that use advanced features like hold-taps and combos, with automatic parsing
https://caksoylar.github.io/keymap-drawer
MIT License
716 stars 59 forks source link

Feature request: Support via json #29

Open haunt98 opened 1 year ago

haunt98 commented 1 year ago

For example I have via layout as define here: https://gist.github.com/haunt98/d1210e625c2bf021d9a59f84ef822f9f

Is there a plan to support via in the future?

caksoylar commented 1 year ago

It is something on my list, although the priority is low given:

I would be open to having it in the repo and having feedback e.g. in the form of an issue like this one helps, so thanks for opening.

(Note to self, I should refactor the parse module to split it up further since it will get unwieldy if we add more parsers.)

haunt98 commented 1 year ago

Thanks @caksoylar for quick reply. TIL about qmk via2json, let me try that first. VIA already show image, but can not export or generate it programmatically, I want to explore more things before come back screenshot my VIA layout :D Also feel free to close this issue if you want. Many thanks.

caksoylar commented 1 year ago

I'll keep it open since it is eventually planned. I'd appreciate if you let me know how it goes with qmk via2json!

haunt98 commented 1 year ago

Sorry for late reply, but it works!

So I run qmk via2json with my gist via layout json:

qmk via2json -kb dztech/dz60rgb_wkl/v2 dz60rgb_wkl_v2.layout.json -o qmk.json

Then upload to your website as you can see here

image

caksoylar commented 1 year ago

Thank you for the update! Since it is confirmed to work, I'll expand the README to add an example command like yours.

haunt98 commented 1 year ago

Thanks @caksoylar

caksoylar commented 7 months ago

I will drop a link to https://github.com/YAL-Tools/vial-to-keymap-drawer here, which supports Vial and VIA files.