just icon indicating copy to clipboard operation
just copied to clipboard

autocomplete targets after `just -g`

Open teto opened this issue 1 year ago • 4 comments

using nixpkgs' just version 1.35.0, just -g <TAB> wont autocomplete any targets even if my justfile is just

golden-test:
  nix run  .#fastbuild.golden-test

I would expect pressing the tabulation key to show/autocomplete golden-test Tested with bash and zsh.

teto avatar Sep 27 '24 10:09 teto

Weird, I'm not sure what the issue is here since I don't use nix, and it seems to be working locally for me. Leaving this open in case anyone has any insight.

casey avatar Sep 30 '24 22:09 casey

must be something in my setup then. Thanks for the confirmation. I'll investigate when I have time.

teto avatar Oct 01 '24 13:10 teto

I'm also not getting tab completion with just -g, in my normal fish shell but also zsh/bash. I don't have any nix recipes in my global justfile so it's not that. @teto I think it's worth re-opening this issue.

neunenak avatar Oct 01 '24 22:10 neunenak

+1, has same issue

Ukio-G avatar Oct 07 '24 00:10 Ukio-G

Same here, zsh's auto-complete defaults to the local JustFile when -g (for global) & --justfile flags are set.

To reproduce, just create a justfile in ~/.justfile add dummy commands then try:

Image

I'm kinda new to Just, let me know if I'm doing sth wrong. Else, I managed to patch it locally. I'll hopefully raise a PR soon.

saif97 avatar Dec 05 '25 19:12 saif97