git <tab> only completes to --help #3087

Closed
mineo opened this Issue May 29, 2016 · 1 comment

Projects

None yet

4 participants

@mineo
Contributor
mineo commented May 29, 2016 edited

Reproduction Steps:

  1. rm -rf ~/.config/fish; rm -rf ~/.local/share/fish
  2. fish
  3. git --<tab>

Expected behavior:

All of the options to git should be suggested:

git --help
usage: git [--version] [--help] [-C <path>] [-c name=value]
           [--exec-path[=<path>]] [--html-path] [--man-path] [--info-path]
           [-p | --paginate | --no-pager] [--no-replace-objects] [--bare]
           [--git-dir=<path>] [--work-tree=<path>] [--namespace=<name>]
           <command> [<args>]

Observed behavior:

Autocompletion to --help

Additional information:

fish_update_completions doesn't help.


Fish version: 2.3.0

Operating system: Arch Linux

Terminal or terminal emulator: urxvt

@faho
Member
faho commented May 29, 2016

Yes, the git completions are partly incomplete (and they are always going to be, because git is massive).

fish_update_completions doesn't help.

That's expected, because the git completions are hand-written. I don't think it's possible to write a man page parser that generates completions to this level.

@faho faho added the completions label May 29, 2016
@faho faho self-assigned this May 29, 2016
@faho faho added a commit that closed this issue May 29, 2016
@faho faho git completions: Add general options
These are the options between `git` and the subcommand.

Fixes #3087.
2871096
@faho faho closed this in 2871096 May 29, 2016
@zanchey zanchey added this to the next-2.x milestone Jul 3, 2016
@floam floam added the bug label Aug 3, 2016
@faho faho modified the milestone: fish 2.4.0, next-2.x Sep 4, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment