1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-02 10:01:11 +02:00
Commit graph

4577 commits

Author SHA1 Message Date
Oliver Kiddle
632fee7cdf 49528: allow multiple -D options to compadd 2021-10-30 23:35:04 +02:00
Matthew Martin
8c582cebc5 49529: Add rogue and descriptions to _rcctl ls 2021-10-27 22:17:26 -05:00
Peter Palfrader
c4b19f7fc4 49431 (tweaked, c.f. Bart: 49434): Faster ~/.ssh/config processing
When iterating over the ssh config file, iterate over the array linearly
instead of always processing the first and then removing it from the
list.  This speeds up processing significantly.
2021-10-26 21:56:23 +02: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
Oliver Kiddle
f414456b7a 49500: new lsns completion 2021-10-23 18:15:43 +02:00
Xavier Hsinyuan
0f1e4d8e78 github #79 (tweaked): _ssh: update options in apple's version of ssh-add 2021-10-16 20:23:41 -05:00
Matthew Martin
713588e235 49441: _timeout: Add OpenBSD 2021-10-13 22:02:40 -05:00
Jun-ichi Takimoto
a18348b897 49464: _basenc: new completion 2021-10-11 23:43:47 +09:00
Alex Xu (Hello71)
6459544417 49444: libarchive tar can actually extract much more formats 2021-09-28 23:57:41 +02:00
Marlon Richert
1e9013941e Add support for multi-project builds to _gradle 2021-09-28 23:50:31 +02:00
Oliver Kiddle
16ad7cec1b 49454: open dump file once only instead of reopening it for appends 2021-09-28 23:45:44 +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
Bart Schaefer
c0e5b212f3 48832: try _gnu_generic first 2021-09-06 12:20:27 -07:00
Shohei YOSHIDA
c843af635a 49343: Fix file name completion of GNU digest utilities 2021-09-04 13:28:26 +02:00
Oliver Kiddle
b60bab1cc1 49345: fix git file completion for paths starting with ../ 2021-09-04 13:11:07 +02:00
Oliver Kiddle
64befeb4ca 49327: complete for new git maintenance, for-each-repo, sparse-checkout and bugreport commands 2021-08-29 17:12:56 +02:00
Oliver Kiddle
a9386df558 49319: completion options update 2021-08-29 17:08:34 +02:00
Oliver Kiddle
12676c0f9f 49317: cleanup inappropriate use of {...} specs with _arguments or _alternative 2021-08-29 17:05:39 +02:00
Oliver Kiddle
f529d54f43 49316: add (-.) glob qualifier to globs where only files are applicable 2021-08-29 17:00:05 +02:00
Oliver Kiddle
76de0b05da 49315: list units in brackets at the end of group descriptions 2021-08-29 16:55:25 +02: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
51eaf66bea unposted (based on Marlon: 49273): add -x to local completion 2021-08-27 09:42:11 +02:00
Oliver Kiddle
46c502c380 49309: update the strace completion through strace 5.13 2021-08-27 09:12:29 +02:00
Oliver Kiddle
b8d3787bac 49306: fix file completion for the second parameter to losetup 2021-08-27 09:10:31 +02:00
Štěpán Němec
5ef55de65e 49234: add missing options in python completion 2021-08-27 08:51:32 +02:00
DCsunset
cd89e1937d github #78: Fix completions in _pandoc 2021-08-24 02:16:45 -05:00
Oliver Kiddle
78961f8870 49268: use an empty string search to find matches for info --index-search= completion
Also include info output to the right of " -- " for further info node
completion matches and fix quoting of a blank argument to _call_program.
2021-08-16 02:44:49 +03:00
Oliver Kiddle
71ff799b3c 49160: fix quoting for xmllint --pretty completion 2021-08-16 02:44:22 +03:00
Stavros Ntentos
765bc14701 github #77: Improve subl completions for Sublime Text v4 2021-07-30 00:44:28 -05: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
Eric Cook
d9e5ef0204 49147: fix completion of linux kernel modules 2021-07-19 02:16:35 -04:00
Oliver Kiddle
6e10067ffd 49158: remove superfluous function definitions 2021-07-11 00:32:34 +02:00
Oliver Kiddle
e9203d04aa 49157: fix uses of literal % characters in completion descriptions 2021-07-10 23:50:50 +02:00
Oliver Kiddle
35f9585cd1 49156: make wider use of the convention of square brackets for defaults 2021-07-10 23:44:58 +02: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
Oliver Kiddle
bffe543142 49149: add specific values in completion after ssh-keygen -b depending on the key type 2021-07-09 00:14:02 +02:00
Max Voit
f1d4a07845 49153: cut off .lua extension from module files that occurs when using lmod for module 2021-07-08 23:51:36 +02:00
dana
c6603669a2 48920: _pgrep: Address issues related to -f completion 2021-06-14 22:19:38 -05:00
dana
32450b7c81 48920: _pgrep: Clarify -x description 2021-06-14 22:18:16 -05:00
Oliver Kiddle
f4b2a03625 48952: expand octal codes for record separators in perl completion 2021-06-03 00:12:54 +02:00
Oliver Kiddle
a21c0b334c 48938: remove vim fold and option markers in completions 2021-06-03 00:09:06 +02:00
Oliver Kiddle
31d9ff53ce 48939: update completion of options for rsync 3.2.3 2021-06-03 00:01:53 +02:00
Oliver Kiddle
0c14732cf7 48897: completion updates for DragonFly 6.0 and OpenBSD 6.9 2021-05-22 00:05:54 +02:00
Marlon Richert
891d361572 48891: Fix pgrep/pkill -f completion
Old completion produced false positives & took too much screen space.
2021-05-21 23:50:24 +02:00
Marlon Richert
e732073415 48864: Improve extra-verbose completion display strings for array parameter values 2021-05-21 23:45:26 +02:00
Jörg Sommer
93b4ee524d users/26649: add zstyle for rake targets without description
`rake -T` shows only these targets having a description. But it might be
useful to see all. Allow this with the zsytle setting:

