about summary refs log tree commit diff
path: root/Functions
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2001-07-20 13:04:51 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2001-07-20 13:04:51 +0000
commit32f7b3206172ebc2ca59d609062f585502ac8619 (patch)
tree9feacabf2445080672ace3f8d43a92ebc47a679a /Functions
parent79dbcc8382abb6bf947fe5ae237e4bf2ecf1c677 (diff)
downloadzsh-32f7b3206172ebc2ca59d609062f585502ac8619.tar.gz
zsh-32f7b3206172ebc2ca59d609062f585502ac8619.tar.xz
zsh-32f7b3206172ebc2ca59d609062f585502ac8619.zip
15432: New bash-transpose-words widget
Diffstat (limited to 'Functions')
-rw-r--r--Functions/Zle/bash-transpose-words9
1 files changed, 9 insertions, 0 deletions
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