Custom keymaps for Windows, implemented with AutoHotKey. Designed for programmers who don't use full keyboards, don't like moving their hands, and/or don't always have the privilege of working in a code editor but still want nice keyboard shortcuts.
Key features:
- Momentary layers with symbols, navigation keys, and other functions accessible via
CapsLockandCapsLock + A - Quick navigation with inline search
- Programming shortcuts including sub-word deletion, paired bracket templates, quick semicolon line-ending, and more
- Remap
Copilotkey back toCtrlorPrintScreen
Choose between modern ijkl arrows or Vim-style hjkl arrows navigation.
Use the config variables at the top of keymap.ahk to configure the following options:
- Navigation Cluster: ijkl (default) or hjkl arrows
- Copilot Key: remap to
Ctrl(default) orPrintScreen - Preferred Terminal: command prompt (default), PowerShell, or any executable of choice
- Find First: open a new search (default) or repeated search as the base behavior
- Find Again: jump to next (default) or first occurence
This keymap gives the CapsLock key two functions:
- Tap to
Esc - Hold to enter the Caps Layer
While in the Caps Layer, holding A applies alternate behaviors to certain keys, highlighted above. For example:
CapsLock + \sendsHomeCapsLock + A + \sendsShift + HomeCapsLock + PsendsBackspaceCapsLock + A + PsendsDelete
Win + CapsLock applies the original CapsLock functionality.
Keys marked in blue indicate templates, which wrap the cursor in an opening and closing pair.
For example, ( ) acts as ($END$).
Half-blue keys have split behavior: the white portion is the base behavior in the Caps Layer,
and holding A inserts the full template.
Cased backspace and delete remove sub-words from camelCase, PascalCase, and snake_case words. For example, cased backspace
turns fooBar into foo, FooBar into Foo, and foo_bar into foo.
Inline search allows for quick navigation within a line by jumping to the first, next, or previous occurence of any search pattern.
New searches will display a small textbox to enter the search pattern. Use Enter to search or Esc to cancel.
By default, Find First opens a new search, but Find Next and Find Prev act as repeated searches,
which reuse the previous search pattern, line, and match position to jump between matches quickly.
Find Again reuses the search pattern, but re-scans the line to update the line contents and position.
This feature is under development! Come back soon for more details.
- Long press
Tabto send four spaces. - Long press
Escto send`. Keep pressing to extend it to```. Ctrl + ;places a semicolon at the end of the line.CapsLock + Zopens a terminal.CapsLock + A + Zopens it with administrator access.CapsLock + SsendsCtrl + A.CapsLock + A + SsendsCtrl + S. The design is very human.CapsLock + A + 3places a#at the start of the current word. This is useful for when you copy a hex code and it doesn't come with the hash, but the program that you paste it in expects one and isn't smart enough to figure it out by itself, a personal pet peeve of mine. Due to competing standards, however, there may also be a need for a version that removes the#from the start of a word. Like comment and subscribe if that's something you need in your workflow.