1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-19 14:36:04 +02:00
Commit Graph

4655 Commits

Author SHA1 Message Date
Matthew Martin e1405109a6 49731: Add OpenBSD sys{clean,merge,patch,upgrade} completion 2022-02-02 19:29:51 -06:00
Daniel Shahaf 04513dd5df 49715: _subversion: add: Complete target arguments to this subcommand 2022-01-29 10:08:45 +00:00
Daniel Shahaf a956caa233 49714: _subversion: resolve: Complete conflicted files created by merges, too 2022-01-29 10:08:43 +00:00
Daniel Shahaf a803a5f4c4 49713: _subversion: commit, diff, revert: Update completions for svn 1.7 and newer
* _svn_deletedfiles: Remove.
    The last version of svn(1) under which that function could possibly
    complete anything, svn 1.6.x, was EOLed in 2013.  Newer versions
    don't have a "text-base" directory, so $controlled is set to an
    empty array, so this function returned false for all files, so
    in 'svn rm' (up to the previous commit) all files were completed
    (because that's what '_files -g "*(e:false:)"' does).

* _svn_status: Remove.
    Versions of svn newer than the aforementioned 1.6.x have an
    entries file but never modify it, so the "mtime has changed" check
    would false negative.  Therefore, sequences such as:
    .
        svn <TAB>
        echo >> some/versioned/file
        svn ci <TAB>
    .
    wouldn't offer some/versioned/file.
    .
    Furthermore, completion would offer directories with no changed
    files in them, and even unversioned directories.  Now only changed
    files/directories are offered.

* _cache_svn_status, _cache_svn_mtime: Remove.
    If these hadn't been removed, I would have moved their declarations
    to file scope so _svn_status could be used from outside this file,
    too.

The replacement function, _svn_modified, doesn't have cache support, but
does honour the 'verbose' style to inhibit recursion to subdirectories.
2022-01-29 10:08:42 +00:00
Daniel Shahaf cb2b0e7c6c 49712: _subversion: svn rm: Complete all svn-controlled files, not only missing/deleted files
Note that currently, _svn_controlled matches all files.
2022-01-29 10:08:40 +00:00
Daniel Shahaf 6342512483 49711: _subversion: _svn_status: Don't offer unversioned files
This function is used only by revert, diff, and commit, none of which
can run on unversioned files (those with status '?').
2022-01-29 10:08:39 +00:00
Andreas Schneider af0f497247 gitlab !17: Add missing options for quilt setup command 2022-01-23 10:46:52 +00:00
Aaron Schrab 92c80e72aa 49664: Use associative array for third-party completion 2021-12-29 00:29:50 +01:00
Oliver Kiddle 85bf9740a0 49668: update zfs completion 2021-12-29 00:22:33 +01:00
Oliver Kiddle b7490d3376 49655 based on 34928 (Daniel Hahler): new pip completion 2021-12-21 01:20:01 +01: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 7791a6876c 49645: when completing for the path_dirs option, add a / suffix and follow symlinks 2021-12-13 20:59:25 +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 e2ad321c88 49633: update options for git 2.34 2021-12-07 07:35:59 +01:00
Oliver Kiddle 4e1bd9ebdf 49630: allow zsh to quote matches from bash completions but include a special case for space suffixes 2021-12-02 21:03:57 +01:00
Oliver Kiddle 9fc0e319c9 49631: new logger completion 2021-12-02 21:03:57 +01:00
Oliver Kiddle 4775f4dc12 49629: new Linux perf completion 2021-12-02 21:03:54 +01:00
Paul Seyfert 5fe498124d github #83: _git-push, _git-send-pack: Make --push-option repeatable. 2021-11-26 11:48:55 +00:00
Daniel Shahaf 676aaf23c3 49449: _zstat: Don't offer -o after -s, since -s is ignored when both -s and -o are specified. 2021-11-26 08:33:40 +00: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
Oliver Kiddle 973e356c34 49594: adapt to changes in 49499 to ensure file modes starting with dash aren't taken to be flags 2021-11-19 21:54:50 +01:00
Oliver Kiddle 8cf76fb8f9 49584: allow for build options in gem install completion 2021-11-19 21:50:33 +01:00
Dimitris Apostolou 356dcb20ce github #82: Fix typos 2021-11-12 23:54:34 +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 9c515a5a2f unposted: fix case statement fall-through for ansible-galaxy role completion 2021-11-12 22:00:10 +01:00
Oliver Kiddle 8ea5977222 49564: always use descriptions included in the file-patterns style and allow the recursive-files style to also work in those cases 2021-11-12 20:41:04 +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
Bart Schaefer 6b2d120077 users/27302: _remote_files respects setting of AUTO_REMOVE_SLASH option 2021-10-31 14:31:26 -07:00
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
Matthew Martin c479107f70 45940: Add _kdump and _ktrace completers and supporting _ktrace_points type 2020-06-01 21:18:25 -05:00
Matthew Martin 7ec05332a2 45939: Add _pgids type 2020-06-01 21:18:23 -05:00
Doron Behar 56fffd5482 gitlab !14: modutils completion: Fix getting the value of kver from opt_args
To get the _value_ of either of the options -S, -k or --set-version,
the (i) subscript flag is not needed.
2020-06-01 08:21:39 +00:00
Yasuhiro KIMURA 911500d3be 45934: _subversion: Make 'svnliteadmin' completed same as 'svnadmin'
In FreeBSD base system svnadmin is installed as 'svnliteadmin'. So
make 'svnliteadmin' completed same as 'svnadmin'.
2020-05-28 21:53:21 +00:00
Matthew Martin 53052335b9 45831: Add _vi completer 2020-05-17 15:18:26 -05:00
noraj 494f6bcb3c gitlab !13: tar supports zstandard (zstd)
Problem

Variants of tar based on libarchive or GNU tar can support extracting
zstd based files.

Solution

Add this type of to _tar_archive.

From noraj <gitlab@mg.gitlab.com>
2020-05-09 18:59:03 -07:00
Eitan Adler d9ad7e6b89 unposted: libarchive tar can extract zip files
Problem

Variants of tar based on libarchive can extract zip files but
`tar xf <tab>` does not complete this type of file.

Solution

Add this type of to _tar_archive.
2020-05-07 20:03:39 -07:00
Daniel Shahaf 8498f8864e unposted: Use alternation patterns rather than brace expansion
(Cf. discussion on GitLab !12.)
2020-05-07 22:23:26 +00:00
Jun-ichi Takimoto 0e6ccfdb2b 45614: update _dnf 2020-05-03 18:28:34 +09:00
Daniel Shahaf d128bc0bd4 45731: _debsnap: New completion function. 2020-05-03 01:29:05 +00: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
Daniel Shahaf 57a3a9a746 45752/0002: _gcc: Complete --output like -o. 2020-05-02 00:48:30 +00:00
Daniel Shahaf 071d7956e6 45752/0001: _gcc: Add .cpp and .hpp to the ignored extensions list. 2020-05-02 00:48:30 +00:00
davey hathorn 013c87e3f3 github #54: Fix dig completion error 2020-04-21 00:26:59 -05:00
dana c70d734363 45655: _retrieve_mac_apps: Update for recent macOS 2020-04-05 20:09:10 -05:00
Daniel Shahaf 51091e19cd 45649: completion: Simplify Unison completion. No functional change. 2020-03-29 20:56:20 +00:00
Henri Menke 83f7dc7806 45646: completion: Unison: Honour the $UNISON variable
By default Unison uses the ~/.unison directory to store its cache and
profiles.  However, this location is configurable through the $UNISON
environment variable.  Quoting from the manual [1]:

> If the environment variable UNISON is defined, then its value will be
> used as the name of this directory.

This patch enables users to move the .unison directory and still enjoy
zsh completion for profiles.

[1] https://www.cis.upenn.edu/~bcpierce/unison/download/releases/stable/unison-manual.html#unisondir
2020-03-29 20:17:29 +00:00
Gastón Haro a6610c4a17 github #46: _git-restore: Complete arguments to the --source option after a '=' sign 2020-03-28 22:49:41 +00:00
Gastón Haro f306221674 github #46: Better restrict git-restore(1) file completions
Add support to the -S and -W options.

Remove the facility for completing files from the tree specified by the
--source argument since, upon testing in git 2.26.0, that doesn't seem
to be correct behaviour.  (Note git-restore(1) says the command is
experimental and its semantics may change.)  See discussion on the PR
for details.
2020-03-28 22:49:41 +00:00
Daniel Shahaf 36df1e4f78 45623: _quilt: Add subcommand descriptions 2020-03-27 01:14:42 +00:00
Daniel Shahaf 174aedcf7f 45622: _quilt: Categorize subcommands 2020-03-27 01:14:42 +00:00
Daniel Shahaf a30da73187 45572: _sshfs: Complete some more options 2020-03-17 14:03:50 +00:00