1
0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-09-22 03:40:47 +02:00
Commit Graph

387 Commits

Author SHA1 Message Date
Stephane Chazelas
0577dafcaa Protect some :s from history modifier expansion 2023-06-06 09:22:18 +01:00
Marlon Richert
b41dd30c90 51761: Use zstyle verbose for _parameters descriptions
According to the manual, extra-verbose means "more verbose at the cost
of a probable decrease in completion speed". That's not the case here.
2023-05-21 03:28:43 +02:00
Marlon Richert
9a5f213573 51759: Show alias values in command completions
Show the value of each alias when descriptions are shown. Enabled by default.
2023-05-21 03:14:27 +02:00
Marlon Richert
bb441f77a7 51758: Make dynamic dir completion easier to implement 2023-05-21 03:05:20 +02:00
Sebastian Stark
bb36b80178 51470 (tweaked, c.f. 51476): Separate cdpath elements in path-directories completion 2023-02-24 14:40:38 +01:00
Oliver Kiddle
e2a39513dc unposted: mention attributes changes, fix renumbering mistake and allow completion to offer prompt escapes for PROMPT_EOL_MARK 2023-01-11 16:05:06 +01:00
Jun-ichi Takimoto
8e1c6ed6bf 50421: add context as the 1st arg to _dispatch 2022-07-24 21:08:06 +09:00
Bart Schaefer
8756cc6add Marlon Richert: 50307 (cf. PWS 50205): suffix aliases should not collide with directory names when completing 2022-05-30 12:02:50 -07:00
Mikael Magnusson
92f193f7de 49959: _brace_parameter: add (-) 2022-04-03 11:27:28 +02:00
dana
8e83378c90 unposted (see 48073): _fc: Complete new -s option 2022-04-02 22:07:56 -05:00
Matthew Martin
9e0303b044 49932: Update _brace_parameter # description 2022-03-31 17:40:01 -05:00
Oliver Kiddle
702d773e86 49648 based on github #80 (Vincent Bernat): invert before/since for date glob qualifiers completion 2021-12-16 14:21:19 +01:00
Oliver Kiddle
78c51b34c0 49643: facilitate use of the fake style by always calling _description with the executables tag for command names
Also allow the command-path style to include relative directories.
2021-12-13 20:52:23 +01:00
Oliver Kiddle
632fee7cdf 49528: allow multiple -D options to compadd 2021-10-30 23:35:04 +02:00
Bart Schaefer
344d471c26 49389: leading variables in autoload file completion 2021-09-08 16:03:57 -07:00
Marlon Richert
ca2e71e0eb 48969: fix for "zle -N" completion 2021-09-06 12:48:53 -07:00
Oliver Kiddle
51eaf66bea unposted (based on Marlon: 49273): add -x to local completion 2021-08-27 09:42:11 +02:00
Jun-ichi Takimoto
b4dff9a8e8 49211: _typeset: correctly set return value
do not include '-' in onopts so that 'functions -- <TAB>' works.
2021-07-30 01:10:24 +09:00
Oliver Kiddle
efec6bbdb5 49151: remove commas erroneously included in _arguments exclusion lists 2021-07-09 00:32:37 +02:00
Oliver Kiddle
e6fdd35a83 49150: consistently use singular form for headings on completion match groups 2021-07-09 00:23:52 +02:00
Marlon Richert
e732073415 48864: Improve extra-verbose completion display strings for array parameter values 2021-05-21 23:45:26 +02:00
Bart Schaefer
acd20254b5 48710: histed + other zed updates 2021-05-15 13:37:35 -07:00
Marlon Richert
7d92391c6e Add -L to add-(zsh|zle)-hook[-widget] completion
…and hide mutually exclusive options.
2021-04-19 23:21:08 +02:00
Daniel Shahaf
df899d38e9 48361 (+ 48368 review comments): __arguments: New completion function for _arguments.
In the penultimate paragraph of the comment, the two possibilities for the
relative path cover three cases:

- The comment is read in the source tree

- The comment is read in an installed tree with --enable-function-subdirs

- The comment is read in an installed tree with --disable-function-subdirs

