Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
RE: PATCH: Re: ignored-patterns giving correction a go
- X-seq: zsh-workers 10178
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: RE: PATCH: Re: ignored-patterns giving correction a go
- Date: Mon, 20 Mar 2000 11:54:33 +0100 (MET)
- In-reply-to: "Andrej Borsenkow"'s message of Mon, 20 Mar 2000 13:50:30 +0300
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
Andrej Borsenkow wrote:
> > > The point being that perhaps it should not be bound to a key by compinit
> > > if it's not in the completer list by default ...
> >
> > Ah, right. The patch does that (I think this is saver than changing
> > the default completer value).
> >
>
> Looks like you forgot to include it ...
Ahem.
Bye
Sven
diff -ru ../z.old/Completion/Commands/_next_tags Completion/Commands/_next_tags
--- ../z.old/Completion/Commands/_next_tags Mon Mar 20 11:07:24 2000
+++ Completion/Commands/_next_tags Mon Mar 20 11:32:04 2000
@@ -1,4 +1,13 @@
-#compdef -k complete-word \C-xn
+#autoload
+
+# To use this, put _next_tags at the beginning of the completer style,
+# define it as a completion widget and bind it to a key, e.g.:
+#
+# zle -C _next_tags complete-word _next_tags
+# bindkey '^Xn' _next_tags
+#
+# Makes it be bound to ^Xn.
+
# Main widget/completer.
diff -ru ../z.old/Doc/Zsh/compsys.yo Doc/Zsh/compsys.yo
--- ../z.old/Doc/Zsh/compsys.yo Mon Mar 20 11:07:07 2000
+++ Doc/Zsh/compsys.yo Mon Mar 20 11:34:00 2000
@@ -1867,8 +1867,8 @@
var(N), complete the var(N)th most recently modified file. Note the
completion, if any, is always unique.
)
-findex(_next_tags (^Xn))
-item(tt(_next_tags (^Xn)))(
+findex(_next_tags)
+item(tt(_next_tags))(
This allows to complete types of matches that are not immediately
offered because of the setting of the tt(tag-order) style. After a
normal completion was tried, invoking this command makes the matches
@@ -1878,6 +1878,12 @@
contain tt(_next_tags) as its first string. With that, the normal key
binding (normally tt(TAB)) can be used to complete the matches shown
after the call to tt(_next_tags).
+
+Normally, this command is not bound to a key. To invoke it with, say
+`tt(^Xn)', one would use:
+
+example(zle -C _next_tags complete-word _next_tags
+bindkey '^Xn' _next_tags)
)
findex(_read_comp (^X^R))
item(tt(_read_comp (^X^R)))(
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author