I've finally implemented the command I keep typing all day: gti
r-wos.org
r-wos.org
Like "gti init" could have it start from a dead stop, "gti push" could have it push something in front of it, "gti pull" could have it pull a trailer behind it, etc.
As an experiment, I tried to type 'git init' very quickly a bunch of times and my typos were:
git niti
git niit
git itnit
giti nit
but never 'gti'.I never type "sl" either.
When you use the same finger to type the G and T and a different finger to type I, it seems really impossible for me to accidentally type G-T-I.
The more common mistake is when you have to type two consecutive letters with the same finger but end up typing the next one earlier because its on a different finger (usually on the opposing hand).
Ex: 'teh' instead of 'the'- T,H with left index finger. E with left middle finger.
I also almost never type 'sl' though I do often type 'qw' in the Vim command line instead of 'wq'
For example, I frequently type :Wq instead of :wq, especially in a SSH session, which adds some latency to the release of Shift key.
EDIT: SSH has nothing to do with this. It's just an emotional impact on the extra hassles of backspacing with latency.
About "git", for me left-index, right-middle, left-middle.
ssh doesn't see the keystroke until it's fully formed by your OS and/or window manager, so there can be no latency to the release of shift.
It predicts what the server will do with your input and displays the result (with an underline) until the server responds. This means typing is always at local speed even if the network is being flaky.
Then I saw this trick that saved me considerable grief:
noremap ; :
Now, just hit ; in normal mode to get the command line.[1] has what seems to be the classic way, with t and even r being typed my the index finger.
Where did you learn your style? (Or why?)
How and why? I started messing around with programming when I was a kid and I never learned typing or trained for it formally. When I started, I was just pecking with my index fingers, but since my mom and dad used a typewriter for their stuff, I was fully aware that pecking was suboptimal. They never offered any practical help with that, probably because they knew that I couldn't care less about how I type, as long as I could crank out my code. Long story short: I've developed my own technique, spontaneously. I'm aware that it's probably suboptimal, but it's good enough for me and I can't be bothered to retrain when there's so much more interesting stuff to do ;)
I pretty much learned to type at a reasonable speed from MUDs, IRC, and other online chat. I'm >80wpm even using this nonstandard technique on QWERTY.
I type like this mainly on apple mba13/mbp keyboards (low travel, small); on a full-sized Das Keyboard at my desk, it's closer to conventional typing, although I still never hit a or l with pinky.
Like you say, it's not at all conscious. I think it's probably because I taught myself to type at a very young age, and never thought to do it any differently.
(I also wonder if the number of trials you did was statistically significant--but never mind!)
usually it's left-index, right-middle, left-index, but sometimes it's left-index, right-middle, left-middle. It seems to depend on what I'm going to type next, but I don't seem to have a lot of insight as to what my fingers are doing (or why) ;)
Oh, I'm a dvorak user, by the way. :)
I use an even more failsafe technique: typing the word "git" correctly each time.
Aliasing it to 'sleep 2 ; git' would do the same thing, but would lack the embarrassment and amusement that the animation gives.
Of course mostly that is just an excuse. "Because it is fun" is really the only reason that there needs to be.
Now I need something to stop me typing 'pythong' in shebangs.
alias ga='git add'
alias gs='git status'
alias gc='git commit'
alias gls='git ls-files' #lists all tracked files!
alias gg='git add -u; git commit -a -m "lazy commit"' # stage and commit everything tracked. So lazy ...
The latter I only use for committing non-code. Like my notes in org-mode.I also found it very convenient to have
alias eb='emacs ~/.bash_profile'
makes me edit my dash_profile almost every day.I still alias 'git' to 'g' also for all the other commands needed throughout the day. Not sure why yall would keep typing 'it'.
I do enjoy the ascii car tho. Cheers to that. Probably will set this up anyways!
https://github.com/dickfickling/gti
Maybe even just every two ticks (% 4 < 2) would be fine.
edit: Forgot to say: wonderful idea and nice implementation! Simple yet satisfying.
As a pro piano, saxophone and guitar player, I'm prepping a rather lengthy blog post about proper fingering when typing, and the inadequacy of standard keyboard layouts, in particular, wrong placement of modifier keys as pivot points.
alias l='ls'
alias vmi='vim'
alias ivm='vim'
alias grpe='grep'
alias amke='make'
alias mkae='make'
alias maek='make'
Fixes most everything I screw up regularly :) "\C-ga": "git add "
and so on in my .inputrc (https://github.com/grn/dotfiles/blob/master/inputrc). This allows me to type Ctrl-g, a to insert "git add ". It makes typing faster and is clearer than aliases.pawka@yoda ~/Desktop> gti
zsh: correct 'gti' to 'git' [nyae]?