summaryrefslogtreecommitdiff
path: root/users
diff options
context:
space:
mode:
authorxton <cmdpix@mac.com>2018-05-13 21:02:06 -0700
committerDrashna Jaelre <drashna@live.com>2018-05-13 21:02:06 -0700
commit47f03bd5a4195c44fe7d6fbca0ba8b66cd3da0fa (patch)
treeabecbaa7f3030979f198c3dfd35e9bc5569ac13e /users
parent70e60b0a0cbcc000b0192cec8d32a2745a0b25fa (diff)
downloadqmk_firmware-47f03bd5a4195c44fe7d6fbca0ba8b66cd3da0fa.tar.gz
qmk_firmware-47f03bd5a4195c44fe7d6fbca0ba8b66cd3da0fa.zip
Xton has a dz60 (#2952)
* FORK! * WIP - just how i like it * empty * more movement * mouse keys * more vimminess * append/insert shift * WIP - vim macros * blocked out layer below in cmd mode. also, about to restart my cmd approach. * WIP - new vim layer ripoff of the ergodox one, but rewritten as a state machine. * debugged some, got key repeat working * moooar coverage * moooar coverage * regular vis mode * basically done with basics. * some refactoring - common movement sequences into helper function - added some rgb controls * modkey passthru feature * stdized on cmd-left/right instead of ctrl-a/e sadly. as there's no reliable shift-ctrl-e * indicator lights * moved vim layer into userspace * cleaned up some yanking edge cases * docs and some tweaks to layerescapes * updated/added license strings * updated comments * moved config changes to keymap * spurious changes removed * cleanup pass, HT drashna for suggestions - used _keymap() pattern to better modularize event processing in userspace - made some static things static - removed unused function - improved reset. * dz60 started. keymaps done. * bugfixes: missing state change in d-, lspace should toggle vim mode. * Caps lock indicator -> vim indicator. And adjusted mousekey settings. * don't actually need the second move trigger and it makes typing less responsive. * some oppurtunistic bugfixing from my other keyboard (sorry) * added readme for my dz60 keymap. * bugfixing and comments updated (niu_mini) * cleanup as suggested from review
Diffstat (limited to 'users')
-rw-r--r--users/xtonhasvim/xtonhasvim.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/users/xtonhasvim/xtonhasvim.c b/users/xtonhasvim/xtonhasvim.c
index 0ec331b684..a2ff2fa31c 100644
--- a/users/xtonhasvim/xtonhasvim.c
+++ b/users/xtonhasvim/xtonhasvim.c
@@ -384,6 +384,7 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
simple_movement(keycode);
CMD(KC_X);
yank_was_lines = false;
+ vstate = VIM_START;
break;
case VIM_D:
CMD(KC_LEFT);
@@ -467,6 +468,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
SHIFT(KC_LEFT); // select to start of next word
RELEASE(KC_LALT);
break;
+ case VIM_P:
+ CMD(KC_V);
+ vstate = VIM_START;
+ break;
case VIM_Y:
CMD(KC_C);
TAP(KC_RIGHT);
@@ -525,6 +530,10 @@ bool process_record_user(uint16_t keycode, keyrecord_t *record) {
TAP(KC_RIGHT);
vstate = VIM_START;
break;
+ case VIM_P:
+ CMD(KC_V);
+ vstate = VIM_START;
+ break;
case VIM_V:
case VIM_ESC:
TAP(KC_RIGHT);