Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: vi-caps-lock-panic
- X-seq: zsh-users 11503
- From: Geoff Wing <gcw@xxxxxxx>
- To: Zsh Hackers <zsh-users@xxxxxxxxxx>
- Subject: Re: vi-caps-lock-panic
- Date: Mon, 21 May 2007 14:53:55 +1000
- In-reply-to: <fb3648c60705202029l16d82dc8l74a0e6c949d9e434@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- Organization: PrimeNet Computer Consultancy
- References: <fb3648c60705202029l16d82dc8l74a0e6c949d9e434@xxxxxxxxxxxxxx>
On Monday 2007-05-21 13:30 +1000, fREW output:
:Hey fellas,
:In the zshzle manpage I found the following:
: vi-caps-lock-panic
: Hang until any lowercase key is pressed. This is for vi users
: without the mental capacity to keep track of their caps lock key
: (like the author).
The author in the case is Paul Falstad. This is a very old feature.
:This would be super useful to me, (I'm like the author (-: ) but how
:do you use it? I mean, if I have to press a key to invoke it, I might
:as well just look down to see if the caps lock light is on.
Presumably you bind it to keys which don't make sense in uppercase.
e.g. in vi command mode, some navigation keys have no meaningful uppercase
complement, so something like:
% bindkey -M vicmd 'H' vi-caps-lock-panic
% bindkey -M vicmd 'K' vi-caps-lock-panic
% bindkey -M vicmd 'L' vi-caps-lock-panic
Then if you try to do some basic navigation in command mode with the
caps-lock on it will beep and whinge until you turn it off.
Regards,
Geoff
Messages sorted by:
Reverse Date,
Date,
Thread,
Author