zstyle :completion::complete:rake:argument-rest:targets extended true
2021-05-17 00:17:25 +02:00
Oliver Kiddle
61e4e43ac9 48783: update ansible completion to 2.10.8 2021-05-16 21:23:15 +02:00
Oliver Kiddle
41071eaed7 48623: update options in openssh completion to version 8.6 2021-05-16 20:41:55 +02:00
Mikael Magnusson
0b3aa73af1 _timeout: Fix wrong syntax 2021-05-16 17:32:09 +02:00
Bart Schaefer
acd20254b5 48710: histed + other zed updates 2021-05-15 13:37:35 -07:00
Bart Schaefer
3fe6bd56ed 48709: suppress error messages from comptry 2021-05-15 13:26:56 -07:00
Jun-ichi Takimoto
ccc9cff9e2 48702: _pandoc: don't use cache, multiple extensions of format, etc. 2021-04-28 22:35:51 +09:00
Bart Schaefer
c231a2394f 48617: fix misuse of IGNORE_BRACES when initializing debug_indent 2021-04-19 14:40:44 -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
André Kugland
92a7b7f417 github/zsh-completions #792: added completions for opus-tools (opusenc, opusdec & opusinfo) 2021-04-19 23:16:27 +02:00
Oliver Kiddle
79258d090c 48619: complete inventory plugins in assignments to ANSIBLE_INVENTORY_ENABLED 2021-04-19 23:07:51 +02:00
Oliver Kiddle
d01d0a1289 48618: update completions for FreeBSD 13 2021-04-19 23:05:49 +02:00
Bart Schaefer
82ff9f24f1 48560: add TYPESET_TO_UNSET option to remove initialization of parameters
Changes typeset such that ${newparam-notset} yields "notset" and
"typeset -p newparam" does not show an assignment to the parameter.  This
is similar to the default behavior of bash and ksh, with minor differences
in typeset output.

