From 86b8b5eaa346583300fa6f14fe1d0fe5beb096ba Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Tue, 24 Jun 2008 11:18:39 +0000 Subject: users/12987: add subword capability to word-style --- Doc/Zsh/contrib.yo | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'Doc') diff --git a/Doc/Zsh/contrib.yo b/Doc/Zsh/contrib.yo index 645894692..e1640116a 100644 --- a/Doc/Zsh/contrib.yo +++ b/Doc/Zsh/contrib.yo @@ -459,6 +459,12 @@ Restore the default settings; this is usually the same as `tt(normal)'. ) enditem() +All but `tt(default)' can be input as an upper case character, which was +the same effect but with subword matching turned on. In this case, words +with upper case characters are treated specially: each separate run of +upper case characters, or an upper case character followed by any number of +other characters, is considered a word. + More control can be obtained using the tt(zstyle) command, as described in ifzman(zmanref(zshmodules))\ ifnzman(noderef(The zsh/zutil Module)). Each style is looked up in the @@ -507,6 +513,9 @@ alphanumerics plus the characters `tt(-)' and `tt(:)'. Be careful including `tt(])', `tt(^)' and `tt(-)' as these are special inside character classes. +tt(word-style) may also have `tt(-subword)' appended to its value to +turn on subword matching, as described above. + The style tt(skip-chars) is mostly useful for tt(transpose-words) and similar functions. If set, it gives a count of characters starting at the cursor position which will not be considered -- cgit 1.4.1