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

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

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

Comments

Projects
None yet
4 participants
@mineo
Contributor

mineo commented May 29, 2016

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

This comment has been minimized.

Show comment
Hide comment
@faho

faho May 29, 2016

Member

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.

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 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 milestones: 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