From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17302 invoked from network); 7 Aug 2001 09:42:45 -0000 Received: from sunsite.dk (130.225.51.30) by ns1.primenet.com.au with SMTP; 7 Aug 2001 09:42:45 -0000 Received: (qmail 12994 invoked by alias); 7 Aug 2001 09:42:38 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 15585 Received: (qmail 12980 invoked from network); 7 Aug 2001 09:42:36 -0000 Message-ID: To: zsh-workers@sunsite.dk (Zsh hackers list) Subject: PATCH: another couple of bash-style word functions Date: Tue, 07 Aug 2001 10:42:05 +0100 From: Peter Stephenson Index: Doc/Zsh/contrib.yo =================================================================== RCS file: /cvsroot/zsh/zsh/Doc/Zsh/contrib.yo,v retrieving revision 1.14 diff -u -r1.14 contrib.yo --- Doc/Zsh/contrib.yo 2001/07/27 22:23:16 1.14 +++ Doc/Zsh/contrib.yo 2001/08/07 09:40:48 @@ -366,9 +366,12 @@ tindex(bash-backward-word) tindex(bash-kill-word) tindex(bash-backward-kill-word) -tindex(bash-transpowse-words) +tindex(bash-transpose-words) +tindex(bash-up-case-word) +tindex(bash-down-case-word) xitem(tt(bash-forward-word), tt(bash-backward-word)) xitem(tt(bash-kill-word), tt(bash-backward-kill-word)) +xitem(tt(bash-up-case-word), tt(bash-down-case-word)) item(tt(bash-transpose-words))( These work similarly to the corresponding builtin zle functions without the `tt(bash-)' prefix, but a word is considered to consist of alphanumeric @@ -376,7 +379,9 @@ four widgets, the following is sufficient: example(for widget in kill-word backward-kill-word \ -forward-word backward-word transpose-words; do +forward-word backward-word \ +up-case-word down-case-word \ +transpose-words; do autoload bash-$widget zle -N $widget bash-$widget done) Index: Functions/Zle/bash-down-case-word =================================================================== RCS file: bash-down-case-word diff -N bash-down-case-word --- /dev/null Thu May 24 22:33:05 2001 +++ bash-down-case-word Tue Aug 7 02:40:48 2001 @@ -0,0 +1,9 @@ +# This implements a bash-style down-case-word. +# To use, +# zle -N bash-down-case-word +# bindkey '...' bash-down-case-word +# or if you wish to replace existing down-case-word bindings, +# zle -N down-case-word bash-down-case-word + +local WORDCHARS='' +zle .down-case-word Index: Functions/Zle/bash-up-case-word =================================================================== RCS file: bash-up-case-word diff -N bash-up-case-word --- /dev/null Thu May 24 22:33:05 2001 +++ bash-up-case-word Tue Aug 7 02:40:48 2001 @@ -0,0 +1,9 @@ +# This implements a bash-style up-case-word. +# To use, +# zle -N bash-up-case-word +# bindkey '...' bash-up-case-word +# or if you wish to replace existing up-case-word bindings, +# zle -N up-case-word bash-up-case-word + +local WORDCHARS='' +zle .up-case-word -- Peter Stephenson Software Engineer CSR Ltd., Unit 300, Science Park, Milton Road, Cambridge, CB4 0XL, UK Tel: +44 (0)1223 392070 ********************************************************************** The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. **********************************************************************