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

Re: Completion suggestions



Bart Schaefer wrote:

> ...
>
> You first have to figure out that the words are within quotes; see the
> multiline remarks above.  Tcsh doesn't have to deal with that, because
> csh quotes may not be unmatched across multiple input lines.

I'm thinking about making the CONTEXT parameter in the new style
completion stuff an array giving mor information. It could then
contain information about the quoting zsh thinks is currently
used. However this would not solve `ls "a f<TAB>' since that would
require a change in the completion parsing, as Bart already said. To
model it after tcsh we would have to make the code take the whole
quoted (or half-quoted) string as the string to work upon, and add the 
closing quote automatically. But personally I don't like this, maybe
it's just a question of getting used to the way zsh works?
Also, I'm not too sure about adding a new `-x' test/modifier for this -
can one be sure to find all the places where one wants the whole
quoted string instead of only a part of it. And this would make
compctl's even more complicated. And finding out what to do in quoted
strings that contain quotes and backslashes and quoted quotes and so
on may get pretty complicated.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



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