diff options
author | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-04-28 19:59:10 +0000 |
---|---|---|
committer | Daniel Shahaf <d.s@daniel.shahaf.name> | 2020-05-02 00:51:26 +0000 |
commit | 7f73edad7a7547d357e540ca26264768c1eddbfb (patch) | |
tree | 60dcd5dd6afc2b753dcc52e413dad79d3e4fe333 /Doc/Zsh/zftpsys.yo | |
parent | 5d9f7975a97a368ab16e1cd96a361a7594acdbbf (diff) | |
download | zsh-7f73edad7a7547d357e540ca26264768c1eddbfb.tar.gz zsh-7f73edad7a7547d357e540ca26264768c1eddbfb.tar.xz zsh-7f73edad7a7547d357e540ca26264768c1eddbfb.zip |
45739: docs: Clarifications about zstyle patterns.
- Consistently use the term "pattern" rather than "context" or "style pattern" - Correct statements about order of precedence of patterns - Give the rationale for the "rule of thumb"
Diffstat (limited to 'Doc/Zsh/zftpsys.yo')
-rw-r--r-- | Doc/Zsh/zftpsys.yo | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Doc/Zsh/zftpsys.yo b/Doc/Zsh/zftpsys.yo index 349039edc..c2fbdd23f 100644 --- a/Doc/Zsh/zftpsys.yo +++ b/Doc/Zsh/zftpsys.yo @@ -518,13 +518,11 @@ command `tt(zstyle ':zftp:*') var(style) var(value) ...'. defines the var(style) to have value var(value); more than one value may be given, although that is not useful in the cases described here. These values will then be used throughout the zftp function system. For more -precise control, the first argument, which gives a context in which the +precise control, the first argument, which gives a pattern that matches em(contexts) in which the style applies, can be modified to include a particular function, as for example `tt(:zftp:zfget)': the style will then have the given value only -in the tt(zfget) function. Values for the same style in different contexts -may be set; the most specific function will be used, where -strings are held to be more specific than patterns, and longer patterns and -shorter patterns. Note that only the top level function name, as called by +in the tt(zfget) function, and will override styles set under `tt(:zftp:*)'. +Note that only the top level function name, as called by the user, is used; calling of lower level functions is transparent to the user. Hence modifications to the title bar in tt(zftp_chpwd) use the contexts tt(:zftp:zfopen), tt(:zftp:zfcd), etc., depending where it was |