But you can't rebind esc to anything (natively), so you lose caps lock. Am I the only one who declares constants and envvars in capitals? And how do people write SQL? With their elbow on the shift key?
I've always just typed constants and SQL with my pinky on the left Shift key. It feels easier than having to toggle Caps Lock all the time.
In situations where I'm excited and messaging my friends to yell, I've typed entire sentences mostly holding down Left Shift. After some experimentation, it looks like even for normal sentence capitalization, I never use Right Shift unless I'm typing one-handed.
Caps for envvars is not a cosmetic convention, it's a style convention to indicate if a variable was sourced from the shell/parent/sourced file vs an internal definition.
Caps for constants is a long standing convention in many style guides and standard libraries.
You appear to be referring to shell scripts. I do not have an opinion on shell script capitalization. However, my opinion on capital keywords in SQL is that it is a relic of an older time when it was used to help visual parsing of the query.
Going further I’m of the opinion that color syntax highlighting does that job far better thus rendering the capital convention obsolete.
Note: you may have a different opinion than me and if you do the laws of the code formatting holy war demand that I assert that you’d be wrong.
Karabiner Elements is free and will let you bind Esc to Caps Lock. It actually allows general remapping for instance I use a Microsoft Sculpt keyboard with my Mac and have that stupid menu key remapped to be a second Option.
Yeah I SHIFT everything capital letters. Feel better than Capslock.
Not a Mac user but I wish my laptop has semi-full size keyboard (that includes everything excluding the number pad), but that's too big for laptops I guess :(