nvbn / thefuck

Magnificent app which corrects your previous console command.
MIT License
84.76k stars 3.42k forks source link

correct uppercase fuckups #802

Open pitommasi opened 6 years ago

pitommasi commented 6 years ago

I'd like to set a custom rule so that when I accidentally type

CD MNT/C

it suggests:

cd mnt/c

is that feasible?

RVALLER commented 2 years ago

Anyone have ideas how to make this work? I been messing with the baseline @romangraef gave and also trying my own methodology and to no avail. I"m doing this for a capstone project and I'd really like to get this working. It's a super neat project and I want to contribute something to it.

scorphus commented 2 years ago

How about sharing your methodology? 🙂

What if match would return True when there's any character in script that can be converted to lowercase?

I can suggest code if you'd like.