5cf7216774
optparse-applicative-0.14.0.0 adds support for these, so have the Makefile install their scripts when built with it. CmdLine/GitAnnex/Options.hs now uses action "file" in cmdParams, which affects the bash and zsh completions, letting them complete filenames for subcommands that use that. This is not needed for bash, since bash-completion.bash enables -o bashdefault, which lets it complete filenames too. But it does not seem to break the bash completions. It is needed for zsh; the zsh completion otherwise does not complete filenames. The fish completion will always complete filenames no matter what. Messy. This commit was sponsored by Denis Dzyubenko on Patreon.
12 lines
371 B
Text
12 lines
371 B
Text
[[!comment format=mdwn
|
|
username="joey"
|
|
subject="""comment 1"""
|
|
date="2017-06-09T15:34:59Z"
|
|
content="""
|
|
When git-annex is built with optparse-applicative version 0.14.0.0,
|
|
it can generate its own zsh completion file. The Makefile installs that,
|
|
and it seems to work well.
|
|
|
|
So, I think that the hand-built zsh completions won't need to be maintained
|
|
much longer!
|
|
"""]]
|