-
-
Notifications
You must be signed in to change notification settings - Fork 266
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fish completion not working #486
Comments
Are you using the one from the released version or from master? Completion scripts are generated by the library handling the CLI commands, cobra. They recently updated the fish generation IIRC. |
The released version (git-bug v0.7)
Ok, I'll try the master branch. |
Still doesn't work when built from the latest master branch. Edit: Looks like the command completion might be working, just not for subcommands, since it does complete --help when typing |
Could you try if it works for |
Doesn't work for me (neither bash nor fish). |
Do completions work on your PC? |
Completion for bash works, but I never used fish. There might be extra steps to take for fish: https://github.com/spf13/cobra/blob/master/shell_completions.md |
You mean on the user's side or on the cobra side? Because completion for other commands works without specific configuration. |
I was thinking git-bug/cobra side, but I only skimmed this document. |
Hmm, I haven't used cobra before so I don't think I'll be able to do much here. |
I mean, the fish completion of cobra is supposed to work, but there might be extra things to do on git-bug's command to have proper completion. if that doesn't work for you, something should be done. |
Fair enough, thanks :) |
That's fish's stock After doing
Since fish-shell/fish-shell#7075 (in the upcoming 3.2.0 release) fish automatically loads completions for |
Thanks @krobelus, that's very helpful. |
@krobelus could you open an issue for that problem at https://github.com/spf13/cobra? Looks like it could be easily fixed. |
Turns out this is already fixed in Cobra v1.1.0 (via spf13/cobra#1122). |
I'm a bit confused, current master does use cobra v1.1.1 and the completion script doesn't change after a |
OMG, my bad, I was on an old version indeed. This can be closed. To sum up, when using the development version you can do this to enable fish completions: cp misc/fish_completion/git-bug ~/.config/fish/completions/git-bug.fish OS-specific packages should already do that. I'm not sure if there is an accepted way for |
Well, to be fair, I merged that PR 5 days ago, that's easy to miss.
BTW, I believe the fish completion could be made much nicer by tackling #493 |
Fish completion for git-bug doesn't seem to work for me.
Since it wasn't even listed in the readme I assumed there wasn't a completion script available and have started working on my own version, but then I found it in the repository.
Is the script just a work in progress or should it work properly and this is an actual bug?
The text was updated successfully, but these errors were encountered: