about summary refs log tree commit diff
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-03-23 04:08:17 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-03-23 04:08:17 +0000
commit9f883c9b775c5e60d77bd60f8a3472aaa728e105 (patch)
tree1dbdf68024ae1ca3c90c15e5dad461ff829a57f0
parent7ab508430cde0bce2bad7cfacbc4a98b724dca10 (diff)
downloadzsh-9f883c9b775c5e60d77bd60f8a3472aaa728e105.tar.gz
zsh-9f883c9b775c5e60d77bd60f8a3472aaa728e105.tar.xz
zsh-9f883c9b775c5e60d77bd60f8a3472aaa728e105.zip
zsh-workers/10178
-rw-r--r--Completion/Commands/_next_tags11
-rw-r--r--Doc/Zsh/compsys.yo10
2 files changed, 18 insertions, 3 deletions
diff --git a/Completion/Commands/_next_tags b/Completion/Commands/_next_tags
index 8bd3f5921..5cda547e8 100644
--- a/Completion/Commands/_next_tags
+++ b/Completion/Commands/_next_tags
@@ -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 --git a/Doc/Zsh/compsys.yo b/Doc/Zsh/compsys.yo
index 4dea57109..e7d9fe9e4 100644
--- a/Doc/Zsh/compsys.yo
+++ b/Doc/Zsh/compsys.yo
@@ -1867,8 +1867,8 @@ on the command line (which may be blank).  If given a numeric argument
 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 @@ matches selected by tt(_next_tags), the tt(completer) style should
 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)))(