diff options
author | Peter Stephenson <pws@zsh.org> | 2015-10-30 16:59:04 +0000 |
---|---|---|
committer | Peter Stephenson <pws@zsh.org> | 2015-10-30 16:59:41 +0000 |
commit | 1eef57b3d15af235430ad2b5e2940ded375e69d2 (patch) | |
tree | 09266b2ddafc28e8646cbb9fe3e1346dc6299943 /Doc/Zsh/contrib.yo | |
parent | 26614ad0e05d99e974742276b710a4afff79e8b2 (diff) | |
download | zsh-1eef57b3d15af235430ad2b5e2940ded375e69d2.tar.gz zsh-1eef57b3d15af235430ad2b5e2940ded375e69d2.tar.xz zsh-1eef57b3d15af235430ad2b5e2940ded375e69d2.zip |
37027: allow subword context to discriminate between words
Diffstat (limited to 'Doc/Zsh/contrib.yo')
-rw-r--r-- | Doc/Zsh/contrib.yo | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index cb68952a4..f74f7d709 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -2016,9 +2016,10 @@ matched against each var(pattern) in turn until one matches; if it does, the context is extended by a colon and the corresponding var(subcontext). Note that the test is made against the original word on the line, with no stripping of quotes. Special handling is done between words: the current -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. +context is examined and if it contains the string tt(between) the word +is set to a single space; else if it is 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) |