about summary refs log tree commit diff
path: root/Completion/Base
Commit message (Collapse)AuthorAgeFilesLines
* 52373: fix _numbers for suffixes containing % and update affected functionsOliver Kiddle2023-12-051-1/+1
|
* unposted: extra quoting of words in "eval" for safetyBart Schaefer2023-09-091-2/+2
|
* Marlon Richert: 51861: fix _approximate when compadd has been overriddenBart Schaefer2023-08-271-26/+22
| | | | | Before this patch, if compadd had been overridden by a function of the same name, _approximate would not do corrections.
* 52028: improvements to _shadow / _unshadow, plus helper and docBart Schaefer2023-08-271-20/+46
|
* 51860: simplify suffix handling in _prefix to remove less accurate hackMarlon Richert2023-06-221-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.
* 51348: Fix subscript completion bugs inside ~[...]Marlon Richert2023-05-211-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.
* 50399: Completion/Base/Widget/_complete_debugBart Schaefer2022-09-281-1/+1
| | | | Properly local scope PS4 change
* 50323: create helper for shadowing builtins or existing functions and use it ↵Bart Schaefer2022-06-042-1/+73
| | | | when redefining compadd et al.
* 50184: fix inclusion of -S separator in -r options passed to compadd through ↵Bart Schaefer2022-05-071-1/+1
| | | | _describe
* 49597: add a helper for completing numbers with unit suffixes and separate ↵Oliver Kiddle2021-11-242-0/+95
| | | | out defaults, ranges and units in completion descriptions
* 49572: Let _expand preserve array form w/out zstyle globMarlon Richert2021-11-121-1/+1
|
* 49561: add zformat -F option, similar to -f but ternary expressions check ↵Oliver Kiddle2021-11-122-2/+2
| | | | for existence instead of doing math evaluation
* 49519: quote completed options as needed and remove the now superfluous ↵Oliver Kiddle2021-10-261-5/+5
| | | | quotes from option specifications
* 49493: fix '_arguments --' to correctly recognize optional argumentJun-ichi Takimoto2021-10-241-2/+2
|
* 49272: Set $COLUMNS in _call_program to ensure cached command output is ↵Marlon Richert2021-08-271-0/+1
| | | | sufficiently wide
* 49150: consistently use singular form for headings on completion match groupsOliver Kiddle2021-07-092-3/+3
|
* 48709: suppress error messages from comptryBart Schaefer2021-05-151-1/+1
|
* 48617: fix misuse of IGNORE_BRACES when initializing debug_indentBart Schaefer2021-04-191-1/+5
|
* 48214: add file types to _expand completions, so they can be colored through ↵Marlon Richert2021-03-311-4/+5
| | | | complist
* 48180: Start menu selection with select=long-list in menu styleMarlon Richert2021-03-171-1/+1
|
* github #63: fix regression caused by 44274, with sort style -o could break ↵oxiedi2021-02-071-1/+1
| | | | _values
* 47873: Improve completion within dynamic directory namesPeter Stephenson2021-01-271-2/+12
|
* 47395: _store_cache: Don't leak the variable ${_cache_dir}.Jacob Menke2020-09-221-1/+1
|
* 45895: ignore deduplication patterns in _sequenceoxiedi2020-06-261-2/+2
|
* 45730: _arguments: Add the -0 flag, which makes $opt_args be populated sanely.Daniel Shahaf2020-05-031-3/+5
| | | | Also, write/extend docstrings for sepjoin() and zjoin().
* 45130: _multi_parts: Always pass -f to compadd if given by callerdana2019-12-261-1/+1
|
* 44912: more quoting fixes in _expandWayne Davison2019-11-261-1/+1
| | | | Don't set done_quote=1 if the glob result is empty.
* unposted: fix missing local declarations in _sequenceOliver Kiddle2019-11-061-1/+1
|
* 44767: _description: Ignore -Jdana2019-10-121-2/+2
|
* 44274: allow finer control of completion match soring with compadd's -o optionOliver Kiddle2019-05-076-22/+27
|
* unposted: _pick_variant: Use ${(P) ::= rather than evalMatthew Martin2019-04-221-4/+4
|
* 44202 (tweaked): _normal: Add -P to reset precommandsMatthew Martin2019-04-041-1/+2
|
* 44201: _command_name: Check for external forcing precommandMatthew Martin2019-04-042-6/+6
|
* 44200 (tweaked): Completion: Append to precommands in _normalMatthew Martin2019-04-041-2/+3
|
* 44199: _normal: Use zparseoptsMatthew Martin2019-04-041-8/+5
|
* 44155: _pick_variant: Update builtin checkMatthew Martin2019-03-211-8/+22
|
* 43930: Improve _multi_parts performancedana2018-12-301-7/+9
|
* 43928: _alternative: Evaluate (...) action syntax as with _argumentsdana2018-12-231-1/+3
|
* 43752: Fix _expand quoting.Peter Stephenson2018-11-031-2/+12
| | | | Quoting was not applied properly if globbing failed or was not applied.
* users/23169: only expand ~[...] under the same circumstances as other ~formsPeter Stephenson2018-02-261-1/+2
|
* 42175 + 42177 + 42178: avoid localized output from external commandsJun-ichi Takimoto2017-12-282-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'.
* 41563: fix completion description alignment with _regex_wordsOliver Kiddle2017-08-181-9/+12
|
* 40597: be flexible about order of options to _valuesOliver Kiddle2017-03-041-3/+4
|
* 40053: exclude current directory of active zsh from _external_pwds ompletion ↵Oliver Kiddle2016-12-011-1/+1
| | | | matches
* 40035: Cosmetic fixes for comments and documentation.Eitan Adler2016-11-291-1/+1
| | | | Mostly fixes to doubled words.
* 40011: Make $_comp_priv_prefix only declared when required, and use that to ↵Daniel Shahaf2016-11-281-1/+3
| | | | have chgrp offer all groups under doas, ssh, etc as well.
* 39945: allow further tab presses to move on to menu completion even when ↵Oliver Kiddle2016-11-161-1/+2
| | | | compstate[insert] is emptied
* 39710 (cf. Alex George: 39709): handle the %o format in the "all-expansions" tagBarton E. Schaefer2016-10-222-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)
* users/21955: add missing final colon in zstyle context lookup; allow a ↵Barton E. Schaefer2016-09-211-2/+2
| | | | single unique match to appear in "expansions" tag
* 39333: include name of command used to gain priviliges in context for ↵Oliver Kiddle2016-09-161-3/+6
| | | | command and gain-priviliges styles