1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-27 10:26:05 +02:00

unposted: more NEWS tweaks while I'm there.

This commit is contained in:
Peter Stephenson 2014-09-23 20:56:29 +01:00
parent b603137911
commit cc09ec33ca
2 changed files with 10 additions and 4 deletions

View File

@ -1,5 +1,7 @@
2014-09-23 Peter Stephenson <p.w.stephenson@ntlworld.com> 2014-09-23 Peter Stephenson <p.w.stephenson@ntlworld.com>
* unposted: NEWS: more minor tweaks.
* unposted: NEWS: mention numeric output with underscore separators. * unposted: NEWS: mention numeric output with underscore separators.
* unposted: NEWS: mention new * unposted: NEWS: mention new

12
NEWS
View File

@ -50,7 +50,7 @@ Changes since 5.0.0
- In file completion, the recursive-files style can be set to an array of - In file completion, the recursive-files style can be set to an array of
patterns to match against "$PWD/". In any matched location, it is patterns to match against "$PWD/". In any matched location, it is
possibly to complete files in arbitrarily deep subdirectories without possible to complete files in arbitrarily deep subdirectories without
needing to type the directory prefix. See example in the zshcompsys needing to type the directory prefix. See example in the zshcompsys
manual. manual.
@ -82,13 +82,17 @@ Changes since 5.0.0
values of N still count the space used since the start of the prompt). values of N still count the space used since the start of the prompt).
In PS1 and PROMPT, this counts to the right margin, whereas in RPS1 and In PS1 and PROMPT, this counts to the right margin, whereas in RPS1 and
RPROMPT, it counts to the left margin (not to the opposite prompt). RPROMPT, it counts to the left margin (not to the opposite prompt).
- Also in prompt strings, %e or the equivalent test %(e..) are used to
output or test the execution / evaluation depth of a shell
construct within functions etc. This is useful in $PS4.
- Another new prompt feature is the %. escape within time strings, for - Another new prompt feature is the %. escape within time strings, for
example %D{%H:%M:%S.%.}. It provides zero-padded decimal fractions of example %D{%H:%M:%S.%.}. It provides zero-padded decimal fractions of a
second; by default milliseconds are shown, but the number of digits may second; by default milliseconds are shown, but the number of digits may
be indicated from 1 to 6, e.g. "%6.". (Note this is part of the be indicated from 1 to 6, e.g. "%6.". (Note this is part of the
extensions to strftime() formats rather than basic prompt escapes.) extensions to strftime() formats rather than basic prompt escapes.)
- The operators :^ and :^^ in parameter substitution allow for array - The operators :^ and :^^ in parameter substitution allow for array
zipping in the form ${name:^array}. With the :^ operator, all entries zipping in the form ${name:^array}. With the :^ operator, all entries
in $name and $array will be output in alternating order. With :^ the in $name and $array will be output in alternating order. With :^ the