Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Support for inverting of options?
- X-seq: zsh-users 11841
- From: "Richard Hartmann" <richih.mailinglist@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Support for inverting of options?
- Date: Sat, 15 Sep 2007 02:29:17 +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:mime-version:content-type:content-transfer-encoding:content-disposition; bh=wEruRb1K0eBTDbqSTO9sdTeGpFe7eUWlOE0n9NBPvUw=; b=FaI8Cd4UnLkJtqOdOeabmLRmih75UMhAbLeBpcFfYvTlZ7W70fDZG12FZBBxW6SOQ0oV7VV3jWVZPTuPkOjcaVFhk0E19tyzkO+UuzfkOVlMh5Jf2g+CXWzVIt4jqSs8Ia6Ll5JrGXjSwlTXkG8eB7rLXzP5mEB5V8K4c66io2g=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=oXiTHZtzPox+lfgO8jr684rZkP7opV/+cXrFHrR2b0BR/2aQxxEgWcVkYDR1NVTj4CBn82/6SP0vlmnwBEeUi9i83uZVxzW0O8agVJ/sv1mYZk1LkV03V0urNqFQfBUKJm0iTk/SuLf8AzgGIbYeqtNpmW/u6LgmjSqnXVIO4ng=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Hi all,
I am wondering what other people think about an option like vim's
:set invoption
for ZSH. At the moment, you can either set or unset an option,
but toggling it intot the other state is not possible without some
extra wrapper. While
toggleopt () {
[[ -o $1 ]] && unsetopt $1 || setopt $1
}
works fine, especially with
compdef _options toggleopt
it would still be nice to be able to do
setopt invtransientrprompt
What do you guys think about this? Is this a worthwhile feature
or is this use case pretty much limited to myself?
Richard
Messages sorted by:
Reverse Date,
Date,
Thread,
Author