1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-23 17:01:05 +02:00
Commit graph

1787 commits

Author SHA1 Message Date
Daniel Shahaf
b53f465481 unposted (cf. users/24972, users/24978): Use an ASCII hyphen/minus rather than a dash. 2020-07-03 22:17:59 +00:00
Peter Stephenson
4e0058afc5 users/24971: ${(-)var} sorts on signed integers 2020-07-03 21:05:46 +01:00
Daniel Shahaf
f636cde7b5 46132: docs: Use an itemized list in the documentation of the *(o) glob qualifier.
This should be easier to read, both as a tutorial and as a reference.
2020-06-28 13:01:20 +00:00
Daniel Shahaf
0cffb0a6b3 46072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve add-zle-hook-widget support for multiple hook functions.
See workers/46004 for the use-case.
2020-06-27 03:09:31 +00:00
Daniel Shahaf
9575f2f1bf users/24959/0002: Update aliases documentation for the addition of the ALIAS_FUNC_DEF option. 2020-06-27 00:53:02 +00:00
Daniel Shahaf
7f58463dd3 users/24959/0001: Extend documentation of global aliases. 2020-06-27 00:53:02 +00:00
Daniel Shahaf
4e3d08fea8 unposted: docs: Fix some markup and typos. 2020-06-26 18:25:51 +00:00
Daniel Shahaf
dd6e702ee4 46068 (tweaked) (was: github #57): region_highlight: Add memo= support.
This is useful when multiple plugins add region_highlight entries and
subsequently want to remove only their own entries.  Without this
functionality, recognizing one's region_highlight entries is not trivial
because the 'start' and 'end' offsets are modified by editing of $BUFFER
and the highlight specification may not be unique or distinctive.

The tweaks are as follows:

- Change zfree() to zsfree() per workers/46070.

- Remove the mem.c hunk, as it changed the signature of only one out of
  two alternative definitions of zsfree().  (The definition that hunk
  touched is the one that's not used by default.)
2020-06-25 11:50:33 +00:00
Manuel Jacob
ae0129b49f 46091: Add code to Mercurial VCS backend to show topic if there is any.
"Topics" is an experimental concept in Mercurial that augments the
current branching concept (called "named branches").

For more information, see the not always up-to-date Mercurial Wiki page
https://www.mercurial-scm.org/wiki/TopicPlan.
2020-06-22 08:18:38 +00:00
Miroslav Koškár
33361e81bc 46049: docs: Correct the sense of the single-letter abstract of the GLOBAL_RCS option (-d) 2020-06-17 08:13:51 +00:00
Daniel Shahaf
c5f12fb732 unposted: zstyle docs: Fix typo.
This manifested as a trailing non-underlined ".RE" in the rendered man page.
(I guess that was a man page directive, but I'm not sure how the extraneous
closing parenthesis caused it to be rendered in the output.)
2020-06-10 13:07:56 +00:00
Peter Stephenson
3df604a4be 46026: Add CLOBBER_EMPTY option. 2020-06-09 18:07:01 +01:00
Bart Schaefer
086acd095d unposted: remove blank line that messed up "man" formatting 2020-05-17 13:31:51 -07:00
Daniel Shahaf
7c2a740d0f users/24843: zshcompsys(1): Point to the 'format' style from the 'tag-order' style. 2020-05-16 22:08:57 +00:00
Daniel Shahaf
deca7c9285 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.
Also, write/extend docstrings for sepjoin() and zjoin().
2020-05-03 01:27:36 +00:00
Daniel Shahaf
34d69acbef 45737 (+ docs, and update the test from 45722): zstyle: When determining the weight (specificity) of a pattern, consider the number of components before anything else, as documented. 2020-05-02 01:12:07 +00:00
Daniel Shahaf
7f73edad7a 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"
2020-05-02 00:51:26 +00:00
Daniel Shahaf
5d9f7975a9 45722: docs: Change zstyle example to a non-hierarchical one 2020-05-02 00:51:26 +00:00
Benjamin Esham
ff50d96b19 github #56: typo: Add a single quote that had been missing 2020-04-27 08:04:26 +00:00
dana
1cac862b0f unposted: zsh/system: Adjust documentation from workers/45708 2020-04-20 12:12:12 -05:00
Cedric Ware
25c9b61a66 45708: zsh/system: Enable sub-second timeout in zsystem flock 2020-04-20 12:10:01 -05:00
dana
f179dbf72a 45702: compsys: Improve documentation of {insert,separate}-sections 2020-04-20 00:06:55 -05:00
Peter Stephenson
28277a84dd 45684: Document - glob qualifier in error cases 2020-04-15 21:33:48 +01:00
dg1727
6ec97e1d48 45661: docs: Clarify the effect of KSH_ARRAYS on the (I) subscript. 2020-04-12 01:26:40 +00:00
Mikael Magnusson
8923d2a618 Add SHORT_REPEAT option 2020-04-02 07:42:16 +02:00
Daniel Shahaf
386d9ac8ff 45583/0008: Add the 'function -T' syntax.
Config/version.mk was bumped in the previous commit.
2020-03-22 02:23:53 +00:00
Daniel Shahaf
68d2a1bc22 unposted: ${(Z)}: Convert documentation to a description block. 2020-03-20 02:28:11 +00:00
Daniel Shahaf
e1946bacf8 45540: vcs_info git: In non-interactive rebases, compute patch names for unapplied patches. 2020-03-15 00:18:28 +00:00
Daniel Shahaf
0a7bfc0bd2 45307: zstyle docs: Unoverload a placeholder variable name.
Use 'pattern' to refer to things matched against contexts and 'metapattern'
to refer to things matched against patterns.
2020-01-16 18:18:17 +00:00
Daniel Shahaf
6f263b5e89 45306: zstyle docs: Introduce the first synopsis in the same way as all others: with an item()(). 2020-01-16 18:18:14 +00:00
Daniel Shahaf
490478378f unposted: docs: Fix a cross-reference. 2020-01-16 16:32:39 +00:00
Daniel Shahaf
c7bc62aa06 45287: zshexpn: Describe parameter elision and add some introductory prose 2020-01-15 22:35:09 +00:00
Daniel Shahaf
610b4b3028 users/24656: docs: Add an example of setting and querying zstyles 2020-01-14 17:42:36 +00:00
Peter Stephenson
8406a0d38e users/24659: Cross-ref doc for matchers. 2020-01-14 14:00:03 +00:00
Peter Stephenson
2ce5f6d79a users/24628 (fixed): More doc for selectw-word-style widgets.
Add example of how to add a new binding for a widget that fixes
a particular word behaviour using styles.
2020-01-11 14:07:19 +00:00
Daniel Shahaf
99acc17bb6 unposted: Fix punctuation. 2020-01-10 12:46:32 +00:00
dana
2e521d7b63 45184: Clarify documentation of %-sequences understood by compadd -[Xx] 2020-01-05 12:04:46 -06:00
Daniel Shahaf
759daf2362 unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)". 2020-01-02 16:08:51 +00:00
Stephane Chazelas
da19b67388 45183: Improve documentation examples 2020-01-01 22:02:48 -06:00
Daniel Shahaf
f3d18c3fb5 45160: zshexpn: Expand documentation of (S) 2019-12-31 17:22:10 +00:00
Sebastian Gniazdowski
408e75b903 45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b). 2019-12-28 21:11:47 +00:00
Daniel Shahaf
f7f2baac5e 45110: zshmisc(1): Fix markup of "try-list" and "always-list". 2019-12-22 03:21:11 +00:00
Daniel Shahaf
a0c0aa41d2 45111: zshmisc(1): Clarify the documentation of 'return' and 'exit' in conjunction with try/always
Having reviewed 20076, 20084, 21734, and 21735, my understanding is that
the original intention was:

