-
-
Notifications
You must be signed in to change notification settings - Fork 40.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DZ60 Configurator fix and refactor #3205
Conversation
|
||
/* ISO VIM arrow (ISO German layout shown) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the renaming, because it is more generic and reusable. File and this description still mention the word "vim arrow" which is a more specific example. This is intended, because it's an example or should it be changed, too?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps I should change ISO VIM arrow
on line 7 to ISO 5x1u
.
I'm a bit unsure of which way I prefer. The code block you've pointed out shows the physical layout of the keymap, whose name is unchanged. I question whether vim arrow
or 5x1u
is better, because to my mind, neither has name recognition. It's not like saying "Tsangan" or "Winkeyless", terms that are widespread in the community.
Something that I think is less than ideal is that the only way to view the physical layouts of the matrices are to view them via the Configurator — you can't view them directly in the repo unless someone documents them, and currently there's no standard for doing so.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would add more detail to the description and things would be clearer. E.g. changing the name to 5x1u, but the description and layout is describing a variant which is supposed to have arrow keys in a single line and can be used to navigate similar to the vim editor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like that idea. I think I'll go with that.
About the row of the ISO enter key: I put it above the home row b/c that's how it is in KLE. |
I know you're going to hate me for suggesting this, but maybe it would be a good idea to start including the layout info in the readme (such as images, or ASCII art), so that people have something to reference (both from source and in the configurator, since it shows the readme.md) |
@jankolkmeier Not a problem. It's actually one of the things that's not straightforward about building the Some keyboard PCBs also wire them differently. Sometimes ISO Enter shares its matrix location with ANSI Enter, and sometimes it shares with the ANSI Backslash. Neither way is right or wrong on either topic, but it can get confusing. |
@drashna I considered the ASCII art last night, but I'm not sure I'd like to go that route, even though it's a good solution. Right now the DZ60 has nine supported layouts, and this PR would add one more. I'm wondering if there's a point where a readme file can be bloated, or have "too much" information therein. |
@noroadsleft Doesn't @skullydazed have that nice template thing with all the different layouts in one image? That ... could work. Otherwise, yeah, it could be a PITA. |
@drashna If he does, I haven't seen it. The only thing I know about that's relevant is this image for the Clueboard, which is linked in the docs, but it's for displaying keymap rather than physical layout. I considered adding KLE permalinks to the readme files, which makes them easily viewable if seen on GitHub, but aren't exposed in the Configurator in cases where a layout may be broken in the Configurator for some reason. |
He's posted it in discord, I think. But let me know when this is done |
@@ -4,7 +4,11 @@ | |||
|
|||
const uint16_t PROGMEM keymaps[][MATRIX_ROWS][MATRIX_COLS] = { | |||
|
|||
/* ISO VIM arrow (ISO German layout shown) | |||
/* ISO 5x1u layout (ISO German keyboard layout shown) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@andys8 How's this? (Lines 7 through 11)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I like the changes a lot!
Awesome, thanks! |
* Bugfix refactor * Added 60_iso layout to rules.mk * Added sample ISO-UK keymap * Keymap refactor * Fixes per @andys8
* Bugfix refactor * Added 60_iso layout to rules.mk * Added sample ISO-UK keymap * Keymap refactor * Fixes per @andys8
Configurator support for DZ60 was semi-broken in #3198 due to an invalid JSON file. I've fixed that error and added another matrix for a standard ISO layout.
Changes
The matrix that was
LAYOUT_ISO
is renamed toLAYOUT_60_iso_5x1u
The matrix/layout submitted in #3198 was standard ISO, except for there being five 1u keys to the right of the spacebar on the bottom row, rather than the standard four 1.25u keys. In an attempt to reduce the possibility of user confusion, this matrix/layout was renamed — it would have otherwise been the only layout labeled as ISO, but the non-standard layout would yield an extra key.
The keymap submitted with #3198 has also been refactored to use the renamed matrix.
New matrix:
LAYOUT_60_iso
This is a standard 62-key ISO 60% layout.
New rule:
LAYOUTS = 60_iso
With the new matrix/layout, the DZ60 can now support community 60% ISO layouts.
New keymap
iso_uk
I've added a sample keymap based on ISO-UK, that uses the new matrix, to assist users who may desire this layout on their DZ60s. A readme file is also included.
Keymap refactor
All the existing keymaps have been refactored to use the
QMK_KEYBOARD_H
include. In addition, theiso_vim_arrow
keymap has been refactored to use the newLAYOUT_60_iso_5x1u
matrix, after confirming that it uses the same physical layout submitted in #3198.Possible "Gotcha"s
Due to the way the community
LAYOUT_60_iso
andLAYOUT_60_iso_5x1u
matrix/layouts are configured, inLAYOUT_60_iso
, the Enter key appears as the last key on the home row:whereas in
LAYOUT_60_iso_5x1u
, the Enter key is at the end of Row 2:It would be nice, long-term, to have some sort of agreement about which way should be "standard" for QMK.
Tagging:
jkbone
will be modified by this PRiso_vim_arrows
will be modified by this PR