summaryrefslogtreecommitdiff
path: root/Completion/Base
AgeCommit message (Collapse)AuthorFilesLines
2025-01-27github #126: Fix some typosWu, Zhenyu1-1/+1
2024-11-1153174: add Completion/Base/Utility/_as_ifEric Cook1-0/+10
2023-12-0552373: fix _numbers for suffixes containing % and update affected functionsOliver Kiddle1-1/+1
2023-09-09unposted: extra quoting of words in "eval" for safetyBart Schaefer1-2/+2
2023-08-27Marlon Richert: 51861: fix _approximate when compadd has been overriddenBart Schaefer1-26/+22
Before this patch, if compadd had been overridden by a function of the same name, _approximate would not do corrections.
2023-08-2752028: improvements to _shadow / _unshadow, plus helper and docBart Schaefer1-20/+46
2023-06-2251860: simplify suffix handling in _prefix to remove less accurate hackMarlon Richert1-7/+2
This solves the following problems in the _prefix completer: - The old code had logic for dealing with compstate[unambiguous] that was unnecessary. It works fine without it. - Because of this logic, if a widget set compstate[insert]=1 after calling _main_complete, an `x` was left after the completion on the command line. - If the same widget also set `compstate[to_end]=`, then instead, the last character of the inserted completion would be treated as an autoremovable suffix, with the actual suffix being inserted to the line as a normal character. - After inserting a completion, the cursor would move to the end of the entire current word on the command, not the end of word that was inserted. This is not what you want with _prefix, since you are trying to complete a word _before_ the one on the command line, after which you usually want to insert a separator, such as a space or slash, before the next word.
2023-05-2151348: Fix subscript completion bugs inside ~[...]Marlon Richert1-13/+9
When completing inside ~[...] (_with_ the trailing `]` present), the following bugs occured: - Subscript completion was skipped entirely when there were one or more slashes ('/') in the subscript, which is incorrect, since slashes are allowed there. - Instead of going through _complete, $_comps[-subscript-] was called immediately, causing _setup to be skipped. - If succesful, _main_complete was exited right after, causing menu-style, comppostfuncs and other essential completion features to be skipped.
2022-09-2850399: Completion/Base/Widget/_complete_debugBart Schaefer1-1/+1
Properly local scope PS4 change
2022-06-0450323: create helper for shadowing builtins or existing functions and use it ↵Bart Schaefer2-1/+73
when redefining compadd et al.
2022-05-0750184: fix inclusion of -S separator in -r options passed to compadd through ↵Bart Schaefer1-1/+1
_describe
2021-11-2449597: add a helper for completing numbers with unit suffixes and separate ↵Oliver Kiddle2-0/+95
out defaults, ranges and units in completion descriptions
2021-11-1249572: Let _expand preserve array form w/out zstyle globMarlon Richert1-1/+1
2021-11-1249561: add zformat -F option, similar to -f but ternary expressions check ↵Oliver Kiddle2-2/+2
for existence instead of doing math evaluation
2021-10-2649519: quote completed options as needed and remove the now superfluous ↵Oliver Kiddle1-5/+5
quotes from option specifications
2021-10-2449493: fix '_arguments --' to correctly recognize optional argumentJun-ichi Takimoto1-2/+2
2021-08-2749272: Set $COLUMNS in _call_program to ensure cached command output is ↵Marlon Richert1-0/+1
sufficiently wide
2021-07-0949150: consistently use singular form for headings on completion match groupsOliver Kiddle2-3/+3
2021-05-1548709: suppress error messages from comptryBart Schaefer1-1/+1
2021-04-1948617: fix misuse of IGNORE_BRACES when initializing debug_indentBart Schaefer1-1/+5
2021-03-3148214: add file types to _expand completions, so they can be colored through ↵Marlon Richert1-4/+5
complist
2021-03-1748180: Start menu selection with select=long-list in menu styleMarlon Richert1-1/+1
2021-02-07github #63: fix regression caused by 44274, with sort style -o could break ↵oxiedi1-1/+1
_values
2021-01-2747873: Improve completion within dynamic directory namesPeter Stephenson1-2/+12
2020-09-2247395: _store_cache: Don't leak the variable ${_cache_dir}.Jacob Menke1-1/+1
2020-06-2645895: ignore deduplication patterns in _sequenceoxiedi1-2/+2
2020-05-0345730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.Daniel Shahaf1-3/+5
Also, write/extend docstrings for sepjoin() and zjoin().
2019-12-2645130: _multi_parts: Always pass -f to compadd if given by callerdana1-1/+1
2019-11-2644912: more quoting fixes in _expandWayne Davison1-1/+1
Don't set done_quote=1 if the glob result is empty.
2019-11-06unposted: fix missing local declarations in _sequenceOliver Kiddle1-1/+1
2019-10-1244767: _description: Ignore -Jdana1-2/+2
2019-05-0744274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle6-22/+27
2019-04-22unposted: _pick_variant: Use ${(P) ::= rather than evalMatthew Martin1-4/+4
2019-04-0444202 (tweaked): _normal: Add -P to reset precommandsMatthew Martin1-1/+2
2019-04-0444201: _command_name: Check for external forcing precommandMatthew Martin2-6/+6
2019-04-0444200 (tweaked): Completion: Append to precommands in _normalMatthew Martin1-2/+3
2019-04-0444199: _normal: Use zparseoptsMatthew Martin1-8/+5
2019-03-2144155: _pick_variant: Update builtin checkMatthew Martin1-8/+22
2018-12-3043930: Improve _multi_parts performancedana1-7/+9
2018-12-2343928: _alternative: Evaluate (...) action syntax as with _argumentsdana1-1/+3
2018-11-0343752: Fix _expand quoting.Peter Stephenson1-2/+12
Quoting was not applied properly if globbing failed or was not applied.
2018-02-26users/23169: only expand ~[...] under the same circumstances as other ~formsPeter Stephenson1-1/+2
2017-12-2842175 + 42177 + 42178: avoid localized output from external commandsJun-ichi Takimoto2-7/+16
_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-08-1841563: fix completion description alignment with _regex_wordsOliver Kiddle1-9/+12
2017-03-0440597: be flexible about order of options to _valuesOliver Kiddle1-3/+4
2016-12-0140053: exclude current directory of active zsh from _external_pwds ompletion ↵Oliver Kiddle1-1/+1
matches
2016-11-2940035: Cosmetic fixes for comments and documentation.Eitan Adler1-1/+1
Mostly fixes to doubled words.
2016-11-2840011: Make $_comp_priv_prefix only declared when required, and use that to ↵Daniel Shahaf1-1/+3
have chgrp offer all groups under doas, ssh, etc as well.
2016-11-1639945: allow further tab presses to move on to menu completion even when ↵Oliver Kiddle1-1/+2
compstate[insert] is emptied
2016-10-2239710 (cf. Alex George: 39709): handle the %o format in the "all-expansions" tagBarton E. Schaefer2-3/+13
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)