From a642cc3274548b1f918555bb9ac776bc01c0f556 Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 15 Nov 2001 15:54:09 +0000 Subject: 15288, 15432, 15585: Zle widgets with bash-style word delimiting --- Functions/Zle/bash-backward-kill-word | 5 +++-- Functions/Zle/bash-backward-word | 9 +++++++++ Functions/Zle/bash-down-case-word | 9 +++++++++ Functions/Zle/bash-forward-word | 9 +++++++++ Functions/Zle/bash-kill-word | 9 +++++++++ Functions/Zle/bash-transpose-words | 9 +++++++++ Functions/Zle/bash-up-case-word | 9 +++++++++ 7 files changed, 57 insertions(+), 2 deletions(-) create mode 100644 Functions/Zle/bash-backward-word create mode 100644 Functions/Zle/bash-down-case-word create mode 100644 Functions/Zle/bash-forward-word create mode 100644 Functions/Zle/bash-kill-word create mode 100644 Functions/Zle/bash-transpose-words create mode 100644 Functions/Zle/bash-up-case-word (limited to 'Functions') 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 -- cgit 1.4.1