1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-08-22 18:41:00 +02:00
Commit graph

1834 commits

Author SHA1 Message Date
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
Daniel Shahaf
5b4a6dc7e0 44964: zshmisc(1): Document APPEND_CREATE under the append redirection operators, >> and >>!. 2019-12-03 02:54:48 +00:00
Daniel Shahaf
369e4a4057 unposted: _values: Use the formal parameter's name in the docstring. 2019-11-08 14:09:18 +00:00
Ned Batchelder
63cc5279b3 github : Make it easier to understand what "fc -e" does. 2019-09-04 02:33:19 +00:00
Peter Stephenson
4fae525726 Copy functions using functions -c old new.
Documentation and test.
2019-08-03 19:53:51 +01:00
Bart Schaefer
adef791c82 44495: Mention coproc under $! 2019-07-08 17:55:06 -07:00
Peter Stephenson
3bdf4d6641 44480: Don't automatically close externally visible file descroptors.
These are descriptors marked FDT_EXTERNAL.

Make all sysopen'ed file descriptors FDT_EXTERNAL.

Make =(...) call closem() consistent with other substitutions.

Document file descriptors are left open.
2019-07-02 13:42:53 +01:00
Peter Stephenson
b8dc5a7f6d 44435: Handling digita arguments for :h and :t.
Pick number of leading or trailing path components to substitute.
Active in history, brace parameters, glob qualifiers.

Add tests for all three environments.
2019-06-20 11:13:05 +01:00
Stephane Chazelas
0b1725dcfc 44387, edited: describe some problems with restricted mode 2019-06-06 21:09:42 +01:00
Jim
06f5964284 44364: refer to zsh base manual page in zsh all 2019-05-28 09:35:12 +01:00
dana
c1a33575b4 44275: Fix compset -p/-s multibyte inconsistency and documentation 2019-05-08 16:35:08 -05:00
Oliver Kiddle
cd6fd2b0a3 44274: allow finer control of completion match soring with compadd's -o option 2019-05-07 23:24:49 +02:00
dana
78fb8aaccf 44198: Add cd_silent option to suppress all cd output 2019-04-12 14:00:19 -05:00
Roman Perepelitsa
c551937280 44215: Maintain LASTWIDGET across reset-prompt.
This avoids side effects of asynchronous notifications.
2019-04-10 09:41:04 +01:00
Matthew Martin
6f35d6c0d0 44202 (tweaked): _normal: Add -P to reset precommands 2019-04-04 18:45:19 -05:00
Matthew Martin
5facfd3280 44200 (tweaked): Completion: Append to precommands in _normal 2019-04-04 18:45:19 -05:00
Clinton Bunch
ea8d3ab3e4 44156 (tweaked): zsh/system: Add note about potential flock side-effects
(Minor adjustments to wording and formatting)
2019-03-22 17:11:19 -05:00
Matthew Martin
5267bdc4ef 44153: rm: Accept -R as equivalent to -r 2019-03-21 22:04:55 -05:00
Peter Stephenson
876dccfe73 Update doc from previous commit.
Make it clear it's commands whose names begin with a /
that aren't hashed.  Obviously commands whose paths
begin with a / are OK, duh.
2019-03-19 14:22:34 +00:00
Charles Blake
084bf17c4b 44132: don't hash commands beginning with / 2019-03-19 14:09:50 +00:00
Matthew Martin
6331772c5b 44135: Add chmod builtin 2019-03-18 22:17:54 -05:00
dana
632023acc2 44100: zparseopts: Add -F option, completion, tests; improve documentation
* Enable zparseopts to perform basic usage validation (aborting on an
  unrecognised option-like parameter)