Also add tests for some POSIX incompatibilities plus minor changes for test
harness robustness.
2021-04-18 13:58:09 -07: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
455bab1ef6 48556: new completion for ipfw 2021-04-16 23:24:15 +02:00
Marc Chantreux
82ba2261ab 48466: correct indentation and remove tabs and trailing spaces 2021-04-11 21:32:18 +02:00
Marc Chantreux
80d5210195 48445: pluralize tags in _surfraw 2021-04-11 21:05:39 +02:00
Marc Chantreux
90352a8278 users/26645: update options in gv completion 2021-04-11 20:49:30 +02:00
dana
7269bc1ac4 48338: _git: Support case-insensitive path matching 2021-04-10 15:54:26 -05:00
Oliver Kiddle
eaff11c748 48378: complete compadd options for other completion functions 2021-04-09 21:53:41 +02:00
Oliver Kiddle
f3caff1536 48437: fix pid completion when cursor is in the middle of the line 2021-04-09 21:51:31 +02:00
Jun-ichi Takimoto
62e86515e7 48416: update _gcore for macOS and GNU 2021-04-08 22:24:52 +09:00
Daniel Shahaf
295fbc0998 48321 (tweaked per thread): _perl_modules: Don't assume ${words[1]} to be either "perl" or "perldoc"
Also, correct an always-true condition guarding the fallback @INC
codepath.
2021-04-08 02:17:08 +00:00
Marc Chantreux
ccc7ff90a4 users/26579: changes from review including parameter expansion to replace awk 2021-04-06 14:42:07 +02:00
Oliver Kiddle
2c000ee7ba 48414: quote closing bracket to adapt for change in 43928 2021-04-06 14:20:32 +02:00
Jacob Gelbman
7a81e6344f 48218 (+ 48354): various improvements for _gcc 2021-04-04 13:39:32 +09:00
Caleb Maclennan
3afdfef31c github #74: Drop vcsh completions, maintained upstream
See discussion on upstream project here:

https://github.com/RichiH/vcsh/issues/270
2021-03-31 12:16:34 +02: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
Syphdias
5d0bb152ef 48192: Fix _openstack completion for new style clients 2021-03-31 01:16:25 +02:00
Marc Chantreux
7518b20a01 users/26557: add bookmarks support and remove the header from the final list in surfraw completion 2021-03-31 01:16:21 +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
Jacob Gelbman
ab166725dd 48166: add completion for ctags language options 2021-03-29 00:50:42 +02:00
Arseny Maslennikov
e469b8c4e3 48210: Introduce new completion for setpriv(1) on Linux 2021-03-28 12:47:36 +02:00
Arseny Maslennikov
14709db6d6 48212: Introduce new completion for Linux task capabilities 2021-03-28 12:27:12 +02:00
Štěpán Němec
42de9318f1 48231: add missing git --pretty formats and improve descriptions 2021-03-28 10:49:34 +02:00
Oliver Kiddle
d7c8d6826d 48230, 48233 (Jun T): completion of dtrace probes and runtime options 2021-03-28 10:38:13 +02:00
Marlon Richert
f4a248f9d3 48180: Start menu selection with select=long-list in menu style 2021-03-17 12:50:57 -05:00
Jacob Gelbman
5ede2c55f1 48105: Update ctags completion with format fix 2021-02-24 09:24:37 +00:00
Jacob Gelbman
055ce78401 48096: New ctags completion 2021-02-23 10:10:34 +00:00
Oliver Kiddle
d909dc7323 unposted (Daniel): add exclusion list missed in recent OpenBSD update to locale completion 2021-02-13 01:15:10 +01: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
073092f89d 47944: update completions for NetBSD 9 2021-02-08 00:40:10 +01:00
Oliver Kiddle
25d69da85c 47943: update completions for DragonflyBSD 5.8.3 2021-02-08 00:06:57 +01:00
Oliver Kiddle
2edac834a8 47932: update completions for procps 3.3.16 2021-02-07 02:54:21 +01:00
Oliver Kiddle
b17449352e 47931: update completions for OpenBSD base up to 6.8 2021-02-07 02:37:45 +01:00
Oliver Kiddle
509e84ef44 47930: update completions for FreeBSD base up to 12.2 2021-02-07 02:13:10 +01:00
Oliver Kiddle
ceb25d9495 47929: complete newer possible values for the sort style 2021-02-07 01:52:40 +01:00
oxiedi
2b2353fc8f based on github #62: return proper exit status 2021-02-07 01:27:23 +01:00
DCsunset
f59b6f6df3 github #66: Add more commands to _todo.sh 2021-02-07 01:02:10 +01: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
Semnodime
ed160f268a github #72: Fix unix command lldb tab-completion
The --arguments are space (` `) separated, not equal-sign (`=`) separated.
lldb --correct c_arg --wrong=w_arg
2021-02-07 00:25:24 +01:00
aaaz
645c89af6d gitlab !16: Allow spaces between short options and their parameters in _transmission
This matches the summary listed in the `transmission-remote` man page and the program's actual behavior.
2021-02-07 00:10:41 +01:00
Oliver Kiddle
4bea58d0c4 47919: use common function for completing BSD login classes
also update for options to env on FreeBSD and Dragonfly
2021-02-06 00:23:20 +01:00
Oliver Kiddle
ba48357315 47918: new util-linux completions for nsenter and unshare 2021-02-06 00:05:48 +01:00
Jun-ichi Takimoto
93c4cc0d8f 47883: _awk: support gawk ver.5 2021-02-01 09:40:34 +09:00
Peter Stephenson
8f42ecd8ee 47873: Improve completion within dynamic directory names 2021-01-27 11:16:55 +00:00
Paul Seyfert
07765d5901 github #71: _xrandr: Complete providers
* complete `xrandr --setprovideroutputsource` by calling `xrandr
   --listproviders`
