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

4526 commits

Author SHA1 Message Date
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
dana
754658aff3 unposted: _git: Fix copy/paste error in earlier commit that broke git stash drop
This was broken by workers/44923 (8aa84bd5fc)
2020-03-13 09:46:14 -05:00
dana
cb7aadfd2a 45535: _lz4: Order compression levels numerically 2020-03-13 09:38:25 -05:00
dana
c2e46ee43b 45534: _hdiutil: Update image-file extensions, image/disk formats, &c. 2020-03-13 09:38:23 -05:00
dana
3f7b81e24e 45531: _sh: Complete options more accurately
Committing without handling of +x option variants (line 10) pending resolution
of workers/45422
2020-03-13 09:37:37 -05: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
Romain Porte
0d7f888945 45524: Add completion for dscverify(1) from Debian's devscripts. 2020-03-10 15:31:24 +00:00
Daniel Shahaf
6fc8e8628f Merge remote-tracking branch 'origin/master' into 5.9
* Test/D02glob.ztst:
  On the "unreadable directories can be globbed (users/24619, users/24626)"
  test, resolve conflicts by removing the Cygwin-only skip that has been added
  in master, since the test is passing on this branch.  This effectively reverts
  workers/45492.  See discussion starting in workers/45504.

* origin/master:
  unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
  45509: fix typos in B01cd.ztst
  45490 (+45495 and a test): refactor rlimits.c
  github #49: Fix typo: longson should be loongson
  users/24710: Fix job control problem with sudo.
  45492: skip test added by users/24633 on Cygwin
  45488: COMP_WORDS for bash need "$@"-style quoting
  45487: Missing mod_export declarations for AIX
  45447: Complete vcs_info_hookadd and vcs_info_hookdel. Expose _vcs_info_hooks as a top-level helper function.
  45463: test: kill: Document why we use SIGURG
  45453: builtins: kill: Do not signal current process group when pid is empty
  45452: builtins: kill: Add `kill ''` regression test with explicit sigspec
  45451: builtins: kill: Add basic test suite
  github #48/0002: vcs_info git: properly detect bare repositories
  github #48/0001: vcs_info git: avoid warnings in bare repositories
  unposted: Post-release version bump
  unposted: Release 5.8
  CVE-2019-20044: Update change log for preceding commits
  Update NEWS/README
  Add unsetopt/PRIVILEGED tests
  Clean up error-message white space
  Improve PRIVILEGED fixes (again)
  Improve PRIVILEGED fixes
  Drop privileges securely
  unposted: V01zmodload: Fix failing test from workers/45385
  45423: _su: Improve arg handling, shell look-ups
  unposted: _zip: Recognise '--'
  45385: Add a test for 'zmodload -Fa' preemptively disabling ("blacklisting"?) features.
  unposted: Test release: 5.7.1-test-3
  zsh/system: Fix infinite loop in sysread
  _diff_options: Restore -w completion lost in workers/43351
  unposted: Fix ChangeLog typo.
  45368: Add tests for workers/45367's issue about double slashes in 'cd -P' and /home/daniel/in/zsh.
  45373: Fix ERR_EXIT bug in else branch of if.
  45372: Record a symlink loop bug involving :P
  45365: _git: Fix __git_recent_branches for the case when a commit has an empty message
  45343: Queue signals around arithmetic evaluations
  45344: Document where third-party completion functions should be installed.
  45345: internal: ztst.vim: Fix highlighting of zsh comments in test payload
  unposted: internal: Add some comments and fix indentation.  No functional change.
  45340: internal: Document the difference between paramtab and realparamtab.
  45332: _git: add completion for git-version
  _brace_parameter: add missing \

Conflicts:
	ChangeLog
	Test/D02glob.ztst
	Test/V01zmodload.ztst
2020-03-07 21:36:46 +00:00
Daniel Shahaf
dd50f125b5 unposted: Remove 'sgi', as that OpenBSD port has been discontinued.
See https://www.openbsd.org/sgi.html and discussion on github PR #49.
2020-03-06 14:00:34 +00:00
Bryan Irvine
2f419b332d github #49: Fix typo: longson should be loongson 2020-03-05 15:44:12 +00:00
Marc
f7c6a0008b 45488: COMP_WORDS for bash need "$@"-style quoting 2020-02-25 09:55:28 +00: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
dana
dd523255cc 45423: _su: Improve arg handling, shell look-ups
Differences from ML post:

* Properly fix escaping issue with $usr (needs unescaped first)