* Officially document the resolution of ambiguous option specs
2019-03-12 19:03:56 -05:00
Mikael Magnusson
d683d278c7 44011: Only use fg_start_code for non-truecolor
The sequence for truecolor uses a different prefix from palette colors
2019-01-23 11:51:42 +01:00
Peter Stephenson
88ad890c05 users/23829: add and coument file-split-chars style 2019-01-08 14:19:19 +00:00
Martijn Dekker
2d056ebc31 43945 (tweaked to remove test failure, noted in test):
Fix exit statuses from wait for POSIX_BUILTINS mode.
Also add tests.
2018-12-30 18:11:43 +00:00
Martijn Dekker
4215fcb107 43944: apply NO_UNSET consistently to arithmeitc 2018-12-30 18:03:02 +00:00
Joey Pabalinas
552ebe6082 43904 (plus tweak): zshmisc(1): document term being optional if `in word' is omitted
In code such as:

> hobbes% () { for arg do print -r $arg; done; } 1 2 3
> 1
> 2
> 3

the implicit positional parameters added when the `in word ...'
list is omitted also implicitly append the separator term, making
the above code valid, albeit seemingly violating the syntax listed
in the documentation.

This is related to the various forms of alternative syntax and is
the intended behavior of the parsing code, so correct the minor
contradiction in the for loop documentation.
2018-12-17 12:02:43 +00:00
Peter Stephenson
7292c063e8 43620: More care documenting command substitution including $(<...) 2018-11-14 14:22:10 +00:00
dana
5ad76492af 43800: Add nanosecond support to strftime built-in 2018-11-13 13:01:01 -06:00
Peter Stephenson
6529d52506 43788: clarify zpty -w -n with no string argument 2018-11-07 12:36:05 +00:00
Oliver Kiddle
c8ce1fe4c1 43760: add documentation for true colour changes and nearcolor module 2018-11-05 22:24:16 +01:00
Peter Stephenson
079f7f9d48 43694: More detail on multios.
Mention how opening files in multios differs from cat.
2018-10-17 17:05:31 +01:00
dana
a8f90de4ff 43672: Document result of redirecting from a non-existent file 2018-10-15 22:08:38 -05:00
dana
995a56cf01 43602: Clarify behaviour of compdef -p 2018-10-10 18:50:40 -05:00
Daniel Shahaf
e38f15f8ff 43620 (tweaked): vcs_info git: Reverse the order patches are passed to gen-unapplied-string in.
This is an incompatible change; see README for details.

Tweaks (relative to posted version): tweaked README, removed scalpel (debug print).
2018-10-08 13:44:40 +00:00
Peter Stephenson
c4144bc95b unposted: doc tweak for helpfiles 2018-10-08 10:17:26 +01:00
Peter Stephenson
f99f7dca75 43616: Various parameter setting and display fixes.
Mostly to do with typeset -p and tied variables and their interaction.

Some general tied variable fixes.
2018-10-08 10:10:42 +01:00
Daniel Shahaf
6a5c38626b unposted: Fix typo 2018-10-02 15:22:06 +00:00
Daniel Shahaf
15d613a14f 43563: zshzle: Clarify sentence in introduction. 2018-09-27 16:03:51 +00:00
Daniel Shahaf
3f2bcceec8 43528: zshbuiltins(1): Document 'which''s "not found is not an error" behaviour. 2018-09-25 23:29:06 +00:00
dana
a435ab530f unposted: Fix trivial formatting error in docs 2018-09-16 18:39:55 -05:00
Daniel Shahaf
6fcb32b300 unposted: docs: Fix duplicated words in _combination. 2018-08-21 10:34:54 +00:00
Peter Stephenson
3c93497eb7 43294: Add ZLE_RECURSIVE parameter. 2018-08-17 19:43:17 +01:00
dana
b21a641d4c 43275: Add log2 to match func 2018-08-13 09:36:55 +01:00
Matthew Martin
72e3b566b4 Update distro docs to remove dead links 2018-07-17 09:30:47 +01:00
Peter Stephenson
eef34baab0 43176: Add note on compatibility to start of manual.
Default mode is not POSIX.
2018-07-17 09:29:00 +01:00
Tim Smith
9f203c1159 43172: document escaping colon in zformat -a 2018-07-16 09:33:18 +01:00
Peter Stephenson
0a6cb5078d 43084: Variable warning suppression enhancements.
Add vared -g option along the lines of typeset -g.

Set reply safely in zsh_directory_name_cdr.
2018-06-25 09:31:40 +01:00
dana
394f3a47e4 43075: Support nanosecond-precision time formatting
* Teach ztrftime() %9. and %N for nanoseconds
* Update prompt expansion to pass sub-second times for time formatting
* Update zsh/stat to pass sub-second times for atime/mtime/ctime

