Wishlist for a "export keymap diagram"-type feature #141
Replies: 4 comments 7 replies
-
The main things i personally need reminders about are single keys on seldom-used or extra full layers like symbols or bt settings. Just the actual keys would be good, though combos would be nice they are normally gonna be set to be more memorable, at least in my case. Honestly, I'm pretty good with the way everything displays in your tool which is why i thought of that before looking for a third party. Another option would be to export json that could be read by http://keyboard-layout-editor.com/ which seems to be the standard for creating these images. Converting one data format to another is not as easy as it should be, but would be easier than generating images (though with svg i guess it's less of a hassle) |
Beta Was this translation helpful? Give feedback.
-
A helpful feature would also be the possibility to give key combinations an alias. For example I use RA(N5) for the symbol "€" (US int layout). It would be nice to show "€" instead of "RA(5)" in the keyboard diagram. Maybe this could be specified similar to 'info.json' in a separate file or as a comment, so preprocessor support would not be necessary. |
Beta Was this translation helpful? Give feedback.
-
Hi, thanks for your great project! Could you help me to better understand the code where you deal with I've looked around but it wasn't obvious to me. Would you be able to guide me? |
Beta Was this translation helpful? Give feedback.
-
Hi I just got into this wonderful world of zmk! I mainly use keymap-editor to do all the zmk keymap editing. Yes, keymap-drawer can be integrated into github actions but that's an additional step. As keymap-editor is already a gui/browser app, wouldn't it be possible to add a simple option to just export the displayed keymaps? I like the the keymap-editor's gui very much and like the behaviors displayed in tiny text (eg. '&mt' etc.) Maybe also add a opt-in option to save the screenshots/rendered images to the github repo while committing the changes. |
Beta Was this translation helpful? Give feedback.
-
I've gotten this request a few times, and it's a fair one. When using the keymap editor to reduce some of the manual effort (be that in looking up precise keycode names, manually fixing layer indices, or keeping
bindings
aligned) it makes sense to automate production of keymap diagrams as well.Notable prior work here is keymap-drawer which has a lot of community buy-in and functionality. It's also worth noting, as it usually is when the feature request comes up, that it's entirely possible to integrate keymap-drawer's GitHub action into your repository to automatically generate diagrams when committing keymap changes via Keymap Editor (or manually as the case may be).
Keymap Editor can already render keymap data, but:
*I'm kind of focusing in on the GitHub integration because that's where automation makes the most sense. Image data could be generated client-side but I'm not OK with accepting arbitrarily large binary data to pipe through to a GitHub repo.
If I were to add a diagram output it would most likely be in the form of a standalone keymap parser and renderer that can be executed locally or via GitHub actions and would exist mainly to match the visual style of Keymap Editor.
That's great for rendering special symbols and RGB icons for layer binds, encoders, and combo diagrams, but what about things like macros and behaviors where there I don't really have a concise way to show just the important details? As a user what do you feel is "enough" information for your custom behaviors list? Or do you feel that your behaviors are "self documenting" already?
Please share any wishes or use cases you have! If nothing else, it helps to know that there's enough demand for something to make it a priority, but I'm eager to see some discussion.
Beta Was this translation helpful? Give feedback.
All reactions