2021-01-24 13:32:05 -06:00
Oliver Kiddle
2644e3097d users/26107: complete changed files after git diff HEAD 2020-10-29 21:44:19 +01:00
Mikael Magnusson
8773f01f2b 47494, 47495: Add -n option to strftime 2020-10-25 23:06:02 +01:00
Meng Bo
59a451abae github #65: _nmap: Rename option flags (s/_/-/g)
Nmap commands that previously included an underscore (--max_rtt_timeout, --send_eth, --host_timeout, etc.) have been renamed to use a hyphen in the preferred format.
2020-09-23 11:00:54 +00:00
Jacob Menke
794edac638 47395: _store_cache: Don't leak the variable ${_cache_dir}. 2020-09-22 07:10:51 +00: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
Peter Stephenson
17ee9c5f68 47350: new dropbox command line client completion 2020-09-04 19:56:27 +01:00
Oliver Kiddle
edb5459d61 47322: allow prefix with ssh cipher completion and add matching control for options 2020-08-21 17:41:08 +02:00
Daniel Shahaf
e14e899ab9 47323: _rpmbuild: Complete file arguments after -r/-b/-t. 2020-08-18 13:30:07 +00: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
Jörg Sommer
8becb89357 47320: Add completion for Linux tool used to adjust process OOM score 2020-08-13 22:19:02 +02:00
Oliver Kiddle
90e1f5d541 47321: update completion for btrfs 5.4 2020-08-13 22:13:22 +02:00
Oliver Kiddle
478d38006a 47319: complete more options to ImageMagick's convert command 2020-08-13 22:09:16 +02:00
Oliver Kiddle
4c3d047161 47294: updates to options in aptitude completion 2020-08-10 13:03:26 +02:00
Oliver Kiddle
394c55709e 47293: lowercase completion descriptions for lp 2020-08-10 13:01:24 +02:00
Mikael Magnusson
a1f9b1324d unposted: fix syntax errors in recently added completers 2020-08-08 00:41:15 +02:00
Mikael Magnusson
6f4cf79140 46280: compinit: add -w to explain why compdump runs 2020-08-05 14:19:14 +02:00
oxiedi
2516da75a9 github #61: _parameters: Don't leak the variable $i 2020-07-14 18:16:41 +00:00
Oliver Kiddle
781129b838 46216: update for ansible 2.9 2020-07-08 23:54:38 +02:00
Oliver Kiddle
5a34b68ae2 46217: update options for tmux 3.1 2020-07-08 23:52:37 +02:00
Mathias Fredriksson
aa60dd320f github #60: Fix completion for a zfs dataset containing spaces 2020-07-08 23:46:37 +02:00
Doron Behar
02f62e5d21 gitlab !15: modutils completion: Fix FHS assumption
Remove calls to programs from /sbin/ with _call_program and to avoid the
system complies to the FHS.
Support modules completion for NixOS and Guix which store their kernel
modules not at /lib/modules.
2020-07-08 18:07:39 +02:00
Oliver Kiddle
389c853b4a 46195: use showrgb command to get colours if it is available 2020-07-08 17:40:42 +02:00
SATOH Fumiyasu
a0a27473fe github #50: Complete hosts in "Match" directive 2020-07-08 17:25:20 +02:00
James Pike
dc8061ebe4 github #53: Allow specifying directory name for _remote_files 2020-07-08 17:20:10 +02:00
zsugabubus
19390a1ba8 46097: Fix "assignment to invalid subscript range" error in _rm.
See 46090 for details.
2020-06-28 13:08:00 +00:00
Daniel Shahaf
a4b4a3a7c7 46131: _git-config: Partly fix a bug whereby a 'foo.ba<TAB>' wouldn't be completed to 'foo.bar.baz'.
Now it properly gets completed, but in the case of gpg.openpgp.program,
the description would be shown as "unknown option name", that being the
description of gpg.*.program via `git help -c`, which shadows the
more description of gpg.openpgp.program in $git_options.
2020-06-28 13:01:09 +00:00
Daniel Shahaf
1776422438 46128: _git: Complete more options and diff/merge tools. 2020-06-28 13:01:09 +00:00
Daniel Shahaf
5584badbea 46129: _git-config: Fix a bug where a second trailing dot would be incorrectly offered. 2020-06-28 13:01:09 +00:00
Daniel Shahaf
c1c1fb9b2c 46130: _git-config: Complete some more options. 2020-06-28 13:01:09 +00:00
Miroslav Koškár
c74b3c8919 46140: _git: Fix insufficiently quoted pattern 2020-06-27 20:35:08 +00:00
Miroslav Koškár
d839833e4e 46139: _git: Remove hanging whitespaces 2020-06-27 20:32:39 +00:00
Oliver Kiddle
d14a924c37 unposted c.f. 46034: workaround incompatibility with sh_file_expansion option 2020-06-26 00:46:00 +02:00
Oliver Kiddle
858ddcbd6e 46106: new usbconfig completion 2020-06-26 00:34:37 +02:00
Oliver Kiddle
9ec69989bb 46105: new xinput completion 2020-06-26 00:34:36 +02:00
drelo
eec1c48a91 46075: drelo: prefer ip on linux for finding network interfaces 2020-06-26 00:34:36 +02:00
oxiedi
c4540e154f 45895: ignore deduplication patterns in _sequence 2020-06-26 00:34:33 +02:00
Daniel Shahaf
8bd46bf2a2 46044 (tweaked per Matthew): _units: Correct the path to the units data file on Debian with units 2.00 and newer and on FreeBSD. 2020-06-19 15:32:34 +00:00
Frederick Zhang
1939db10af 45982: _zfs: add space property 2020-06-17 09:59:58 -04:00
Jan Máslo
dc5dfd19a2 gitlab !12: completion for mat & mat2 2020-06-11 22:46:49 +02: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
Doron Behar
aa7b62e3fa gitlab !14 (fixup): modutils comp: Fix getting the value of kver from opt_args 2020-06-08 06:23:05 +00:00