diff options
author | 2017-06-09 11:38:20 -0400 | |
---|---|---|
committer | 2017-06-09 11:38:20 -0400 | |
commit | 18e35afc882d2628b599b2778d9fb4a0a0569f13 (patch) | |
tree | 19f102a380501c673b81285a766875777f591a67 /doc/tips | |
parent | a7d1d1d76ce2f776b976b64e74b822cef8b98fe2 (diff) |
zsh and fish completions
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.
Diffstat (limited to 'doc/tips')
-rw-r--r-- | doc/tips/ZSH_completion/comment_1_a810be47633dc83d737a9ef6e8870431._comment | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/doc/tips/ZSH_completion/comment_1_a810be47633dc83d737a9ef6e8870431._comment b/doc/tips/ZSH_completion/comment_1_a810be47633dc83d737a9ef6e8870431._comment new file mode 100644 index 000000000..c3c12ab31 --- /dev/null +++ b/doc/tips/ZSH_completion/comment_1_a810be47633dc83d737a9ef6e8870431._comment @@ -0,0 +1,12 @@ +[[!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! +"""]] |