Defines some key mappings for Mail, Mimestream, Notes and Photos apps to showcase custom Vim-like navigation in regular GUI apps. Please refer to code comments for details.
Note: Besides kindaVim and kindaGlue, some of the mappings rely on Homerow.
- Change the profile name in
src/index.tsas desired (or keep it as is). - Make sure the profile with the name exists in Karabiner-Elements and
Modify eventsis toggled on for the keyboard you're using in Configurations > Devices. - Tweak
src/sugar/config.ts(especially the shortcuts) to match kindaVim and (optionally) Homerow settings. - To build and write to Karabiner-Elements config, run
npm run build.
The config includes quite a bit of custom stuff built upon vanilla karabiner.ts. You don't really need that to make use of kindaGlue, but I feel like it does make the configuration a lot easier, especially for leader key sequences.
Make sure you have Karabiner-Elements, kindaVim, kindaGlue and (optionally) Homerow running with all the necessary accessibility permissions, try it and tweak as desired.
I may add documentation in the future, but for now, please refer to the comments sprinkled around the code (especially src/index.ts).