▲ | robenkleene 3 days ago | |||||||||||||||||||||||||||||||
The issue for me with this approach is one: It assumes a clear root for a project (e.g., your base you're cd-ing off of), I think that's only good assumption for small-scale projects? E.g., sufficient complexity, for programming at least, necessitates modularity which dilutes the concept of a "root". The other issue is that it creates a separate "hop" which adds key strokes and cognitive load (i.e., I can't just jump directly to a subdirectory or related directory I first have to jump to a "junction" directory then to my destination). In any event, I could see how that would be a reasonable approach in the absence zoxide, but those are the reasons I personally still prefer zoxide. (For the record, zoxide has some nice techniques for making a match more specific, e.g., `z foo bar` will hop to a dir containing `bar` only if it's in a subdirectory containing `foo`. | ||||||||||||||||||||||||||||||||
▲ | AyyEye 3 days ago | parent [-] | |||||||||||||||||||||||||||||||
Mcfly[1] takes your working directory into account when searching shell history. From the readme: > The key feature of McFly is smart command prioritization powered by a small neural network that runs in real time. The goal is for the command you want to run to always be one of the top suggestions. > When suggesting a command, McFly takes into consideration: - The directory where you ran the command. You're likely to run that command in the same directory in the future. - What commands you typed before the command (e.g., the command's execution context). - How often you run the command. - When you last ran the command. - If you've selected the command in McFly before. - The command's historical exit status. You probably don't want to run old failed commands. | ||||||||||||||||||||||||||||||||
|