thefuck icon indicating copy to clipboard operation
thefuck copied to clipboard

thefuck can't handle more than one error in a sentence

Open 19noam opened this issue 2 years ago • 5 comments

Screenshot_20220322_094601

When I type "pup istall hello" it fixes the sentence to " pip istall hello" but when I type "pip istall hello" it fixes the sentence to " pip install hello"

19noam avatar Mar 22 '22 07:03 19noam

isn't that how it's supposed to work tho?

baltermia avatar Mar 22 '22 15:03 baltermia

You could use fuck -r instead to correct recursively until it succeeds.

TarunRKaushik avatar Mar 28 '22 15:03 TarunRKaushik

I have an idea to fix this, so when you type fuck and there are more than one mistakes it will automatically correct all of them. Could you please assign me?

nkakonas avatar Mar 28 '22 16:03 nkakonas

I don't think that's a good idea. It will decrease performance. Just use fuck -r.

baltermia avatar Mar 28 '22 17:03 baltermia

Could it be a configurable option? Non-Lazy people use recursive... Lazy people flip the switch?

D1978R avatar Apr 06 '22 05:04 D1978R