Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

PATCH: another couple of bash-style word functions



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 <pws@xxxxxxx>                  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.
**********************************************************************



Messages sorted by: Reverse Date, Date, Thread, Author