Patch heavily based on Oliver's earlier work @ workers/24059
2018-06-20 17:29:56 -05:00
Peter Stephenson
9408c4825b users/23472: Add $sysparams[procsubstpid] to zsh/system 2018-06-15 15:02:36 +01:00
Stephane Chazelas
5ac1c6f555 42790: make [[:blank:]] match non-ASCII blanks 2018-05-17 23:42:27 +02:00
Peter Stephenson
557d1d7259 42399: document echo and behaviour of - and -- 2018-02-26 19:58:01 +00:00
Peter Stephenson
fa2879f500 Document REPORTMEMORY is in Kb, not Mb 2018-02-13 09:39:20 +00:00
dana
0ce5ff2a87 41924: (wi) subscript flag interaction 2018-01-19 23:06:47 -08:00
Barton E. Schaefer
254d8ed8cb unposted: Follow-up to previous: Clarify that ${histchars[1]} may be backslash-escaped even when it isn't '!'. 2018-01-13 18:55:34 +00:00
Daniel Shahaf
ba752d2eb5 42261: docs: Expand documentation of $histchars[1]. Joint with Matthew Martin. 2018-01-13 17:52:59 +00:00
Jun-ichi Takimoto
d303dfa7f5 42175 + 42177 + 42178: avoid localized output from external commands
_call_program and '_arguments --' will call _comp_locale before
calling external command for easier analysis of the output.
This is disabled by passing an option '-l'.
2017-12-28 11:35:34 +09:00
Peter Stephenson
5f6a52c06c 42156: new CHECK_RUNNING_JOBS option demanded by bash groupies
Also new job options.

Also suppress debug error if rows or columns are reported as zero as
this is normal without a physical terminal.
2017-12-22 20:21:23 +00:00
dana
cb04ae40af add millisecond and microsecond options to TIMEFMT variable 2017-12-14 15:36:46 +00:00
Daniel Shahaf
77a39b57bf 42031 + 42048: Make [[ -o invalidoption ]] a normal(ish) false value, rather than a syntax error. 2017-11-24 22:10:27 +00:00
Chris Bracken
2c00d2132c github : Fix minor typo in INC_APPEND_HISTORY documentation 2017-11-13 21:06:35 +01:00
Martijn Dekker
b432d518e4 42004: fix parentheses in documentation 2017-11-11 12:42:51 +00:00
Daniel Shahaf
660df206c1 41939: docs: Move aliases corner case to the dangerous bends section. (after 41482) 2017-10-30 13:30:08 +00:00
Daniel Shahaf
3b0c8bdac8 unposted: Document "typeset -p"'s optional argument in the inline synopsis. 2017-10-17 17:59:06 +00:00
Peter Stephenson
ff3e47e9f4 41842: aliasing documentation update 2017-10-10 09:59:31 +01:00
Daniel Shahaf
e49aabc13a unposted: zsh/stat docs: Rephrase to avoid ambiguity due to the ambiguous relative precedence of the 'other than' and 'and' operators. 2017-10-07 01:11:23 +00:00
Peter Stephenson
174e560a23 41787 (plus minor tweaks): use $FUNCSTACK for function nesting depth.
Initialised from existing configuration value.
2017-10-02 09:44:26 +01:00
Peter Stephenson
728f2adfc8 Add typeset -p1, like typeset -p with newlines 2017-10-01 17:53:56 +01:00
Peter Stephenson
6230e82d44 41764 (test tweaked): allow [key]+=value when modifying arrays 2017-09-27 09:41:50 +01:00
Daniel Shahaf
9cab4c3d7f 41755: Followup to last: minor clarification to docs. 2017-09-24 17:21:50 +00:00
Peter Stephenson
85b0dd7133 Updates for ksh array element syntax.
Move detection of key/value pairs down into prefork().

Detect normal array assignment and [key]=val array assignemnt
separately.  Mark key / value pairs with Marker and pass up flag.  Deal
with marked triads specially later on.
2017-09-24 17:33:07 +01:00
Barton E. Schaefer
2c41dc0b2e 41731: reformat and expand doc for 41698.
Also add missing x-seq reference for 41705 in ChangeLog.
2017-09-20 10:03:47 -07:00
Peter Stephenson
c2d4fa50ed unposted: nodref -> noderef 2017-09-15 09:30:09 +01:00
Peter Stephenson
ab7be4238c More [key]=value tweaks
Some rephrasings.

