I guess I'm not following your comment.
The problem with caps lock is that creates a mode, which causes mistakes when you turn it on accidentally or leave it on after you expect. While in the caps lock mode, all the keys on the keyboard behave differently, in a rather arbitrary way. Shift + letter doesn’t always produce the same character as hold caps lock + letter + release caps lock. This is confusing and unnecessary.
The only real advantage to caps lock vs. holding a shift key down is that holding shift gets uncomfortable with some combinations, but with caps lock you can strike the keys one at a time instead of needing to make a chord.
If you mostly use caps lock to capitalize single letters, then you’d be better off with a key (let’s call it ◊) which, when you press it, causes the immediately following key to be treated exactly as if shift was held down.
So pressing ◊ then x makes
X, or pressing ◊ then 7 makes
&, or ◊ then \ makes
|, etc.
If you don’t press another key within a few seconds afterward, you probably want to ignore the ◊ key and let the next key just type a lower-case letter.
Optionally, you could combine this with the shift key, so holding down ◊, pressing a, b, c, then releasing ◊ key would type
ABC.
If you want to use caps lock to capitalize long stretches of text, and don’t like holding down shift or repeatedly pressing a ◊-like key, you’d be better off typing the text in lower case and then at the end invoking some command which capitalizes the whole word, line, or selection. Exactly what keystroke should invoke that command, how it should work, etc. depends on your personal preferences, and what kind of keystrokes you use for other navigation and selection commands. Basically all text editors currently have ****ty default setups for all of these basic functions, so I recommend customizing something to suit your own personal preferences.