about summary refs log tree commit diff
path: root/Functions/Zle
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-08-07 10:04:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-08-07 10:04:10 +0000
commit5dd1ba01ea1b4251fa8b05f4acbd1fe9750176aa (patch)
treef58e64178c479afa2d605a65921a343d25bc3949 /Functions/Zle
parent34def9b74d64af50f469e74d0fafbefd37844e17 (diff)
downloadzsh-5dd1ba01ea1b4251fa8b05f4acbd1fe9750176aa.tar.gz
zsh-5dd1ba01ea1b4251fa8b05f4acbd1fe9750176aa.tar.xz
zsh-5dd1ba01ea1b4251fa8b05f4acbd1fe9750176aa.zip
15585: bash-style up- and down-case words
Diffstat (limited to 'Functions/Zle')
-rw-r--r--Functions/Zle/bash-down-case-word9
-rw-r--r--Functions/Zle/bash-up-case-word9
2 files changed, 18 insertions, 0 deletions
diff --git a/Functions/Zle/bash-down-case-word b/Functions/Zle/bash-down-case-word
new file mode 100644
index 000000000..f12fb7efc
--- /dev/null
+++ b/Functions/Zle/bash-down-case-word
@@ -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
diff --git a/Functions/Zle/bash-up-case-word b/Functions/Zle/bash-up-case-word
new file mode 100644
index 000000000..1a61db64c
--- /dev/null
+++ b/Functions/Zle/bash-up-case-word
@@ -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