Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: match again



>>> "Bart" == Bart Schaefer <schaefer@xxxxxxxxxxxxxxxxxxxxxxx> writes:

 Bart> On Jan 28,  5:47pm, Alexandre Duret-Lutz wrote:
 Bart> } Subject: Re: match again
 Bart> }
 Bart> } -compstyle '*:options' prefix-hidden yes"
 Bart> } +zstyle '*:options' prefix-hidden yes"

 Bart> (And several similar examples in comments.)

 Bart> These are not equivalent.  Is it really correct to change it this way?
 Bart> The actual equivalent of the "compstyle" statement would be 

 Bart> 	zstyle ':completion*:options' prefix-hidden yes

Oops, sorry!  So let's remove my garbage...
(this also fix the comment in _urls that used 
ztyle incorrectly (well, I think :-))

Index: Completion/User/_urls
--- Completion/User/_urls Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/User/_urls Tue, 01 Feb 2000 11:08:04 +0100 Alexandre
@@ -6,7 +6,7 @@
 #
 # Configuration styles used:
 #
-#  urls:path
+#  path
 #    The path to a directory containing a URL database, such as:
 #
 #      % cd ~/.zsh/urls
@@ -29,14 +29,14 @@
 #      % cat bookmark/zsh/meta
 #      http://www.zsh.org/
 #
-#  urls:local
+#  local
 #    Specify a local web server as an array with three elements:
 #      <hostname> <doc root> <user area>
 #    where hostname is the name of the web server, doc root is the path to
 #    the default web pages for the server and user area is the directory
 #    name used by a user placing web pages within their home area.
 #    E.g.:
-#      zstyle '*:urls:local' www /usr/local/apache/htdocs public_html
+#      zstyle ':completion:*:urls' local www /usr/local/apache/htdocs public_html
 
 local ipre scheme host user uhosts ret=1 expl
 local urls_path localhttp
Index: Completion/Core/compinit
--- Completion/Core/compinit Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/compinit Tue, 01 Feb 2000 11:42:13 +0100 Alexandre
@@ -358,7 +358,7 @@
       tmp="'*:options' prefix-needed yes"
       [[ "$val" = hide* ]] &&
           tmp="$tmp
-zstyle '*:options' prefix-hidden yes"
+zstyle ':completion*:options' prefix-hidden yes"
       ;;    
     group_matches)
       tmp="'*' group-name ''"
@@ -403,7 +403,7 @@
       tmp="'*' last-prompt 'yes'"
       ;;
     esac
-    [[ -n "$tmp" ]] && style="${style}${cmt}zstyle ${tmp}
+    [[ -n "$tmp" ]] && style="${style}${cmt}zstyle :completion${tmp}
 "
   done
 
Index: Completion/Core/_menu
--- Completion/Core/_menu Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/_menu Tue, 01 Feb 2000 11:16:05 +0100 Alexandre
@@ -6,7 +6,7 @@
 # implemented with the new completion system.
 # Use this one before the normal _complete completer, as in:
 #
-#   zstyle "*" completer _menu _complete
+#   zstyle ":completion:*" completer _menu _complete
 
 if [[ -n "$compstate[old_list]" ]]; then
 
Index: Completion/Core/_match
--- Completion/Core/_match Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Core/_match Tue, 01 Feb 2000 11:16:43 +0100 Alexandre
@@ -1,7 +1,7 @@
 #autoload
 
 # This is intended to be used as a completer function after the normal
-# completer as in: `zstyle "*" completer _complete _match'.
+# completer as in: `zstyle ":completion:*" completer _complete _match'.
 # It temporarily switches on pattern matching, allowing you to try 
 # completion on patterns without having to setopt glob_complete.
 #
Index: Completion/Base/_combination
--- Completion/Base/_combination Sat, 29 Jan 2000 09:42:57 +0100 Alexandre
+++ Completion/Base/_combination Tue, 01 Feb 2000 11:38:44 +0100 Alexandre
@@ -11,7 +11,7 @@
 #  Assume an user sets the style `hosts-ports-users' as for the my-accounts
 #  tag:
 #
-#    zstyle '*:telnet*:my-accounts' hosts-ports-users \
+#    zstyle ':completion:*:telnet*:my-accounts' hosts-ports-users \
 #      host0:: host1::user1 host2::user2
 #      mail-server:{smtp,pop3}:
 #      news-server:nntp:
-- 
Alexandre Duret-Lutz



Messages sorted by: Reverse Date, Date, Thread, Author