Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATCH: Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
- X-seq: zsh-workers 11781
- From: "Bart Schaefer" <schaefer@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: PATCH: Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
- Date: Tue, 6 Jun 2000 15:57:25 +0000
- Cc: Vincent Lefevre <vincent@xxxxxxxxxx>
- In-reply-to: <200006061258.OAA09450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200006061258.OAA09450@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
On Jun 6, 2:58pm, Sven Wischnowsky wrote:
} Subject: PATCH: Re: blah*[TAB] (difference between 3.1.6 and 3.1.9)
}
} > > bindkey '\t' complete-word
} > > autoload -U compinit
} > > compinit
} > > zstyle ':completion:*' completer _expand _complete
} > > zstyle ':completion:*:expand:::' glob 1
} > > zstyle ':completion:*:expand:::' substitute 1
}
} And to get nearer to the expand-or-complete behaviour, you should also
} use:
}
} zstyle ':completion:*:expand:*' tag-order all-expansions
}
} That will make it insert only all the expansions in the line, not
} allowing you to menu between the original string, the expansions
} one-by-one and all expansions at once.
Eh? I just tried (again) my sequence in `zsh-3.1.9 -f' and I don't get
offered a menu. I just get the expansion inserted. I get exactly the
same behavior with your tag-order style as without.
And if your tag-order were going to matter, shouldn't it need to be:
zstyle ':completion:*:expand:*' tag-order - all-expansions
because
If any string in the value consists of only a hyphen, then
*only* the tags specified by the other strings in the value
are generated. Normally all tags not explicitly selected are
tried last if the specified tags fail to generate any
matches. This means that a value consisting only of a single
hyphen turns off completion.
} The _expand completer offers you the expansion of $ZSH_V (an empty
} string) and the original and enters menu-completion so that you can
} toggle between the two (with the `expansion' being inserted in the
} line immediately).
}
} Hm, maybe we shouldn't use `empty' expansions.
That would be consistent with previous version's behavior and with the
behavior of expand-or-complete.
--
Bart Schaefer Brass Lantern Enterprises
http://www.well.com/user/barts http://www.brasslantern.com
Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net
Messages sorted by:
Reverse Date,
Date,
Thread,
Author