From 4419b75dbc81eff685dcb2d812280b21e8d1e25e Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 9 Dec 2004 14:44:42 +0000 Subject: 20612: add options to match-words-by-style widget --- Doc/Zsh/contrib.yo | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'Doc') 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))( -- cgit 1.4.1