1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-20 19:51:02 +02:00
Commit graph

2219 commits

Author SHA1 Message Date
Daniel Shahaf
bc7511bdd8 51249: use of --force-local with tar completion 2022-12-30 20:48:48 +00:00
Shohei YOSHIDA
72540a758a 51111: update completion for global to version 6.6.8 2022-12-09 19:27:31 -08:00
Shohei YOSHIDA
2473d83521 51108: single letter forms of Shift-JIS / EUC-JP options were reversed 2022-12-06 20:47:10 -08:00
Oliver Kiddle
e4aeb3b911 unposted (c.f. Norikatsu Shigemura: github ): add missing local declaration 2022-11-17 21:10:28 +01:00
Matt Koscica
dbefe08f3e github (tweaked): update options tmux 3.4
Import completion updates from tmux.git, the revision used was
c67abcf8182b, and the updates were generated by Util/check-tmux-state.

check-tmux-state: changes to output parsing + variable declaration

parsing of `tmux show-options` is slightly more idiomatic (thanks to
@phy1729 for the syntax), and it now also ignores user-specified options
(which are prefixed with an @ symbol).

the lines defining and declaring supported_server_options were also
swapped to the correct order - `typeset` was being called after
supported_server_options was populated, contrary to all the other
supported_*/available_* arrays used in the same area of the file.
2022-11-17 20:47:15 +01:00
Wu Zhenyu
ca87b7e43f github : Add completions for neomutt 2022-11-17 20:18:09 +01:00
Oliver Kiddle
f0aa42e7e5 unposted (c.f. Denis Bitouzé: users/28405): handle also lualatex 2022-11-17 20:10:52 +01:00
Peter Grayson
0a66d6f3ec 50844: Remove _stgit completion script
The StGit project ships its own zsh completion script which is more
complete and up-to-date than those shipped with zsh.

https://github.com/stacked-git/stgit/blob/master/completion/stgit.zsh

Also, the _stgit completions that ship with zsh, which dynamically parse
StGit's help output, will be broken by the upcoming StGit 2.0 release
due to changes in the help output.

Signed-off-by: Peter Grayson <pete@jpgrayson.net>
2022-10-31 08:56:47 +00:00
Bart Schaefer
a7e4394d1b 50714: also complete in the 2nd argument of "git diff" anything that could
be in the 1st argument.

This probably shouldn't complete ranges but all other code is in common,
so leaving it to someone more familiar with _git to clean up.
2022-10-22 20:26:23 -07:00
Eric Cook
c901c1e412 50695: Completion/Unix/Command/_mysql_utils add --protocol option 2022-09-28 17:59:48 -04:00
Daniel Shahaf
eb738c793a unposted: _imagemagick: Add *.svg and *.webp files.
As a comment just above the hunk indicates, many more formats could be added.
2022-08-28 16:45:53 +00:00
Jun-ichi Takimoto
7996fa561e Felipe Contreras: 50435+50436 (+50444): do not build anything
Use 'make -nqp' to ensure nothing is actually built by completion.
Also include some performance improvements, but it can be still
rather slow in a large project's source tree.
2022-08-05 22:53:31 +09:00
Bart Schaefer
13c6b64838 users/27852: local _compskip to avoid propagating any changes by _normal 2022-07-16 20:53:59 -07:00
Bart Schaefer
1e52cd968d 50278: use man -w in preference to manpath; fix caching and precedence of -M 2022-05-22 15:50:45 -07:00
Arvid Norlander
a54d704579 github : _find (gnu/freebsd/darwin): Add some flags and syntaxes
* -exec and -execdir can take ; or + as an ending marker. Previously only ; was
  supported. This is part of POSIX for -exec (support for + for -ok is optional
  and none of the implementations I looked at seem to support that).

* Missing completion for -files0-from (GNU find 4.9.0 and later). This flag
  needs to go with the global flags at the beginning and load the paths from
  the given file instead of from the command line.

* Missing completion for the -newerXY family of flags (GNU find 4.3.3, also
  available in FreeBSD and MacOS at least).
2022-05-20 21:50:50 +00:00
Bart Schaefer
44829c19e8 Marlon Richert: 49954: gradle completion improvements
* Adjust the pattern for matching tasks. The old one was too strict,
  causing it to filter out perfectly valid tasks.
* Add completion of subproject names.
* Prevent subproject tasks from overwriting the main task description.
* Require `:` prefix for showing subprojects.
* Require a subproject prefix before showing subproject tasks.
* Standardize the use of completion tags.
* Rebuild the cache if it can't be read or doesn't contain the required
  arrays.
2022-05-07 16:50:59 -07:00
dana
f59025f849 unposted: Fix util-linux variant detection in _getopt
This had been broken all along for the actual util-linux getopt; i think the
'enhanced' text comes from the original author's version, which Homebrew was
still using when the function was written
2022-04-26 21:54:29 -05:00
Mikael Magnusson
29f97c1f94 49968: _adb: also replace model names, since device names aren't sent on wifi listing 2022-04-03 18:34:03 +02:00
Mikael Magnusson
4d8f36704e 49967: _adb: Handle dumpsys SurfaceFlinger arguments 2022-04-03 18:34:02 +02:00
Mikael Magnusson
8537738207 49966: _adb: Parse device spec correctly
This was particularly annoying when trying to complete logtags after adb logcat -s
2022-04-03 18:34:02 +02:00
Mikael Magnusson
6900dded09 49965: _adb: use $CURRENT instead of $#words 2022-04-03 18:34:01 +02:00
Mikael Magnusson
a07d010981 49964: _adb: Complete services for start/stop 2022-04-03 18:34:00 +02:00
Mikael Magnusson
1b62a5a0af 49963: _adb: Fix device serial completion for hostname:port syntax 2022-04-03 18:33:59 +02:00
Mikael Magnusson
8a60e2e214 49962: _adb: Add dumpsys and cmd completion 2022-04-03 18:33:58 +02:00
Mikael Magnusson
76b573fcbd 49961: _adb: handle exec-out like shell 2022-04-03 18:33:57 +02:00
Peter Stephenson
57305cf245 49875: completion for info -f.
Use local files if there's a slash in the argument.
2022-03-24 10:37:39 +00:00
Matthew Martin
78649ac725 49852: Add _routing_domains and _routing_tables types 2022-03-18 20:52:18 -05:00
Jun-ichi Takimoto
ef60187efc 49766: _less: add quotes to -" and -# 2022-02-23 11:39:33 +09:00
Jun-ichi Takimoto
a692b980cb 49765: _less: add option --color as synonym for -D 2022-02-23 11:24:39 +09:00
samcarter
b745b06eb3 49757 (sourceforge ): offer *.dtx as TeX input files 2022-02-16 13:16:19 +09:00
Jun-ichi Takimoto
fc18b7c8a2 49730: new completions for csplit, pr, ptx, truncate 2022-02-04 21:17:00 +09: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 : 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 (Vincent Bernat): invert before/since for date glob qualifiers completion 2021-12-16 14:21:19 +01:00
Oliver Kiddle
e2ad321c88 49633: update options for git 2.34 2021-12-07 07:35:59 +01:00
Oliver Kiddle
9fc0e319c9 49631: new logger completion 2021-12-02 21:03:57 +01:00
Paul Seyfert
5fe498124d github : _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 : Fix typos 2021-11-12 23:54:34 +01:00
Oliver Kiddle
9c515a5a2f unposted: fix case statement fall-through for ansible-galaxy role completion 2021-11-12 22:00:10 +01:00