- A 'return' in a function does run always-list
- An 'exit' outside a function does not run always-list
- A 'return' outside a function is treated as an 'exit'

All of which are the case today.  The remaining case, of 'exit' used
inside a function, was not specified by the referenced -workers@ posts;
does, as implemented, run the always-list; and furthermore, based in
21734 it's fair to assume that the original documentation was assuming
that 'exit' would be used outside of any function, just like it assumed
'return' would be used inside a function.

Therefore, have the documentation specify only the behaviour of 'exit'
outside any function, and leave the behaviour of 'exit' inside
a function unspecified.  Anyone who relied on the documentation of 'exit'
as documented until this commit would have run into the
documentation/implementation discrepancy described in 45075.
2019-12-22 03:21:09 +00:00
Daniel Shahaf
105ca83aa2 45112: zshmodules: Explicitly document the return values of the 'zstyle' getters -s, -b, and -a. 2019-12-22 03:21:07 +00:00
Daniel Shahaf
6e5bba8cba 45113: vcs_info docs: Clarify documentation of the %p/%u/%a patch-format expandos. 2019-12-22 03:21:04 +00:00
dana
6fd4023825 45055: Clarify _files documentation 2019-12-20 15:31:34 -06:00
Daniel Shahaf
48ebe82b48 45073: regex-replace docs: Simplify grammar (avoid a double negative, state defaults first). 2019-12-18 00:33:51 +00:00
Oliver Kiddle
0655e17644 45035: be explicit about the need for a # in colours specified as hex triplets 2019-12-16 11:21:10 +01:00
Peter Stephenson
cb4dc95643 45009: POSIX_CD needs to suppress some forms of option.
Otherwise forms of argument allowed by POSIX are interpreted as
options instead.
2019-12-12 10:47:00 +00:00
Martijn Dekker
bcde790c88 44981: Fix some typos in the documentation. 2019-12-04 21:31:17 +00:00