From 805381040dd69dd02b78423d2d71913b33f3cc33 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 8 Jun 1999 09:25:39 +0000 Subject: zsh-3.1.5-pws-21 --- Doc/Zsh/compwid.yo | 20 +++++++++++++++++++- 1 file changed, 19 insertions(+), 1 deletion(-) (limited to 'Doc/Zsh/compwid.yo') diff --git a/Doc/Zsh/compwid.yo b/Doc/Zsh/compwid.yo index d74054a9c..d30adc0f1 100644 --- a/Doc/Zsh/compwid.yo +++ b/Doc/Zsh/compwid.yo @@ -81,6 +81,13 @@ nofill(PREFIX=${PREFIX#*=}) causes the part of the prefix up to and including the first equal sign not to be treated as part of a matched string. ) +item(tt(QIPREFIX))( +This parameter is read-only and contains the quoted string up to the +word being completed. E.g. when completing `tt("foo)', this parameter +contains the double quote. If the tt(-q) option of tt(compset) is used +(see below), and the original string was `tt("foo bar)' with the +cursor on the `tt(bar)', this parameter contains `tt("foo )'. +) item(tt(SUFFIX))( Initially this will be set to the part of the current word from the cursor position to the end; it may be altered to give a common suffix for @@ -93,6 +100,9 @@ As tt(IPREFIX), but for a suffix that should not be considered part of the matches; note that the tt(ISUFFIX) string follows the tt(SUFFIX) string. ) +item(tt(QISUFFIX))( +Like tt(QIPREFIX), but containing the suffix. +) item(tt(compstate))( This is an associative array with various keys and values that the completion code uses to exchange information with the completion widget. @@ -544,7 +554,8 @@ xitem(tt(compset -P) [ var(number) ] var(pattern)) xitem(tt(compset -s) var(number)) xitem(tt(compset -S) [ var(number) ] var(pattern)) xitem(tt(compset -n) var(begin) [ var(end) ]) -item(tt(compset -N) var(beg-pat) [ var(end-pat) ])( +xitem(tt(compset -N) var(beg-pat) [ var(end-pat) ]) +item(tt(compset -q))( This command simplifies modification of the special parameters, while its return value allows tests on them to be carried out. @@ -607,6 +618,13 @@ matching tt(end-pat) are also removed from the tt(words) array. If tt(words) contains no word matching var(end-pat), the testing and modification is performed as if it were not given. ) +item(tt(-q))( +If the cursor is currently inside single or double quotes, the word +currenly being completed is split in separate words at the spaces. The +resulting words are stored in the tt(words) array, and tt(PREFIX), +tt(SUFFIX), tt(QIPREFIX), and tt(QISUFFIX) are modified to reflect the +word part that is completed. +) enditem() In all the above cases the return value is zero if the test succeded -- cgit 1.4.1