From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12252 invoked from network); 16 Mar 2004 09:51:54 -0000 Received: from sunsite.dk (130.225.247.90) by ns1.primenet.com.au with SMTP; 16 Mar 2004 09:51:54 -0000 Received: (qmail 27348 invoked by alias); 16 Mar 2004 09:51:24 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 7186 Received: (qmail 27232 invoked from network); 16 Mar 2004 09:51:23 -0000 Received: from localhost (HELO sunsite.dk) (127.0.0.1) by localhost with SMTP; 16 Mar 2004 09:51:23 -0000 X-MessageWall-Score: 0 (sunsite.dk) Received: from [80.91.224.249] by sunsite.dk (MessageWall 1.0.8) with SMTP; 16 Mar 2004 9:51:22 -0000 Received: from list by main.gmane.org with local (Exim 3.35 #1 (Debian)) id 1B3BEI-0004wD-00 for ; Tue, 16 Mar 2004 10:51:22 +0100 Received: from 213-203-244-156.kunde.vdserver.de ([213.203.244.156]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Mar 2004 10:51:22 +0100 Received: from kai by 213-203-244-156.kunde.vdserver.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 16 Mar 2004 10:51:22 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: zsh-users@sunsite.dk From: Kai Grossjohann Subject: Word component characters -- how to have two behaviors? Date: Tue, 16 Mar 2004 10:51:36 +0100 Message-ID: <878yi1jf13.fsf@emptyhost.emptydomain.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: 213-203-244-156.kunde.vdserver.de User-Agent: Gnus/5.110002 (No Gnus v0.2) Emacs/21.2 (gnu/linux) Cancel-Lock: sha1:eWCW+e10+DCFU3SyTkSws8S5Uvg= Sender: news I understand that I can use the following two lines so that word-based movement and deletion commands will consider slashes and so on to be word separators: autoload -U select-word-style select-word-style bash But where "\ef" moves a bash-style word forward, I'd like "\eF" to move a shell-style word forward. Is there an easy way to make these bindings? I've only come up with the clumsy: kai-forward-word () { select-word-style shell; zle forward-word; select-word-style bash; } zle -N kai-forward-word kai-forward-word bindkey "\eF" kai-forward-word Is there a more elegant way to do this? (Using zsh 4.2.0-pre-4.) Kai