Update typeset -p for associative arrays to use new syntax.
2017-09-14 21:43:37 +01:00
Peter Stephenson
7ca2e97c14 unposted: typo in doc just committed 2017-09-13 20:58:55 +01:00
Peter Stephenson
54b3958440 First go at var=([key]=value) syntax.
Works for both normal and typeset case, also var+=...

Still to do: allow to be mixed with straight array assignment,
improve typeset -p, implement [key]+=value.
2017-09-13 20:54:00 +01:00
Peter Stephenson
91484e0d42 41679: slight clarification on exec of builtins 2017-09-13 10:47:16 +01:00
Peter Stephenson
e8780e11ed unposted: YODL compatibility fix for --emulate 2017-09-13 10:45:00 +01:00
Peter Stephenson
2ef3dff65a 41668: New --emulate option on invocation.
This sets the shell emulation mode similarly to ARGV0=... which
doesn't work from other shells.

Note that this gives more comprehensive emulation than running
emulate within the shell.
2017-09-11 10:12:17 +01:00
Peter Stephenson
97d4bdbc7e 41590 modified as 41595: make ERR_RETURN more logical.
It now operates separately at each function depth.

To keep ERR_EXIT global, make the noerrexit variable usd bit flags.

Extend tests.
2017-08-24 19:46:20 +01:00
Peter Stephenson
a9b579a9d3 Revert "41499 (with one further tweak): POSIX_STRINGS behaviour."
This reverts commit 2eacbef919.

Conflicts:
	ChangeLog
2017-08-08 19:04:49 +01:00
Peter Stephenson
2fba415a71 41510: update doc for $ZSH_PATCHLEVEL 2017-08-08 16:12:20 +01:00
Peter Stephenson
2eacbef919 41499 (with one further tweak): POSIX_STRINGS behaviour.
Ignore a terminating delimiter when splitting as separators
despite being called separators are terminators.
2017-08-07 18:47:43 +01:00
Anthony Heading
462dd51fb0 41500: document "-" to end zparseopts options 2017-08-07 10:15:02 +01:00
Peter Stephenson
27efa0efd4 41470: Another note on new effect of POSIX_BUILTINS
exec now won't find precommand modifiers after it with the
option set.  This may need further attention.
2017-08-01 09:37:26 +01:00
Barton E. Schaefer
43e55a9bcd 41472: introduce cleanup hooks default and restore special themes, and update documentation 2017-07-29 16:58:39 -07:00
Daniel Shahaf
f183ed66c8 41467: Correct completion of 'tmux new <TAB>'.
Reference: window_pane_spawn() in tmux 2.5.

Also, document _cmdstring and _precommand.
2017-07-28 15:49:14 +00:00
Peter Stephenson
d4b94b5e83 41464, 41466: With POSIX_BUILTINS, exec only executes sexternal commands.
Document the default behaviour and add a test.
2017-07-27 09:22:04 +01:00
Jim
aaa0c90d40 41461: complete list of zsh manual pages in manual introcution 2017-07-26 09:39:08 +01:00
Peter Stephenson
1d0f2a5e7b Further clarification about processing of expansions 2017-07-20 18:59:01 +01:00
Peter Stephenson
d2b98fba46 41429: Try to improve description of how stages of expansion fit together. 2017-07-17 09:23:00 +01:00
Peter Stephenson
a955065cda Delay processing "disown" for superjob.
This is a job forked from the current shell when a job partly
running from the current shell was suspended.  When all associated
processes started from the main shell are finished the job is
continued and at this point the disown can complete.
2017-07-04 09:40:45 +01:00
Stephane Chazelas
4d007e269d 41275: Leave stdin open when executing widgets 2017-06-13 21:34:55 -04:00
Peter Stephenson
d5c22d356b 41244: Add zmodload -s option.
Doesn't complain if module is unavailable, but prints more
obscure errors.

