Change keybindings to be more vi like

This commit is contained in:
Alexander Rosenberg 2022-10-09 22:50:19 -07:00
parent 7615c82d7c
commit 64de25ebcd
Signed by: Zander671
GPG Key ID: 5FD0394ADBD72730

View File

@ -478,14 +478,17 @@ keypress(XKeyEvent *ev)
case XK_g: ksym = XK_Escape; break; case XK_g: ksym = XK_Escape; break;
case XK_h: ksym = XK_BackSpace; break; case XK_h: ksym = XK_BackSpace; break;
case XK_i: ksym = XK_Tab; break; case XK_i: ksym = XK_Tab; break;
case XK_j: /* fallthrough */ //case XK_j: /* fallthrough */
case XK_J: /* fallthrough */ case XK_J: /* fallthrough */
case XK_m: /* fallthrough */ case XK_m: /* fallthrough */
case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break; case XK_M: ksym = XK_Return; ev->state &= ~ControlMask; break;
case XK_j: /* fallthrough */
case XK_n: ksym = XK_Down; break; case XK_n: ksym = XK_Down; break;
case XK_k: /* fallthrough */
case XK_p: ksym = XK_Up; break; case XK_p: ksym = XK_Up; break;
case XK_k: /* delete right */ //case XK_k: /* delete right */
case XK_l: /* delete right */
text[cursor] = '\0'; text[cursor] = '\0';
match(); match();
break; break;