about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2012-06-04 16:40:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2012-06-04 16:40:42 +0000
commit5b32dece551b9b71d5704701b1b5dcaf8eea09d2 (patch)
treea871f86c4b5a367e168600d1a08bf27635179217 /Doc
parent07933936f35e7a2b41edc875a7e371d28100b056 (diff)
downloadzsh-5b32dece551b9b71d5704701b1b5dcaf8eea09d2.tar.gz
zsh-5b32dece551b9b71d5704701b1b5dcaf8eea09d2.tar.xz
zsh-5b32dece551b9b71d5704701b1b5dcaf8eea09d2.zip
users/17132: skip-whitespace-first style for compatibility with bash etc.
in widgets using forward-word-match
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo10
1 files changed, 10 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index ea96d5dbc..139a68150 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -1734,6 +1734,16 @@ context is examined and if it contains the string tt(back), the word before
 the cursor is considered, else the word after cursor is considered. Some
 examples are given below.
 
+The style tt(skip-whitespace-first) is only used with the
+tt(forward-word) widget.  If it is set to true, then tt(forward-word)
+skips any non-word-characters, followed by any non-word-characters:
+this is similar to the behaviour of other word-orientated widgets,
+and also that used by other editors, however it differs from the
+standard zsh behaviour.  When using tt(select-word-style) the widget
+is set in the context tt(:zle:*) to tt(true) if the word style is
+tt(bash) and tt(false) otherwise.  It may be overridden by setting it in
+the more specific context tt(:zle:forward-word*).
+
 Here are some examples of use of the styles, actually taken from the
 simplified interface in tt(select-word-style):