Use existing low-level silent flag by passing through
intermediate module loading hierarchy.
2017-06-12 10:10:23 +01:00
Barton E. Schaefer
11304f7318 unposted: clarify ZLS_COLORS pattern matching contexts 2017-05-28 11:32:10 -07:00
Jörg Sommer
f667cfcc68 41128: typo in compsys documentation 2017-05-22 10:10:07 +01:00
Peter Stephenson
14b5fae69e users/22707: Document extra use of accept-exact-dirs
It allows completion after magically appearing directories that
dont't show up in the parent directory by supressing searching
of the parent directory if the subdirectory is directly found
to exist.
2017-05-19 11:16:10 +01:00
Daniel Shahaf
ce7a98fc05 users/22653: options.yo: Clarify REMATCH_PCRE semantics.
Presently, if the option is set but the module is unavailable, using '=~' sets
errflag.
2017-04-05 13:15:37 +00:00
Barton E. Schaefer
eaeebeb8bb unposted: minor formatting: var() instead of tt(). 2017-04-01 15:23:43 -07:00
Peter Stephenson
5a895a5260 40906: Add note on use of (k) parameter subst flag.
KSH_ARRAYS generlly requires [*] or [@] to operate on the whole
array and this is true here.
2017-03-27 11:57:50 +01:00
Peter Stephenson
20d464944b 40875: Update REC_EXACT description, suggested by Martin Krafft 2017-03-21 09:59:15 +00:00
Daniel Shahaf
b627c251a4 unposted (after 40859): Fix yodl warning:
makeinfo ./zsh.texi
    ./zsh.texi:36246: Next field of node `vcs_info Examples' not pointed to (perhaps incorrect sectioning?).
    ./zsh.texi:36419: This node (Prompt Themes) has the bad Prev.

Seen with yodl 3.00.00 but not with 3.04.00.
2017-03-20 18:52:09 +00:00
Daniel Shahaf
10220628e7 40859: vcs_info docs: Use proper internal links through texinfo nodes.
Changes:

- Add texinode()'s
- Replace 'see foo' with 'see noderef(foo)'

Drive-by changes:

- Fix one reference to a nonexistent "Styles" section
- (minor) Fix whitespace around "once"
2017-03-19 17:18:04 +00:00
Daniel Shahaf
f3ae40f8aa unposted: vcs_info quilt: Fix documentation markup typo. 2017-03-18 00:55:27 +00:00
Daniel Shahaf
56ef4f62c4 40822: vcs_info quilt: Document the '.quilt-foo' zstyle context element. (Compare users/20807.) 2017-03-14 11:14:12 +00:00
Daniel Shahaf
d044530afd 40816: Document interaction of 'print -P' and 'print -f'. 2017-03-12 19:37:18 +00:00
Daniel Shahaf
a5482971b7 40744: Document the SHORT_LOOPS 'function' syntax.
It's already mentioned in passing in zshoptions(1).
2017-03-08 10:04:34 +00:00
Sebastian Gniazdowski
23275fc8db 40726: add "zcurses resize" for sane terminal size change 2017-03-05 11:25:38 -08:00
Peter Stephenson
67c5d83df3 40702: new KEYS_QUEUED_COUNT ZLE variable 2017-03-03 10:18:46 +00:00
Peter Stephenson
47c05f6b66 40622 with typos fixed: functions -Ms.
This adds the capability for mathematical functions based on shell
functions to have a string argument.  Module functions have had
this for a long time.
2017-03-01 10:01:01 +00:00
Daniel Shahaf
bf292bde14 40641: docs: patterns: Add '|' to the overview. Clarify that it short-circuits. 2017-02-28 07:39:15 +00:00
Barton E. Schaefer
4b8db48c6b 40640: the (A) parameter flag forces array result even if assignment syntax is not used 2017-02-25 15:56:50 -08:00
Barton E. Schaefer
db44b17150 unposted (cf. 40617): clarify description of ${(A)name=value} and ${(AA)name=value} 2017-02-23 21:53:19 -08:00
Øystein Walle
e329a8d62d 40568: REMATCH_PCRE is not enabled by default, fix doc. 2017-02-17 15:34:03 +00:00
Sebastian Gniazdowski
e9ce001749 40558, 40562: General improvements to zsh/db/gdbm module 2017-02-17 09:22:02 +00:00
Peter Stephenson
d8c66e65a2 40537: Document previous change to autoload 2017-02-13 16:34:27 +00:00
Daniel Shahaf
ecd88284f3 40492: vcs_info: Escape '%' signs in payloads.
Test case: a patch whose subject is '%Sfoo%sbar'.  ('S' and 's' are
expandos both in prompts and in the 'formats' style.)
2017-02-09 15:24:04 +00:00
Daniel Shahaf
bb6c08b51a unposted: vcs_info git: Fix typo in manual. 2017-02-04 05:55:46 +00:00
Daniel Shahaf
49bc46946e 40476: vcs_info $backend_misc: Document at the right point, provide in quilt 'standalone' mode. 2017-02-03 18:13:57 +00:00
Peter Stephenson
34f70c5dc0 40440: Add $functions_source hash to zsh/parameter.
This allows you to find out where a function was loaded from.
2017-01-28 19:33:27 +00:00
Daniel Shahaf
b0784025b1 40396: vcs_info quilt: More documentation of '%Q' and 'use-quilt'. 2017-01-25 04:22:29 +00:00
Peter Stephenson
c861b17bbf 40391: Add WARN_NESTED_VAR option and functions -W.
These are companions to WARN_CREATED_GLOBAL, warning when a variable
from an enclosing scope is altered.
2017-01-23 09:50:57 +00:00
Oliver Kiddle
b6082cd1e2 40321: _arguments option groups 2017-01-11 20:50:02 +01:00
Peter Stephenson
f26d1ba6b0 Add features associated with autoloading a function using an absolute
path.

-d defaults to normal fpath

-r remembers the path without actually loading.  May be combined with -d.

-R does the same but it's an error if not found

-X can now take a directory path: this is used to output not yet loaded
functions that have an associated path.
2017-01-11 11:26:13 +00:00
Peter Stephenson
bb218704d2 40306 with doc tweaks: Change behaviour expanding alias in () function definition.
Now an error unless the () is part of the same error as the name.
Add ALIAS_FUNC_DEF option to allow it again.
2017-01-10 19:14:26 +00:00
Phil Pennock
1db0eea95a 40318 (in part): Document echo \c behaviour. 2017-01-10 03:48:25 +00:00
Oliver Kiddle
16f5d222fc 40137: document _external_pwds 2016-12-09 22:59:14 +01:00
Peter Stephenson
f094b5b461 Document (E) parameter flag better.
It produces 1 more than any other use of an index for the
end of a match, helpfully.
2016-12-09 19:34:14 +00:00
Daniel Shahaf
7e40a89053 40117: Revert a hunk of 40035 that changed semantics incorrectly. 2016-12-09 10:37:04 +00:00
Eitan Adler
110ffae9fe 40035: Cosmetic fixes for comments and documentation.
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Oliver Kiddle
3570172d3b 40003: include "0-"9 vi buffers in the registers associative array 2016-11-24 16:05:00 +01:00
Oliver Kiddle
cb5f100bd3 39986, 39989: improve handling of vi-repeat-change
Save previous vi change and throw away a new change that fails.
Add zle -f vichange to allow shell widget to be a single change.
Fix repeat of command where numeric arguments were multiplied.
2016-11-20 23:59:48 +01:00
Guillaume Maudoux
dae21874d4 39900: Add TERMINFO_DIRS special like TERMINFO.
Although this is a colon-separated array there is no tied array.
2016-11-20 20:24:15 +00:00
Mikel Ward
a2426747da 39978: more accurate doc for finding job by string 2016-11-20 19:18:34 +00:00
Daniel Shahaf
968a59bfd0 39985: Document the [nyae] answers to the spelling correction prompt, $SPROMPT. 2016-11-20 05:34:21 +00:00
Oliver Kiddle
6d991ce177 39952: add registers special parameter to provide access to the vi register buffers from a zle widget function 2016-11-17 12:27:52 +01:00
Barton E. Schaefer
33052104e1 39929: clarify execute{,-last}-named-cmd 2016-11-13 11:00:16 -08:00
Barton E. Schaefer
dae3116026 39882: mention ${name:/pattern/replacement} in the itemized synopsis with the related forms; clarify doc. 2016-11-09 07:50:06 -08:00
Peter Stephenson
33b3489092 zsh-users/22083: attempt to explain what a word is in parameter substitution. 2016-11-07 10:04:14 +00:00
Oliver Kiddle
4b41e33cbc 39389: when printf -v is used with an array use separate elements each time the format is reused 2016-11-05 00:27:47 +01:00
Daniel Shahaf
fe023d8bac users/22080: bracketed-paste: Third time's a charm.
vi-set-buffer: Eliminate the sole use of the term "register".
2016-11-04 15:50:13 +00:00
Daniel Shahaf
0e9faf67aa users/22063: bracketed-paste: Document ability to specify a vi register. (after users/22036) 2016-11-03 16:44:14 +00:00
Daniel Shahaf
3881c6b9a4 users/22036: bracketed-paste: Document cutbuffer behaviour; clarify. 2016-10-28 16:02:03 +00:00
Daniel Shahaf
5dbfbd8bd0 unposted: Minor documentation fixes (markup, grammar, etc). 2016-10-27 18:25:13 +00:00
Daniel Shahaf
71dd0ab62e 39706: _tilde_files: Offer named directories. Document. 2016-10-24 00:53:45 +00:00
Daniel Shahaf
4eef3e6f0e 39708: Document _email_addresses. 2016-10-24 00:53:36 +00:00
Daniel Shahaf
f1c0480afc 39707: Document _dir_list. 2016-10-24 00:53:32 +00:00
Daniel Shahaf
13cfa036c8 39657: Make a helper function global. 2016-10-18 01:34:52 +00:00
Daniel Shahaf
b4cc190db9 39522: add-zsh-hook/add-zle-hook-widget: Promise append semantics.
The sentence about "as widgets" is removed since there is a whole paragraph
about that later on.
2016-10-07 14:01:00 +00:00
Peter Stephenson
dc517212ca 39566: Improve usefulness of command_not_found_handler.
Don't behave as if command not found if return status is non-zero

as this may simply be the return status of the replacement command.
Let the function report a command not found instead.
2016-10-05 12:14:43 +01:00
Daniel Shahaf
4f2a1810f2 39495: add-zle-hook-widget: Add end-of-options guard to hook invocation.
Currently, the only special widget that takes arguments is zle-keymap-select.
2016-09-30 23:15:57 +00:00
Barton E. Schaefer
0a5bf8e767 unposted: update or remove references to typeset behavior obsoleted by 35586. 2016-09-30 15:57:15 -07:00
Barton E. Schaefer
736eb433ba 39507: TMPSUFFIX for =(...) 2016-09-29 14:55:49 -07:00
Oliver Kiddle
b870ff85a0 39333: include name of command used to gain priviliges in context for command and gain-priviliges styles 2016-09-16 00:05:10 +02:00
Oliver Kiddle
fbafc5b509 39332: support ksh's [[ -v varname ]] condition for checking if variables are set 2016-09-16 00:00:28 +02:00
Peter Stephenson
d0f9150530 unposted: small documentation tweaks 2016-09-14 12:17:38 +01:00
Barton E. Schaefer
43137b8e8f unposted: reference use of widgets to effect editor changes from a sched command 2016-09-12 09:52:23 -07:00
Barton E. Schaefer
5456cab86f 39297: more of 39284, it's painful to add texi nodes in yodl
Also fix some inconsequential ChangeLog typos.
2016-09-12 09:50:25 -07:00
Peter Stephenson
1fc4e6dcac 39255: = in conditions is not going anywhere 2016-09-12 14:57:59 +01:00
Vin Shelton
ef019506ae 39284: Added Completion System Variables as a menu item 2016-09-12 00:23:58 +02:00
Oliver Kiddle
8011fe8a58 39261 (tweaked cf. Daniel: 39275): don't unconditionally elevate privileges with sudo in completion functions
A new gain-privileges style enables it and a _comp_priv_prefix array
added for tracking how to match privileges for the current command
2016-09-11 13:49:22 +02:00
Daniel Shahaf
73622ae288 39236 (plus typo fix): docs: Tweak _arguments $opt_args documentation added in 39173. 2016-09-08 17:15:40 +00:00
Daniel Shahaf
73c0e8d4e6 39173: _arguments: Escape colons and backslashes in $opt_args unambiguously. 2016-09-06 23:48:10 +00:00
Teubel György
fde365ea8b 39167: Make $ENV handling more like POSIX 2016-09-05 21:03:12 +01:00
Daniel Shahaf
7154052ebe 39046 + 39061: New :P history modifier. 2016-08-22 03:34:30 +00:00
Daniel Shahaf
0aa6bfd831 39044 (in part, see thread): Document _canonical_paths in the manual, too.
This mostly copy-pastes the source code comments and adds markup, however, the
positional arguments are now annotated optional, and a ')' was added.
2016-08-18 16:55:45 +00:00
Peter Stephenson
062aeca2d2 39039: fix documentation of transpose-words 2016-08-15 12:06:24 +01:00
Peter Stephenson
bedb61fd99 39029: document transpose-words change 2016-08-12 12:54:34 +01:00
Jun-ichi Takimoto
7f052ed3e4 unposted: fix format in zle.yo 2016-08-04 19:32:34 +09:00
Daniel Shahaf
8d71a610af 38959: Document 38956 (_widgets). 2016-07-31 16:21:27 +00:00
Oliver Kiddle
b816bb42cf 38957: make use of updates to match-words-by-style and better support completion of word-style styles for zstyle 2016-07-28 16:16:25 +02:00
Peter Stephenson
26361e438b 38953: Fix some issues with match-words-by-style.
Add keyword retrieval of words.  Improve test for start of
word in subwords for use in delete-whole-word.  If line after
cursor is empty, white space is treated as ws-after-cursor.
2016-07-28 09:51:19 +01:00
Peter Stephenson
bdf0a3df38 38945: Additional notes on :a behaviour 2016-07-26 09:35:14 +01:00
Oliver Kiddle
932ff2b6f8 38929: new vim style text object using match-words-by-style mechanism 2016-07-24 22:18:34 +02:00
Daniel Shahaf
73ff356d7b 38911: _arguments: Clarify documentation of '-s -w' switch 2016-07-23 18:02:23 +00:00
Daniel Shahaf
00f18f29de users/21779: Clarify documentation of the ':a' word modifier. 2016-07-22 06:25:43 +00:00
Daniel Shahaf
6e966f691d users/21777: Clarify documentation of the ':A' word modifier. 2016-07-20 07:00:29 +00:00
Barton E. Schaefer
e3884c60ed 38866: update add-zle-hook-widget doc for 38850, bug fixes
Edge case handling, wrap in anonymous function for kshautoload management.
2016-07-17 12:04:48 -07:00
Daniel Shahaf
18d676ff19 users/21752: Extend zsh/zleparameter's $widgets' parameter's documentation. 2016-07-17 14:58:05 +00:00
Oliver Kiddle
c32bb6a11c 38845: reset region_active before entering zle
It was done on exit but before zle-line-finish.
Also reword documentation on region to better cover vi mode.
2016-07-17 12:09:24 +02:00
Oliver Kiddle
fc286168ed unposted: fix duplicated words 2016-07-08 22:21:42 +02:00
Peter Stephenson
a7d5d239e6 38783: zcalc tweaks for RPN mode.
Make it more straightforward to exchange variables with stack.
2016-07-04 12:08:14 +01:00
Oliver Kiddle
a73ae70e82 38770: vi upper/lowercase widgets and shell widget example that reads a vi movement 2016-06-29 17:05:06 +02:00
Oliver Kiddle
e83489fc4b 38714: add x: syntax to match specs to make it possible to disable match specs hardcoded in completion functions 2016-06-22 01:37:07 +02:00
Peter Stephenson
26c01f5711 38737: clean up zcalc variables.
Undocumented variables now start with "_".
2016-06-21 17:26:35 +01:00
Peter Stephenson
5103c85abb 38736: various RPN mode enhancements for zcalc 2016-06-21 16:34:55 +01:00
Peter Stephenson
d309d9addc 38692: IFS can't be changed in restricted mode 2016-06-21 12:32:27 +01:00