When was the last time you (intentionally) used your caps lock key?
No, seriously.
Here is a typical US-layout qwerty (mac) keyboard. Notice:
- Caps lock is conveniently located only one key away from A, which is where your left pinky should rest on the home row by default.
- Caps lock is absolutely massive.
- How far various other keys you might want use often are from the home row.
Remap your caps lock key.
I have mine mapped to escape.
Modifier keys such as control or command are also good options (you could then map control/command to escape).
How do I do this you ask?
- On Mac, system settings > keyboard > keyboard shortcuts > modifier keys.
- On Windows, Microsoft PowerToys' Keyboard Manager is one solution.
- If you use Linux, I trust you can manage on your own.
Thanks to Rudolf for introducing me to this idea.
I use ProtoTyping: https://github.com/pnutus/ProtoTyping
How it works:
Capslock as modifier, hold it to use right hand for:
ijkl like wasd where:
i : to move cursor one row up
k : one row down
j : one character left
l : one character right
————————
u : one word left,
o : one word right,
h : to go to beginning on line,
key right of L : to go to end of line.
————————
Then also use modifier with left hand at the same time as Capslock to:
s : selecting text with movement commands described above. E.g. Capslock + s + o, to select the next word.
d : deleting text with movement commands described above
————————
Examples:
E.g. Caps + d + h to delete everything to the left of the cursor on the line. If you need to delete multiple lines just: (Caps + d + i)x3, e.g. to delete three rows. (very useful in programming)
E.g. (Caps + s + u)x3, to select the 3 words to the left of the cursor, so you can then copy them e.g.
This helps you not have to move your hand to the mouse or to the arrow keys as much. Your hands stays in the right position for touch typing (fast typing) where index fingers rest on f and j. Just release caps for a bit to write, and quickly move around holding down caps.
You can use it in any app, not just code editors.