Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Support for inverting of options?
- X-seq: zsh-users 11849
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Support for inverting of options?
- Date: Mon, 17 Sep 2007 00:49:05 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; bh=slYgt6UHiDHryGh0/19NrEvgCBPUNPxJ5Esvd0UcF3s=; b=lJg8eCEnGtRgbwE0EpArkzmpJft9BDmzrfyAp3h3Zztpr/1LShlViYYITUjMjisJObnJp5edGnyWx1yTfFW6641oC2YHfEEBLXiHxP0xiz4juuDniz4hz0weOoFhIfHym8YqSrSBgRAdHSJqZF/58nU8urFOyhjI9KtZe+PGldo=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=MIxYCbs8CwThXv/kdj7qTwy/+AZLm4qpmzeRMUfV4gupE+5Xe/vubXEdaxlgvJS/d7APTp5O1kyloTRhn4B0eV4W+RCs+NXNnZoCZSadYs5SVeAq6M9Wgx9YnyJNXDUFFFhF1TnIhflo1ZVMg4NVnMWszQ9qrPgDN76AbDK6eBk=
- In-reply-to: <070916153114.ZM21571@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <2d460de70709141729y392e7b2dmf137334dc2ee4eec@xxxxxxxxxxxxxx> <070914233613.ZM6486@xxxxxxxxxxxxxxxxxxxxxx> <2d460de70709161417x1e6557c0n4f9ee8a1b2f18df2@xxxxxxxxxxxxxx> <070916153114.ZM21571@xxxxxxxxxxxxxxxxxxxxxx>
On 17/09/2007, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 16, 11:17pm, Richard Hartmann wrote:
> }
> } Of course, you will pretty much always know what a specific option
> } is set to (at least if you touch it in your zshrc), but scripting and
> } key-binding gets a lot easier if you use inversion.
>
> I might agree about keybinding, but I'd say scripting gets *sloppier*,
> not easier, with inversion. Miss one inversion, whether by programming
> mistake or by run-time error, and everything from then on is trashed.
> Far better to explicitly set exactly the state you expect.
Well, I meant scripts invoked by key bindings, so we actually agree :)
> (Did you intend this to be off-list?)
No. I really regret using GMail for my mailing lists, these days..
Disadvantages of your solution over a native invoption are that you can
not use the normal setopt and that you can not tab complete on
invoption without writing a new completion.
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author