nvbn / thefuck

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

Feature Request: Instant-Interactive Mode + Zoxide with FZF #1436

Open fire17 opened 4 months ago

fire17 commented 4 months ago

Hi there! hope you are well! I've been getting hang of zoxide (with fzf) and im really think it will be amazing if thefuck adopts it the thing with zoxide, it only does folders, but it works amazing, i can be all the way in ~/ (or anywhere) and type cd ben -> and it goes (correctly) to ~/wholesomegarden/xo-benedict (which is long to type/Up/Tab your way through) simply amazing

I want the same for general commands arguments and files, for example, i can type p live (from directory) (p is my alias for python3.11, and inside a folder i frequently use, theres a file .///liveupdate.py) so like zoxide, if the file/folder has a high frequency, it can give a high score to thefuck to run, over a certain positive score, it can skip the prompting to continue, like instant mode, or load a nice & rich interactive window to choose from. Just taking history should give a lot of useful things with fzf + the fuck (you probably already use it) but what i want is like zoxide for the terminal to understand my intention regardless which folder im at, and just run my commands, so this is where the fuck comes in hopefully 🙏

Oh and another important thing... as i undertand, i need to type fuck+Enter to trigger this... i thought it suppose to be instant i would like it to recognize whenever a command was instantly regected and retry without typing fuck

If this is already implemented and i missed it i'd love to know! Thanks a lot and all the best!

Ps- sry if its long, its late haha

guilefoylegaurav commented 3 months ago

Understood. If we can have something like Zoxide + FZF for commands instead of files and folders, then won't that be a completely different product? Something that allows you to perform fuzzy search over the space of most frecent commands? Instead of correcting commands when you're typed in an incorrect one? Nevermind, it'll be super interesting nonetheless. I think the zoxide folks may be working on this too.