diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-24 11:18:39 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2008-06-24 11:18:39 +0000 |
commit | 86b8b5eaa346583300fa6f14fe1d0fe5beb096ba (patch) | |
tree | ddf9f1b4e90b6dd06d24a0b58e03ae6fcaf800fc /Doc/Zsh | |
parent | a440669201fcaaefe7a83d901e18dbdd57cf9d0a (diff) | |
download | zsh-86b8b5eaa346583300fa6f14fe1d0fe5beb096ba.tar.gz zsh-86b8b5eaa346583300fa6f14fe1d0fe5beb096ba.tar.xz zsh-86b8b5eaa346583300fa6f14fe1d0fe5beb096ba.zip |
users/12987: add subword capability to word-style
Diffstat (limited to 'Doc/Zsh')
-rw-r--r-- | Doc/Zsh/contrib.yo | 9 |
1 files changed, 9 insertions, 0 deletions
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 |