zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: some fix for completion functions
@ 2000-02-27 16:34 Tanaka Akira
  0 siblings, 0 replies; only message in thread
From: Tanaka Akira @ 2000-02-27 16:34 UTC (permalink / raw)
  To: zsh-workers

This modifies some completion functions.

* `dvips -f <TAB>' completes filenames.  Although the manual says it
  reads a .dvi file from stdin, actually it also reads a file specified as
  an argument.

* `lynx <TAB>' completes .html files at first.

* `xwininfo' has options not specifeid in _xutils: -children and -tree.

Index: Completion/User/_dvi
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_dvi,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 _dvi
--- Completion/User/_dvi	1999/12/01 15:29:43	1.1.1.5
+++ Completion/User/_dvi	2000/02/27 16:19:00
@@ -22,7 +22,7 @@
     '(-X -Y)-D[set resolution]:resolution in dots per inch:' \
     '-e[set maximum character offset]:maximum character offset:' \
     '-E[generate EPSF file]' \
-    '(: -o)-f[read from stdin, write to stdout]' \
+    '(-o)-f[write to stdout]' \
     '-F[append control-D]' \
     '-h[specify additional header file]:postscript header file:_files -g \*.\(\#i\)\(ps\|eps\)' \
     '-i[one file per section]' \
Index: Completion/User/_lynx
===================================================================
RCS file: /projects/zsh/zsh/Completion/User/_lynx,v
retrieving revision 1.1.1.5
diff -u -r1.1.1.5 _lynx
--- Completion/User/_lynx	1999/11/15 12:01:49	1.1.1.5
+++ Completion/User/_lynx	2000/02/27 16:19:00
@@ -37,10 +37,10 @@
   '-head' \
   '-help' \
   '-historical' \
-  '-homepage=:URL: _urls -f' \
+  '-homepage=:URL:->html' \
   '-image_links' \
   '-ismap' \
-  '-index=:URL: _urls -f' \
+  '-index=:URL:->html' \
   '-link=:NUMBER:' \
   '-localhost' \
   '-locexec' \
@@ -95,7 +95,7 @@
   '-version' \
   '-vikeys' \
   '-width=:NUMBER:' \
-  ':url: _urls -f'
+  ':url:->html'
 
 case "$state" in
 restrictions)
@@ -105,5 +105,8 @@
     goto inside_ftp inside_news inside_rlogin inside_telnet jump mail \
     multibook news_post options_save outside_ftp outside_news outside_rlogin \
     outside_telnet print shell suspend telnet_port useragent
+  ;;
+html)
+  _files -g '*.html' || _urls
   ;;
 esac
Index: Completion/X/_xutils
===================================================================
RCS file: /projects/zsh/zsh/Completion/X/_xutils,v
retrieving revision 1.1.1.6
diff -u -r1.1.1.6 _xutils
--- Completion/X/_xutils	2000/02/04 12:14:11	1.1.1.6
+++ Completion/X/_xutils	2000/02/27 16:19:00
@@ -8,7 +8,7 @@
   ;;
 xwininfo)
   _x_arguments \
-    -{help,int,stats,bits,events,size,wm,shape,frame,all,english,metric} \
+    -{help,int,children,tree,stats,bits,events,size,wm,shape,frame,all,english,metric} \
     '(-id -name)-root' \
     '(-id -root)-name:name: _x_window -n' \
     '(-name -root)-id:id: _x_window'
-- 
Tanaka Akira


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

only message in thread, other threads:[~2000-02-27 16:34 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-02-27 16:34 PATCH: some fix for completion functions Tanaka Akira

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).