From c68317f5ebd65552dd2c5450b6f45f99ed3ce75c Mon Sep 17 00:00:00 2001 From: Paul Ackersviller Date: Sun, 11 Nov 2007 23:11:38 +0000 Subject: Merge of unposted (based on users/10881,10884): add auto-previous zstyle, update smart-insert-last-word to use auto-suffix-retain, "always" block, etc. plus users/11424: don't embed a comment inside a math expression. --- Doc/Zsh/contrib.yo | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 5ca08a5cf..e15c6272d 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -897,6 +897,11 @@ different widgets to use different patterns: example(zle -N insert-last-assignment smart-insert-last-word zstyle :insert-last-assignment match '[[:alpha:]][][[:alnum:]]#=*' bindkey '\e=' insert-last-assignment) + +If no interesting word is found and the tt(auto-previous) style is set to +a true value, the search continues upward through the history. When +tt(auto-previous) is unset or false (the default), the widget must be +invoked repeatedly in order to search earlier history lines. ) tindex(which-command) item(tt(which-command))( @@ -956,13 +961,13 @@ For example, a user-defined widget containing the following code converts the characters in the argument under the cursor into all upper case: -example(modify-current-word '${(U)ARG}') +example(modify-current-argument '${(U)ARG}') The following strips any quoting from the current word (whether backslashes or one of the styles of quotes), and replaces it with single quoting throughout: -example(modify-current-word '${(qq)${(Q)ARG}}') +example(modify-current-argument '${(qq)${(Q)ARG}}') ) enditem() -- cgit 1.4.1