about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-12-09 14:44:42 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-12-09 14:44:42 +0000
commit4419b75dbc81eff685dcb2d812280b21e8d1e25e (patch)
treeba51138e01bce2ff22ced7d38bc8fd1f548c504e /Doc
parent69b4b8bdde76b5aee6befa2b66957db22b3f6353 (diff)
downloadzsh-4419b75dbc81eff685dcb2d812280b21e8d1e25e.tar.gz
zsh-4419b75dbc81eff685dcb2d812280b21e8d1e25e.tar.xz
zsh-4419b75dbc81eff685dcb2d812280b21e8d1e25e.zip
20612: add options to match-words-by-style widget
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/contrib.yo12
1 files changed, 12 insertions, 0 deletions
diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo
index b7c80211e..14a402785 100644
--- a/Doc/Zsh/contrib.yo
+++ b/Doc/Zsh/contrib.yo
@@ -513,6 +513,18 @@ tt(skip-chars) style, (5) the word at or following the cursor (6) any
 non-word characters following that word (7) the remainder of the line.  Any
 of the elements may be an empty string; the calling function should test
 for this to decide whether it can perform its function.
+
+It is possible to pass options with arguments to tt(match-words-by-style)
+to override the use of styles.  The options are:
+startsitem()
+sitem(tt(-w))(var(word-style))
+sitem(tt(-s))(var(skip-chars))
+sitem(tt(-c))(var(word-class))
+sitem(tt(-C))(var(word-chars))
+endsitem()
+
+For example, tt(match-words-by-style -w shell -c 0) may be used to
+extract the command argument around the cursor.
 )
 tindex(delete-whole-word-match)
 item(tt(delete-whole-word-match))(