mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 04:50:27 +02:00
15585: bash-style up- and down-case words
This commit is contained in:
parent
34def9b74d
commit
5dd1ba01ea
4 changed files with 29 additions and 2 deletions
|
|
@ -366,9 +366,12 @@ tindex(bash-forward-word)
|
|||
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 @@ characters only. If you wish to replace your existing bindings with these
|
|||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue