Bart Schaefer
0a69a2f6cb
50399: Completion/Base/Widget/_complete_debug
...
Properly local scope PS4 change
2022-09-28 17:11:08 -04:00
Bart Schaefer
a99f96797f
50323: create helper for shadowing builtins or existing functions and use it when redefining compadd et al.
2022-06-04 14:19:42 -07:00
Bart Schaefer
67d9a47d79
50184: fix inclusion of -S separator in -r options passed to compadd through _describe
2022-05-07 16:54:31 -07:00
Oliver Kiddle
16d5d6a9da
49597: add a helper for completing numbers with unit suffixes and separate out defaults, ranges and units in completion descriptions
2021-11-24 23:09:38 +01:00
Marlon Richert
c7f4634549
49572: Let _expand preserve array form w/out zstyle glob
2021-11-12 22:13:10 +01:00
Oliver Kiddle
dfb7ac94bb
49561: add zformat -F option, similar to -f but ternary expressions check for existence instead of doing math evaluation
2021-11-12 20:33:52 +01:00
Oliver Kiddle
4e9d0075f4
49519: quote completed options as needed and remove the now superfluous quotes from option specifications
2021-10-26 18:35:36 +02:00
Jun-ichi Takimoto
c7a391fa05
49493: fix '_arguments --' to correctly recognize optional argument
2021-10-24 21:32:58 +09:00
Marlon Richert
1a78e46564
49272: Set $COLUMNS in _call_program to ensure cached command output is sufficiently wide
2021-08-27 09:47:32 +02:00
Oliver Kiddle
e6fdd35a83
49150: consistently use singular form for headings on completion match groups
2021-07-09 00:23:52 +02:00
Bart Schaefer
3fe6bd56ed
48709: suppress error messages from comptry
2021-05-15 13:26:56 -07:00
Bart Schaefer
c231a2394f
48617: fix misuse of IGNORE_BRACES when initializing debug_indent
2021-04-19 14:40:44 -07:00
Marlon Richert
07a30613f0
48214: add file types to _expand completions, so they can be colored through complist
2021-03-31 01:20:36 +02:00
Marlon Richert
f4a248f9d3
48180: Start menu selection with select=long-list in menu style
2021-03-17 12:50:57 -05:00
oxiedi
df7fd1322c
github #63 : fix regression caused by 44274, with sort style -o could break _values
2021-02-07 00:51:41 +01:00
Peter Stephenson
8f42ecd8ee
47873: Improve completion within dynamic directory names
2021-01-27 11:16:55 +00:00
Jacob Menke
794edac638
47395: _store_cache: Don't leak the variable ${_cache_dir}.
2020-09-22 07:10:51 +00:00
oxiedi
c4540e154f
45895: ignore deduplication patterns in _sequence
2020-06-26 00:34:33 +02: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
dana
02a33dd071
45130: _multi_parts: Always pass -f to compadd if given by caller
2019-12-26 20:26:58 -06:00
Wayne Davison
95882efbf7
44912: more quoting fixes in _expand
...
Don't set done_quote=1 if the glob result is empty.
2019-11-26 16:27:51 -08:00
Oliver Kiddle
64661103f0
unposted: fix missing local declarations in _sequence
2019-11-06 21:15:20 +01:00
dana
c6a14bd341
44767: _description: Ignore -J
2019-10-12 02:02:23 -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
Matthew Martin
39b0f5540c
unposted: _pick_variant: Use ${(P) ::= rather than eval
2019-04-22 22:04:24 -05:00
Matthew Martin
6f35d6c0d0
44202 (tweaked): _normal: Add -P to reset precommands
2019-04-04 18:45:19 -05:00
Matthew Martin
7d84cde313
44201: _command_name: Check for external forcing precommand
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
Matthew Martin
bb790c8f81
44199: _normal: Use zparseopts
2019-04-04 18:45:19 -05:00
Matthew Martin
922cf49830
44155: _pick_variant: Update builtin check
2019-03-21 22:04:55 -05:00
dana
79fae27f7c
43930: Improve _multi_parts performance
2018-12-30 09:38:06 -06:00
dana
e75c59f7f5
43928: _alternative: Evaluate (...) action syntax as with _arguments
2018-12-23 07:36:11 -06:00
Peter Stephenson
916ba78cd7
43752: Fix _expand quoting.
...
Quoting was not applied properly if globbing failed or was not applied.
2018-11-03 19:36:06 +00:00
Peter Stephenson
ba7de6d0d5
users/23169: only expand ~[...] under the same circumstances as other ~forms
2018-02-26 20:03:48 +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
Oliver Kiddle
9dee8e00b9
41563: fix completion description alignment with _regex_words
2017-08-18 13:02:18 +02:00
Oliver Kiddle
7fd62f4367
40597: be flexible about order of options to _values
2017-03-04 00:33:20 +01:00
Oliver Kiddle
7d80b14702
40053: exclude current directory of active zsh from _external_pwds ompletion matches
2016-12-01 21:45:04 +01:00
Eitan Adler
110ffae9fe
40035: Cosmetic fixes for comments and documentation.
...
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Daniel Shahaf
1955cceec7
40011: Make $_comp_priv_prefix only declared when required, and use that to have chgrp offer all groups under doas, ssh, etc as well.
2016-11-28 07:16:39 +00:00
Oliver Kiddle
7d2f805008
39945: allow further tab presses to move on to menu completion even when compstate[insert] is emptied
2016-11-16 09:42:49 +01:00
Barton E. Schaefer
8e3e727933
39710 (cf. Alex George: 39709): handle the %o format in the "all-expansions" tag
...
Also allow a single unique match to appear in the "expansions" tag of _expand in the same way as _user_expand (users/21955 commit 18200dc0 )
2016-10-22 21:53:21 -07:00
Barton E. Schaefer
18200dc030
users/21955: add missing final colon in zstyle context lookup; allow a single unique match to appear in "expansions" tag
2016-09-21 21:27:21 -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
c5a3b170d4
39299: better Freebsd support in _external_pwds using procstat
2016-09-13 17:43:38 +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
m0viefreak
2d5dd74732
38153: change the way long options are examined for "=" signs to more accurately identify options that take arguments
...
Note in workers/39135:
The pattern in 266/268 appears to match the '=' sign even though it's in the
second colon-separated field, where it doesn't denote a mandatory argument.
I'm guessing the pattern match on lines 266/268 should be fixed ...
This commit alters those patterns in what is hoped to be the desired way.
2016-09-06 22:35:26 -07:00
Daniel Shahaf
7154052ebe
39046 + 39061: New :P history modifier.
2016-08-22 03:34:30 +00:00
Oliver Kiddle
82119d8d17
38904: fix return status in _normal and functions erroneously using it for default completion
2016-07-21 17:49:13 +02:00
Oliver Kiddle
d2a140e75d
38641: allow for values which resemble compadd options
2016-06-09 22:54:07 +02:00