1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-01 05:16:05 +01:00
Commit graph

4551 commits

Author SHA1 Message Date
Oliver Kiddle
e4aeb3b911 unposted (c.f. Norikatsu Shigemura: github #96): add missing local declaration 2022-11-17 21:10:28 +01:00
Matt Koscica
dbefe08f3e github #87 (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 #95: 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
Bart Schaefer
0a69a2f6cb 50399: Completion/Base/Widget/_complete_debug
Properly local scope PS4 change
2022-09-28 17:11:08 -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
Jun-ichi Takimoto
8e1c6ed6bf 50421: add context as the 1st arg to _dispatch 2022-07-24 21:08:06 +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
a99f96797f 50323: create helper for shadowing builtins or existing functions and use it when redefining compadd et al. 2022-06-04 14:19:42 -07: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
Norbert Lange
dd2c882ae1 github #94: Support .zst kernel modules with modutils 2022-05-25 22:51:02 -05:00
Norbert Lange
c1f1bbc5b9 github #93: Replace /etc/mtab with /proc/self/mounts for Linux
/proc/self/mounts has been available since Linux 2.4.19,
released in 2002. /etc/mtab is usually a symlink to this
file but might not exist
2022-05-25 22:50:48 -05: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 #91: _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
dana
eec9882d04 50176 (tweaked): Improve htop completion
* Correct -v to -V
* Make -u argument optional
* Enable option stacking
* Improve descriptions
* Fix broken sort keys with htop 3.x and add new key descriptions
* Remove _sequence limit on -p
* Add several missing options

+ Fixed a typo and an erroneous comment in the original patch

Thanks to GitHub user xpufx, whose work formed the initial basis of this
change (see zsh-users/zsh pull #89)
2022-05-08 01:32:04 -05:00
Bart Schaefer
67d9a47d79 50184: fix inclusion of -S separator in -r options passed to compadd through _describe 2022-05-07 16:54:31 -07: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
Bart Schaefer
a270da2ada unposted (cf. users/27656 (Tomasz Pala), users/27660): fix $SUFFIX when GLOB_COMPLETE 2022-04-19 22:44:30 -07:00
Jun-ichi Takimoto
f5b2d65337 50017: allow lowercase to match with uppercase in timezone name 2022-04-12 16:01:37 +09: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
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
Jun-ichi Takimoto
75410bc2a1 49943: offer only timezone files starting with uppercase 2022-04-01 17:50:30 +09:00
Matthew Martin
4ee64f13ce unposted: Fix typo 2022-04-01 00:16:10 -05:00
Matthew Martin
9e0303b044 49932: Update _brace_parameter # description 2022-03-31 17:40:01 -05:00
Matthew Martin
7fc42de7da 49931: Update _bsd_pkg 2022-03-31 17:39:21 -05:00
Bart Schaefer
53d6b47d92 49917: change sense of "Ignore insecure ..." answer and use "autoload -r" 2022-03-29 13:18:49 -07: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
Matthew Martin
8dd733dfd2 49851: _login_class: Complete login.conf.d classes 2022-03-18 20:49:15 -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 #1): 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
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