From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9981 invoked from network); 21 Nov 2003 22:43:37 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 21 Nov 2003 22:43:37 -0000 Received: (qmail 26903 invoked by alias); 21 Nov 2003 22:43:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 6801 Received: (qmail 26849 invoked from network); 21 Nov 2003 22:43:23 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 21 Nov 2003 22:43:23 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.184.45.215] by sunsite.dk (MessageWall 1.0.8) with SMTP; 21 Nov 2003 22:43:20 -0000 Received: from opk by athlon with esmtp (masqmail 0.2.20) id 1ANK8o-0Tf-00; Fri, 21 Nov 2003 23:52:42 +0100 cc: ZSH User List In-reply-to: <20031121221510.GA18778@spiegl.de> From: Oliver Kiddle References: <20031121221510.GA18778@spiegl.de> To: Andy Spiegl Subject: Re: question about keybinding Date: Fri, 21 Nov 2003 23:52:42 +0100 Message-ID: <1838.1069455162@athlon> Andy Spiegl wrote: > > I'm basically using the emacs-keybinding and have my wordchars set to: > WORDCHARS='*?_-.[]~=/&;!%^(){}<>+' > > But sometimes I'd like to behave emacs-(back|fore)ward-word differently > so that it doesn't jump over dots. Let's say when I additionally press > SHIFT together with meta-b. I've been pondering but I can't think > of a simple way to set it up so that the WORDCHARS setting changes > depending on which key I press. Write a widget and change WORDCHARS within it. For example, I use: tcsh-backward-word() { local WORDCHARS="${WORDCHARS:s@/@}" zle backward-word } zle -N tcsh-backward-word Oliver