diff options
| author | Clint Adams <clint@users.sourceforge.net> | 2009-01-30 16:29:06 +0000 |
|---|---|---|
| committer | Clint Adams <clint@users.sourceforge.net> | 2009-01-30 16:29:06 +0000 |
| commit | debd4b826ab92133bc4bb94ebdc42a28b82bfb9f (patch) | |
| tree | 94b0951d1c5e6a780a03ba922583bde19d12dfe7 | |
| parent | Ingmar Vanhassel: 26474: add "git describe --tags" completion and fix typos. (diff) | |
| download | zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar.gz zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar.bz2 zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar.lz zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar.xz zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.tar.zst zsh-debd4b826ab92133bc4bb94ebdc42a28b82bfb9f.zip | |
26494: completion for pydoc.
| -rw-r--r-- | ChangeLog | 6 | ||||
| -rw-r--r-- | Completion/Unix/Command/_pydoc | 16 |
2 files changed, 21 insertions, 1 deletions
@@ -1,3 +1,7 @@ +2009-01-30 Clint Adams <clint@zsh.org> + + * 26494: Completion/Unix/Command/_pydoc: completion for pydoc. + 2009-01-29 Peter Stephenson <pws@csr.com> * 26485: Completion/Unix/Type/_path_files: accept-exact-dirs could @@ -11067,5 +11071,5 @@ ***************************************************** * This is used by the shell to define $ZSH_PATCHLEVEL -* $Revision: 1.4545 $ +* $Revision: 1.4546 $ ***************************************************** diff --git a/Completion/Unix/Command/_pydoc b/Completion/Unix/Command/_pydoc new file mode 100644 index 000000000..92a01a76f --- /dev/null +++ b/Completion/Unix/Command/_pydoc @@ -0,0 +1,16 @@ +#compdef pydoc + +local context state line +typeset -A opt_args + +_arguments \ + '-k[keyword]:keyword:' \ + '-p[port]:port:_ports' \ + '-g[gui]' \ + '-w[write out HTML]:file or dir:_files' \ + ':keyword, topic, module, package, or dotted reference:->lookup' && return 0 + +_alternative \ + 'keywords:keyword:compadd ${=${${(f)"$(pydoc keywords)"}[2,-1]}}' \ + 'topics:topic:compadd ${=${${(f)"$(pydoc topics)"}[2,-1]}}' \ + 'modules:module:' |