Review-by: Matthew Martin
Review-by: Oliver Kiddle
2021-04-17 12:11:47 +00:00
Marlon Richert
587cced35d 48513: Let extra-verbose completion show parameter values 2021-04-16 23:36:03 +02:00
Oliver Kiddle
eaff11c748 48378: complete compadd options for other completion functions 2021-04-09 21:53:41 +02:00
dana
2ffd292833 47737: _zstyle: Fix option completion when positional arguments are already present (regression from workers/39659 (commit ae3b675ce6))
The following case:

    LBUFFER='zstyle -'
    RBUFFER=' foo bar'

Before this patch, completed 'context pattern' (from the first
positional argument).

With this patch, completes options, which is correct.
2021-03-29 13:44:44 +00:00
taiyu
3714ee0b58 github #68: support section suffix completion for man pages
Support prepend and suffix values for insert-sections
Add values for insert-sections for zstyle completion
2021-02-13 01:01:40 +01:00
Oliver Kiddle
ceb25d9495 47929: complete newer possible values for the sort style 2021-02-07 01:52:40 +01:00
Peter Stephenson
8f42ecd8ee 47873: Improve completion within dynamic directory names 2021-01-27 11:16:55 +00:00
Mikael Magnusson
8773f01f2b 47494, 47495: Add -n option to strftime 2020-10-25 23:06:02 +01:00
Bart Schaefer
63b6398b70 47364: Enable extendedglob in pattern with ${(*)name/pattern/replacement}
Mikael Magnusson: 47382: Completion for 47364
2020-09-13 16:19:52 -07:00
Doug Kearns
0673212f42 unposted: remove periods from completion descriptions
As per the completion-style-guide recommendations.
2020-09-06 03:42:33 +10:00
Mikael Magnusson
841188439b 47306: edit-command-line: add editor style 2020-08-16 18:04:43 +02:00
Mikael Magnusson
b959ec790e 47304: _globflags: support specifying more than one flag where appropriate 2020-08-16 18:04:43 +02:00
oxiedi
2516da75a9 github #61: _parameters: Don't leak the variable $i 2020-07-14 18:16:41 +00:00
Oliver Kiddle
1ee8ecd8ea 46036: fix colouring in prompt completion 2020-06-11 22:34:41 +02:00
Oliver Kiddle
cce88bdb0c users/24892: fix local declaration with recursive-files style and complete it for zstyle 2020-06-11 22:31:44 +02:00
dana
359e0dae2b 45424: completion: Add **/sbin to PATH when completing commands like sudo
* Update _command_names to add **/sbin to PATH when not otherwise overridden
  and _comp_priv_prefix is set. This ensures that, on systems where
  unprivileged users don't have **/sbin in their PATHs, we can still complete
  those commands when they try to run them with e.g. sudo

* Update functions for privilege-gaining commands to use the aforementioned
  mechanism

* Fix some other minor issues in _pfexec and _doas

Changes from the posted diff:

* Fix a minor redundancy in _doas

* Add _c_p_p=( '' ) hack to _su
2020-03-11 16:26:41 -05:00
Daniel Shahaf
50df0e0bb9 45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function. 2020-02-19 10:18:30 +00:00
Mikael Magnusson
387247864e _brace_parameter: add missing \ 2020-01-19 16:11:14 +01:00
Sebastian Gniazdowski
6c0ebbe1d9 44970: _brace_parameter: Update the description of S flag 2019-12-04 22:52:28 +01:00
Daniel Shahaf
c263b79c59 44809: _typeset: Complete 'functions -c' 2019-10-14 01:24:47 +00: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
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
8e4566e536 44144: _builtin: Append "builtin" to precommands 2019-03-21 22:04:55 -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
dana
f21d54a381 unposted: _zftp: Use 'post' pattern matching
_zftp's use of `#compdef -p`, combined with inaccurate sub-command matching in
the function, was causing it to clobber the completion for other commands,
notably zf_mkdir from zsh/files. To avoid this, use -P instead
2019-03-06 18:06:07 -06:00
dana
a76c6def15 44001: _brace_parameter: Complete (q+) 2019-01-21 15:17:57 -06:00