zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@csr.com>
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	[thread overview]
Message-ID: <T553906411fc0a88d01398@> (raw)

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@csr.com>                  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.
**********************************************************************


                 reply	other threads:[~2001-08-07  9:42 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=T553906411fc0a88d01398@ \
    --to=pws@csr.com \
    --cc=zsh-workers@sunsite.dk \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).