zsh-workers
 help / color / mirror / code / Atom feed
* PATCH: file:/// in _urls
@ 2002-08-06 20:35 Clint Adams
  2002-08-06 21:06 ` Clint Adams
  0 siblings, 1 reply; 2+ messages in thread
From: Clint Adams @ 2002-08-06 20:35 UTC (permalink / raw)
  To: zsh-workers

This lets one complete local filenames after file:///

Unfortunately, file://localhost/ doesn't work.

Index: Completion/Unix/Type/_urls
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_urls,v
retrieving revision 1.4
diff -u -r1.4 _urls
--- Completion/Unix/Type/_urls	16 Apr 2002 07:48:46 -0000	1.4
+++ Completion/Unix/Type/_urls	6 Aug 2002 20:21:18 -0000
@@ -82,6 +82,7 @@
     fi
   ;;
   file)
+    [[ -prefix /// ]] && compset -P //
     if ! compset -P //; then
       _tags -C file files
       while _tags; do


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: PATCH: file:/// in _urls
  2002-08-06 20:35 PATCH: file:/// in _urls Clint Adams
@ 2002-08-06 21:06 ` Clint Adams
  0 siblings, 0 replies; 2+ messages in thread
From: Clint Adams @ 2002-08-06 21:06 UTC (permalink / raw)
  To: zsh-workers

> Unfortunately, file://localhost/ doesn't work.

This deals with that special case.

Index: Completion/Unix/Type/_urls
===================================================================
RCS file: /cvsroot/zsh/zsh/Completion/Unix/Type/_urls,v
retrieving revision 1.1.4.2
diff -u -r1.1.4.2 _urls
--- Completion/Unix/Type/_urls	6 Aug 2002 20:43:02 -0000	1.1.4.2
+++ Completion/Unix/Type/_urls	6 Aug 2002 21:05:33 -0000
@@ -91,6 +91,7 @@
     fi
   ;;
   file)
+    [[ -prefix //localhost/ ]] && compset -P //localhost
     [[ -prefix /// ]] && compset -P //
     if ! compset -P //; then
       _tags -C file files


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2002-08-06 21:06 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-06 20:35 PATCH: file:/// in _urls Clint Adams
2002-08-06 21:06 ` 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).