New Model F (F77) QMK/VIA question on grave escape override
Posted: 06 Apr 2021, 09:04
Just received my new model F - after a bit of fuss installing the keys a few times to get them adjusted correctly, it's absolutely amazing.
Next problem was to remap the keys. Much appreciation to this thread (viewtopic.php?f=50&p=482419) which laid out the steps to set up QMK and VIA and get a working board simply and quickly.
As a mac user and frequent vi user, my next step was to get the escape/tilde/backtick behavior sorted. I found this documentation (https://beta.docs.qmk.fm/using-qmk/adva ... _grave_esc) with a sensible start that basically maps esc -> esc, but shift+esc to tilde. I was able to find in VIA in the keymap the "` esc" key that corresponds to KC_GESC.
Note that I have left my modifier keys in windows default order (lctrl, lwin, lalt, space, ralt, rwin, ralt) and used the macos keyboard preferences to swap option/command.
In this configuration:
- escape alone works as escape [good]
- escape + shift = ~ [good]
- escape + command (as the mac sees it) / lalt (from VIA) = escape, not recognized by mac to cycle windows within application [bad]
- escape + shift + command (mac) lalt (VIA) = cmd+shift+~, correctly cycles windows in reverse [good]
- escape + opt (mac) / lwin (VIA) = ` [good]
The only change I want from the above status quo is to use the option mentioned at the bottom of the QMK page above called GRAVE_ESC_ALT_OVERRIDE. This should correct the third scenario above by forcing ~` behavior when alt (or cmd from mac perspective) is pressed. This shouldn't interfere with any of the other scenarios, and I don't care much about other combinations.
So the question is: How do you enable GRAVE_ESC_ALT_OVERRIDE in VIA?
As a side note, I ran headlong into this exact same problem four years ago with TMK on my mac M0110 keyboard.(https://geekhack.org/index.php?topic=92222.0). Glad to see QMK nails this - may have to revive that project and get it running on QMK if this works.
Next problem was to remap the keys. Much appreciation to this thread (viewtopic.php?f=50&p=482419) which laid out the steps to set up QMK and VIA and get a working board simply and quickly.
As a mac user and frequent vi user, my next step was to get the escape/tilde/backtick behavior sorted. I found this documentation (https://beta.docs.qmk.fm/using-qmk/adva ... _grave_esc) with a sensible start that basically maps esc -> esc, but shift+esc to tilde. I was able to find in VIA in the keymap the "` esc" key that corresponds to KC_GESC.
Note that I have left my modifier keys in windows default order (lctrl, lwin, lalt, space, ralt, rwin, ralt) and used the macos keyboard preferences to swap option/command.
In this configuration:
- escape alone works as escape [good]
- escape + shift = ~ [good]
- escape + command (as the mac sees it) / lalt (from VIA) = escape, not recognized by mac to cycle windows within application [bad]
- escape + shift + command (mac) lalt (VIA) = cmd+shift+~, correctly cycles windows in reverse [good]
- escape + opt (mac) / lwin (VIA) = ` [good]
The only change I want from the above status quo is to use the option mentioned at the bottom of the QMK page above called GRAVE_ESC_ALT_OVERRIDE. This should correct the third scenario above by forcing ~` behavior when alt (or cmd from mac perspective) is pressed. This shouldn't interfere with any of the other scenarios, and I don't care much about other combinations.
So the question is: How do you enable GRAVE_ESC_ALT_OVERRIDE in VIA?
As a side note, I ran headlong into this exact same problem four years ago with TMK on my mac M0110 keyboard.(https://geekhack.org/index.php?topic=92222.0). Glad to see QMK nails this - may have to revive that project and get it running on QMK if this works.