I've been using this for about a year now - I parsed 6 months of my messages on slack and found the most common phrases I use and generated keyboard shortcuts for them.
r and f are usually pressed with the left index finger, which would have to move between keypresses. With r0, your right hand could align to press the 0 while the r is being pressed, saving time.
Solution: press both keys with a single "rolling" motion of one finger. I don't do that very often while typing, but when playing some games I'll hold down shift with the tip of my pinky and tap ctrl at the same time by flexing the middle of my pinky downwards.
I don't do anything remotely this elaborate, for me it's a couple phrases to bring up the URLs of public discord servers I have to link to frequently. But for this, I use Autohotkey in Windows. It works really well.
I have this with yasnippet in emacs. It's more than just simple expansion too. It expands to a skeleton to fill in the blanks, so f expands to a function definition and then allows you to put in parameters, return type, then body or whatever makes sense in the current language.
Comments (313) 91 threads
Show all comments
Showing thread 15 of 91
Continue this thread — 1 reply