mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-09-17 15:01:40 +02:00
26494: completion for pydoc.
This commit is contained in:
parent
4b2549e2f4
commit
debd4b826a
2 changed files with 21 additions and 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>
|
2009-01-29 Peter Stephenson <pws@csr.com>
|
||||||
|
|
||||||
* 26485: Completion/Unix/Type/_path_files: accept-exact-dirs could
|
* 26485: Completion/Unix/Type/_path_files: accept-exact-dirs could
|
||||||
|
@ -11067,5 +11071,5 @@
|
||||||
|
|
||||||
*****************************************************
|
*****************************************************
|
||||||
* This is used by the shell to define $ZSH_PATCHLEVEL
|
* This is used by the shell to define $ZSH_PATCHLEVEL
|
||||||
* $Revision: 1.4545 $
|
* $Revision: 1.4546 $
|
||||||
*****************************************************
|
*****************************************************
|
||||||
|
|
16
Completion/Unix/Command/_pydoc
Normal file
16
Completion/Unix/Command/_pydoc
Normal file
|
@ -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:'
|
Loading…
Reference in a new issue