zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: _pydoc
@ 2009-01-30 16:25 Clint Adams
  0 siblings, 0 replies; only message in thread
From: Clint Adams @ 2009-01-30 16:25 UTC (permalink / raw)
  To: zsh-workers

I didn't include modules because "pydoc modules" spouts a lot of garbage on
my system and I didn't care enough to find out why.

Index: Completion/Unix/Command/_pydoc
===================================================================
RCS file: Completion/Unix/Command/_pydoc
diff -N Completion/Unix/Command/_pydoc
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ Completion/Unix/Command/_pydoc	30 Jan 2009 16:24:16 -0000
@@ -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:'


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-01-30 16:25 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-01-30 16:25 PATCH: _pydoc Clint Adams

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).