about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-11-15 15:54:09 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-11-15 15:54:09 +0000
commita642cc3274548b1f918555bb9ac776bc01c0f556 (patch)
treea2305a4cdf985e9772fc88edc70344d917f99f93 /Functions
parent18dea73f95d897bddc05942aa1544a7a21adb717 (diff)
downloadzsh-a642cc3274548b1f918555bb9ac776bc01c0f556.tar.gz
zsh-a642cc3274548b1f918555bb9ac776bc01c0f556.tar.xz
zsh-a642cc3274548b1f918555bb9ac776bc01c0f556.zip
15288, 15432, 15585: Zle widgets with bash-style word delimiting
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/bash-backward-kill-word5
-rw-r--r--Functions/Zle/bash-backward-word9
-rw-r--r--Functions/Zle/bash-down-case-word9
-rw-r--r--Functions/Zle/bash-forward-word9
-rw-r--r--Functions/Zle/bash-kill-word9
-rw-r--r--Functions/Zle/bash-transpose-words9
-rw-r--r--Functions/Zle/bash-up-case-word9
7 files changed, 57 insertions, 2 deletions
diff --git a/Functions/Zle/bash-backward-kill-word b/Functions/Zle/bash-backward-kill-word
index a85c9ba3e..6c4f3ba18 100644
--- a/Functions/Zle/bash-backward-kill-word
+++ b/Functions/Zle/bash-backward-kill-word
@@ -1,8 +1,9 @@
-# function bash-backward-kill-word {
 # This implements a bash-style backward-kill-word.
 # To use,
 #   zle -N bash-backward-kill-word
 #   bindkey '...' bash-backward-kill-word
+# or if you wish to replace existing backward-kill-word bindings,
+#   zle -N backward-kill-word bash-backward-kill-word
+
 local WORDCHARS=''
 zle .backward-kill-word
-# }
diff --git a/Functions/Zle/bash-backward-word b/Functions/Zle/bash-backward-word
new file mode 100644
index 000000000..23da8b3fe
--- /dev/null
+++ b/Functions/Zle/bash-backward-word
@@ -0,0 +1,9 @@
+# This implements a bash-style backward-word.
+# To use,
+#   zle -N bash-backward-word
+#   bindkey '...' bash-backward-word
+# or if you wish to replace existing backward-word bindings,
+#   zle -N backward-word bash-backward-word
+
+local WORDCHARS=''
+zle .backward-word
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-forward-word b/Functions/Zle/bash-forward-word
new file mode 100644
index 000000000..963ea012a
--- /dev/null
+++ b/Functions/Zle/bash-forward-word
@@ -0,0 +1,9 @@
+# This implements a bash-style forward-word.
+# To use,
+#   zle -N bash-forward-word
+#   bindkey '...' bash-forward-word
+# or if you wish to replace existing forward-word bindings,
+#   zle -N forward-word bash-forward-word
+
+local WORDCHARS=''
+zle .forward-word
diff --git a/Functions/Zle/bash-kill-word b/Functions/Zle/bash-kill-word
new file mode 100644
index 000000000..ba638a3c7
--- /dev/null
+++ b/Functions/Zle/bash-kill-word
@@ -0,0 +1,9 @@
+# This implements a bash-style kill-word.
+# To use,
+#   zle -N bash-kill-word
+#   bindkey '...' bash-kill-word
+# or if you wish to replace existing kill-word bindings,
+#   zle -N kill-word bash-kill-word
+
+local WORDCHARS=''
+zle .kill-word
diff --git a/Functions/Zle/bash-transpose-words b/Functions/Zle/bash-transpose-words
new file mode 100644
index 000000000..eb96a1277
--- /dev/null
+++ b/Functions/Zle/bash-transpose-words
@@ -0,0 +1,9 @@
+# This implements a bash-style transpose-words.
+# To use,
+#   zle -N bash-transpose-words
+#   bindkey '...' bash-transpose-words
+# or if you wish to replace existing transpose-words bindings,
+#   zle -N transpose-words bash-transpose-words
+
+local WORDCHARS=''
+zle .transpose-words
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