nvbn / thefuck

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

QuickFuck - automatic, no confirmation, multi-typo-fix, togglable #1385

Open fire17 opened 1 year ago

fire17 commented 1 year ago

Hi there, not the first to ask for this, But couldn't find an answer in the readme or issues

I'd like to set ''' $ fuck -r --on --nc TheFuck is set to Automatic! With -r Multi-Typo-Fix and --nc No Confirmation ''' And fuck --off to turn it off

Anyone managed to do this??

technophile32 commented 1 year ago

@fire17 As I can understand, you want is: "select the most likely corrected command (without asking for confirmation) and to repeat the process if the corrected command still fails."

fire17 commented 1 year ago

As I understand, it just so if there's more than one typo, it will correct all of them , and should run only if it finds a match and the error was recognizable and common. It's not like it should trigger for any random crash of a program, only when it's a syntax error when trying to run something...

If it's good than I want to trust it. (with toggle options), and if I trust it, I want it to just run, without me giving any fucks. It should fuck itself

fire17 commented 1 year ago

Maybe recursive is not the right word, More like multi-typo-fix in one go

(Editing Title)

fire17 commented 1 year ago

I saw that disabling the confirmation is already possible

And I'm pretty sure Multi-Typo-Fix should be standard. no recursive recalling, just iterate a few times before outputting, to make sure no typos are left) - maybe it's already like that and I'm just not caught up

Back to my original question @technophile32 is there a way to toggle --on --off automatic mode?

Thanks a lot and all the best !