* Make $shell emptiness check easier to read (per feedback)
2020-02-14 09:42:12 -06:00
dana
8037462895 unposted: _zip: Recognise '--' 2020-02-07 14:05:48 -06:00
Martin von Wittich
1f238665f6 _diff_options: Restore -w completion lost in workers/43351 2020-02-06 13:24:00 -06:00
WGH
e71ba9704f 45365: _git: Fix __git_recent_branches for the case when a commit has an empty message 2020-02-02 07:32:14 +00:00
Eitan Adler
e626f57613 45332: _git: add completion for git-version
Signed-off-by: Eitan Adler <lists@eitanadler.com>
2020-01-19 23:32:37 +00:00
Mikael Magnusson
387247864e _brace_parameter: add missing \ 2020-01-19 16:11:14 +01:00
Daniel Shahaf
bcd78756c8 45313: _git: Support completion from outside of a worktree when --git-dir/--work-tree are specified on the command line
Revised version of workers/41523.
2020-01-17 21:52:45 +00:00
Daniel Shahaf
e899c21863 Merge remote-tracking branch 'origin/master' into 5.9
Right now, as we're preparing to tag the 5.8 release, the 5.9 branch is
maintained as a topic branch off master.

* origin/master:
  45287: zshexpn: Describe parameter elision and add some introductory prose
  45302: bin_umask(): Queue signals around umask().
  users/24656: docs: Add an example of setting and querying zstyles
  users/24659: Cross-ref doc for matchers.
  45296: D02glob: Clean up after test from users/24633
  45290: New helper script for listing XFail tests.
  users/24633: Add an xfail test for users/24619.
  unposted: additional typo fix
  45280: _git: add -local variants
  users/24628 (fixed): More doc for selectw-word-style widgets.
  45266: Fix losetup completion, broken in da085b7a20 (41720).
  unposted: Fix punctuation.
  use /dev/fd on Cygwin for process substitution
  unposted: Two additional typo fixes.
  Fix typos reported by codespell in shell code
  Fix typos reported by codespell in Src/
  45269: Fix misspellings in completions and elsewhere.
  45261: _gcc: Detect clang-as-gcc
  unposted: internal: Remove Vim modeline that interferes with ztst.vim.
  unposted: internal: ztst.vim: Use :syn-sync to work around (#x) and "`\\\\\\\\`" confusing the highlighting.
  unposted: internal: zyodl.vim: Support glob qualifiers in example()'s
  unposted: internal: zyodl.vim: Support yodl comments.
  github #44: Allow completion for picocom to list symlinks to character devices
  45245: _gcc: add some clang specific warnings
  45231: _rsync: When completing remote modules, ignore more of the motd.
  unposted: _tac: Eliminate superfluous variable
  45226: _man: Improve completion of file paths
  45184: Clarify documentation of %-sequences understood by compadd -[Xx]
  45239: Remove 'appendhistory' from zsh-newuser-install
  45218: add more options to swaks completion
  45196: fix completion after make -C, allowing for -C being used multiple times
  unposted (after 45183): Fix yodl error: "contrib.yo:4457: No macro: back(...)".
  45181: Fix workers/45164: ${(S)%%} will now consider the empty string as a potential match.
  45183: Improve documentation examples
  unposted: Add some tests for ${(S)}, including a regression test for workers/45164.
  45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for workers/44007.
  45169/0001: In the test suite, allow test cases to be marked as expected to fail.
  users/24582 + users/24583: Add regression tests for the previous commit.
  24581: Fix array assignments in shell word splitting and completion.
  45160: zshexpn: Expand documentation of (S)
  45150 + 45152: zshexpn: Use a more minimal example in the documentation of (#b).
  unposted: internal: Vim ztst support: Add an ftplugin in addition to the syntax highlighter.
  45130: _multi_parts: Always pass -f to compadd if given by caller
  unposted: zerrmsg(): Fix macro guard missed in previous commit
  unposted: ChangeLog for last commit
  internal: Allow %L in zerrmsg() in non-debug builds, too.
2020-01-15 22:49:09 +00:00
Daniel Shahaf
22c0fe02a5 45288: _git: Complete bisect/new as well as bisect/bad.
Also, complete the bisect/old-$commithash ref names.
2020-01-15 22:41:25 +00:00
Oliver Kiddle
06a9af4f59 unposted: additional typo fix 2020-01-11 17:41:14 +01:00
Eitan Adler
5482d65d5c 45280: _git: add -local variants
Technically all timezone formats support the "-local" suffix but it is
not meaningful for all of them. As such just list out the specific
formats which it does.

Also adjust the 'default' description
2020-01-11 17:37:44 +01:00
Daniel Shahaf
70d6d0d86c 45266: Fix losetup completion, broken in da085b7a20 (41720). 2020-01-10 12:46:38 +00:00
Daniel Shahaf
742ab1283b unposted: Two additional typo fixes. 2020-01-09 13:59:05 +00:00
Mikael Magnusson
66caa81ab7 Fix typos reported by codespell in shell code 2020-01-09 14:51:08 +01:00
Jens Schleusener
11dbe4c286 45269: Fix misspellings in completions and elsewhere. 2020-01-09 13:42:02 +00:00
dana
4858e868dc 45261: _gcc: Detect clang-as-gcc 2020-01-08 17:54:46 -06:00
Damien Thébault
58ff4adbb0 github #44: Allow completion for picocom to list symlinks to character devices 2020-01-07 14:55:46 +00:00
Eitan Adler
8500403b66 45245: _gcc: add some clang specific warnings 2020-01-06 22:01:09 -06:00