| |
| ▲ | amelius 3 days ago | parent [-] | | If I have 100 paths that end in ".../src", then interactive selection will, I suppose, make me go through that long list. | | |
| ▲ | fwip 3 days ago | parent [-] | | You can type any part of the path, not just the final part - so, from `/path/to/projects/go/github.com/me/my-cool-app/src`, you could type `cool-app/src` or `proj me cool src` or `cool s`. Interactive selection is useful partly because you can search iteratively, for less-frequently accessed locations. E.g: I might type `go fwip` because I'm looking for my go projects, and then once I see it in the list and actually remember it's called "my-radical-app", I add `rad` (or use the arrow keys to select) and hit enter. | | |
| ▲ | amelius 3 days ago | parent [-] | | Ok. That's good to know. I currently use an alias per folder. So I would type "cool-app", and it would go to the desired folder. But, and here comes the point, the alias also runs "source sourceme" to put all the environment variables in place, start virtual environments, etc. | | |
| ▲ | fwip 3 days ago | parent [-] | | That sounds like you've already got it pretty well figured out, then. :) If you did want to get fuzzy-matching in your workflow, I might recommend using building a small alias/function with fzf[1], rather than using zoxide. Something like `dst=$(cat ~/myprojectlist.txt | fzf) && cd $dst && source sourceme`. You wouldn't get the list sorted by most-frequent/recent like you do with zoxide, but it sounds like that's not what you're looking for anyways. [1] https://github.com/junegunn/fzf |
|
|
|
|