busy-ram-14533
05/09/2025, 4:21 PMzsh completions with pants complete and it doesn't seem to have made any difference. I'm wondering if anyone else noticed this? Or am I doing something wrong?
More specifically, if I type pants in the repo root and hit tab, it only suggests the local files and folders to autocomplete. If I type something like pant fm or pants li and hit tab, it does not auto-complete the goal namesbusy-ram-14533
05/09/2025, 4:21 PM% pants complete --shell=zsh > ~/.zsh/completions/pants-completions.zsh
Added to `.zshrc`:
fpath=(/Users/gregory.fast/.zsh/completions $fpath)
autoload -Uz compinit
compinit
and then created a new shell.
I also tried directly doing source ~/.zsh/completions/pants-completions.zshwide-midnight-78598
05/09/2025, 5:48 PMwide-midnight-78598
05/09/2025, 5:50 PMwide-midnight-78598
05/09/2025, 5:56 PMbusy-ram-14533
05/09/2025, 6:20 PMwide-midnight-78598
05/09/2025, 6:21 PMbusy-ram-14533
05/09/2025, 6:23 PMwide-midnight-78598
05/09/2025, 6:23 PMbusy-ram-14533
05/09/2025, 6:28 PMbusy-ram-14533
05/09/2025, 6:29 PMah yup, uncommenting did the trick for me tooI had to
source the script with the compdef line uncommentedbusy-ram-14533
05/09/2025, 6:37 PMpants test and hit tab, I'd like to get file path auto completions so that I can more easily get something like pants test path/to/my/targets:wide-midnight-78598
05/09/2025, 6:42 PMpants test ./<tab>
It's not great, but I didn't spend much time working on interactions between autocomplete and the filesystem, as target completion could also work well (and covers more cases)busy-ram-14533
05/09/2025, 6:43 PMwide-midnight-78598
05/09/2025, 6:43 PMwide-midnight-78598
05/09/2025, 6:44 PM