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

2074 commits

Author SHA1 Message Date
Daniel Shahaf
9a4fb22d89 41557: _tmux: show-environment, set-environment: Make -g,-t mutually exclusive.
tmux does not error out on the combination, but it does ignore one of
the two when both are specified.
2017-08-30 00:12:05 +00:00
Daniel Shahaf
383dc2a6f5 41558: _tmux: Complete option names for show-options and show-window-options. 2017-08-30 00:12:02 +00:00
Андрей Стоцкий (_RuRo_)
8b4d2329c7 41618: Added some arguments autocompletion to _todo.sh. 2017-08-29 01:56:17 +00:00
Oliver Kiddle
386eb378a7 41617: complete new tracepath options 2017-08-29 00:41:34 +02:00
Oliver Kiddle
e5c11eb7b5 41616: update completion options to entr 3.8 2017-08-29 00:38:32 +02:00
William da Silva
dd2e003c8e 41602 (tweaked): Improve wording in gpg completion. 2017-08-25 15:29:36 +00:00
Oliver Kiddle
3fbb80b1d3 41601: handle system differences in arp completion and add function for route 2017-08-25 15:20:10 +02:00
Oliver Kiddle
93ce12e7a0 41600: fix quoting of songs for mpc completion
also avoid sending errors to stderr and update completion of options
and subcommands
2017-08-25 15:13:57 +02:00
Oliver Kiddle
86f9edbc9d 41598: new who and w completions 2017-08-25 15:08:30 +02:00
Oliver Kiddle
1472c85412 41568: complete vmstat options on NetBSD and Solaris and add some exclusion lists 2017-08-18 22:25:16 +02:00
Oliver Kiddle
bcb285dbb6 41561: update dhclient completion
handle Free/OpenBSD implementations and bring options up-to-date
for the ISC implementation
2017-08-18 12:56:39 +02:00
Oliver Kiddle
ba6538637e 41560: cleanup chsh completion for different platforms 2017-08-18 12:54:18 +02:00
Tomasz Pala
8197af9b9c users/22834: allow completion after -c and a few other new ip options 2017-08-16 23:58:19 +02:00
Oliver Kiddle
b1a1a34250 41556: complete BPF (libpcap) filters 2017-08-16 23:47:55 +02:00
Oliver Kiddle
f80fe2dfe9 41552: complete only branches after git worktree add --detach
the --detach is superfluous for other commits
2017-08-16 23:41:09 +02:00
Daniel Shahaf
5654b905f9 41481: _df: Complete mounted device and mount points.
This splits umount's "udevordir" completion from _mount to a new file,
without changing it.
2017-08-08 14:55:02 +00:00
Daniel Shahaf
e2124c4719 41486: _tmux: Correct completions of new-window, split-window, respawn-window, respawn-pane.
This follows up to 41467 which patched new-session.
2017-08-08 13:52:04 +00:00
Oliver Kiddle
943a061ea5 41493: fix to not print hash into terminal and update options for git 2.14 2017-08-06 00:28:22 +02:00
Oliver Kiddle
14ff7d39ad 41492: update some options in completions 2017-08-05 16:22:30 +02:00
Daniel Shahaf
623be7199e 41479: _xz: Complete compressed, rather than uncompressed, files after -d. 2017-08-02 14:09:59 +00:00
Daniel Shahaf
17a6eb655d 41475: _git: Complete files after 'reset' when there are no commits, when the 'verbose' style is set. 2017-08-02 14:09:57 +00:00
Daniel Shahaf
562482a495 unposted: _git: Fix style lookup for 'max-verbose'. 2017-07-31 00:52:49 +00:00
Daniel Shahaf
f183ed66c8 41467: Correct completion of 'tmux new <TAB>'.
Reference: window_pane_spawn() in tmux 2.5.

Also, document _cmdstring and _precommand.
2017-07-28 15:49:14 +00:00
Daniel Shahaf
a6f2755448 41471 (tweaked): _svn: Complete propvals in 'propset'. 2017-07-28 15:46:00 +00:00
Daniel Shahaf
4015f3cf5d 41458: _subversion: Don't cache an empty commands list when svn is not available at the first invocation of _svn. 2017-07-28 15:42:42 +00:00
Oliver Kiddle
9e7315ab89 41432: use option grouping in xz completion 2017-07-15 14:55:41 +02:00
Oliver Kiddle
8eaacb3541 41431: update options in assorted completions 2017-07-15 14:53:53 +02:00
Fabian Klötzl
4a63a1793a 41414: fix for commas used in exclusion lists
also missing escape for _gcc and --no-index option for git diff
2017-07-14 12:07:49 +02:00
Oliver Kiddle
76a4a5ed3c 41419: update for git 2.13.2 2017-07-14 11:59:31 +02:00
Marcin Mielniczuk
050f752ed2 41409: complete "django startproject" 2017-07-11 09:13:51 +01:00
Peter Stephenson
c5783576e8 41339: Unquote treeish argument for git checkout completion 2017-06-22 10:05:07 +01:00
Jun-ichi Takimoto
01fb569009 41177: _nm: add support for macOS and OpenBSD 2017-06-01 00:11:41 +09:00
Barton E. Schaefer
5ded0ad967 41159: handle "Include" and "HostName" lines in ~/.ssh/config
Added 2>/dev/null to conceal file access errors.
2017-05-28 11:27:55 -07:00
Marko Myllynen
dd672b79ce 41087: Update kvno completion to MIT krb 1.14 2017-05-22 15:00:41 +01:00
Marko Myllynen
eacb87988e 41086: Update librt completions 2017-05-22 14:58:49 +01:00
Marko Myllynen
d14686860d 41085: Update OpenStack completions 2017-05-22 14:57:21 +01:00
Oliver Kiddle
4228d98c6b unposted: fix syntax on line end 2017-04-26 16:35:29 +02:00
Oliver Kiddle
78afb218b0 40965: fix for missing local declarations of expl 2017-04-26 16:32:10 +02:00
Jun-ichi Takimoto
d78b02218e 41006: _ls: new optiosns and a few fixes 2017-04-26 13:40:03 +09:00
Daniel Hahler
4fa7c6aecc 40943: __git_recent_commits: prefer recent commit objects
Without this "commit to be amended" shows up before "recent commit object
name" with `git commit --fixup`, but the recent commit objects are the
most useful here.
2017-04-23 22:27:38 +02:00
Alexandre Rames
fc1fedda95 40878: additional stgit squash command completeion 2017-03-24 16:42:51 +00:00
Daniel Shahaf
072e75f9b8 40855: _dmidecode: Fix _arguments syntax error. 2017-03-16 10:42:26 +00:00
Oliver Kiddle
7c662bf4d2 40843: update options for ruby 2.4.0p0 2017-03-14 16:15:33 +01:00
Oliver Kiddle
45d910356a 40842: update completions for coreutils and similar utilities, also improving BSD and Solaris support 2017-03-14 16:13:05 +01:00
Daniel Shahaf
e869952200 40818: _git-checkout: When completing local heads, prefer recently-checked-out ones. (after 38592) 2017-03-14 11:14:14 +00:00
Daniel Shahaf
46233c4020 40817: __git_recent_branches: Retrieve less data, but faster.
By replacing the --grep-reflog=needle argument with a ${(M)...:#needle} filter,
we retrieve less data from the reflog, and consequently run (on my test cases)
16% to 40% faster.  The trade-off is that we retrieve less data: instead of
retrieving the 1000 most recent 'checkout' operations, we retrieve the most
recent 1000 operations, which would include fewer than 1000 checkout operations.

Also change [[:xdigit:]] to [0-9a-f] since it's faster, however, the absolute
gain from this is minor compared to the cost of 'git reflog'.
2017-03-14 11:14:13 +00:00
Wieland Hoffmann
5fa422b246 40837: for pgrep completion, add -w on Linux 2017-03-12 22:35:20 +01:00
John Leuenhagen
5da6621ffe unposted (github pull request #15): fix a small typo in ip corrections file 2017-03-11 08:35:20 +00:00
Oliver Kiddle
f862882f82 40824: grep completion handling of option deviations between different systems 2017-03-10 17:38:31 +01:00
Fabian Klotzl
7276d04934 40808: fix typos where (x,y) should have been (x y) in _arguments syntax 2017-03-09 20:29:27 -08:00
Barton E. Schaefer
9f49864322 40801: re-fix completion of mount points with spaces in the name
Turns out that work of art removed by 33963 was necessary after all
2017-03-09 20:29:27 -08:00
Mikael Magnusson
a8345a40b1 40780: Don't use =~ for simple prefix match 2017-03-07 03:20:05 +01:00
Christoffer Aasted
b8b5f18f3f unposted (via github): complete -Dproperty=/path_complete for ant 2017-03-04 09:31:31 +01:00
Ferenc-
76f2539e20 unposted (via github): Add newer C++ standard options to _gcc 2017-03-04 09:23:11 +01:00
Oliver Kiddle
929fa17a2f unposted: complete 'tiled' layout for tmux 2017-03-04 01:13:43 +01:00
Oliver Kiddle
cae214551b unposted: fix completion argument to xz --format 2017-03-04 01:05:51 +01:00
Oliver Kiddle
76a033e2cc 40715: update completion of git options for git 2.12.0 2017-03-04 00:37:04 +01:00
Oliver Kiddle
4443e021f1 update gphoto2 completion for new options up to gphoto2 2.5.11 2017-02-19 02:22:43 +01:00
Fabian Klotzl
e720f45975 40539: typo in MIPS branch of argument selection 2017-02-13 18:09:10 -08:00
Oliver Kiddle
64c67581d2 40512: new entr completion 2017-02-10 13:56:26 +01:00
Daniel Shahaf
e3bc63f00e unposted: _svn: Fix '--show-revs' completion. 2017-02-08 11:55:03 +00:00
Daniel Shahaf
ec1bdab023 40494: _git: Use slashes matchspec for references (as already used for branch names). 2017-02-07 08:43:31 +00:00
Daniel Shahaf
3afd12ae97 40493/0002: _git-checkout: Reorder default completions.
The unprefixed name of a remote branch is used to create a new local
remote-tracking branch; that is presumed to be a rarer operation than
either switching among local branches or reverting to the index version
of a modified file.

Between the remaining two, put modified files before tree-ishes because
there are generally few of the former and many of the latter.
2017-02-07 08:43:31 +00:00
Daniel Shahaf
4da5c23dce 40493/0001: _git-checkout: No functional change.
This makes the next diff smaller.
2017-02-07 08:43:31 +00:00
Peter Stephenson
e641d8e9c1 40434: Jan Matejek: patchutils completion update 2017-02-06 13:47:40 +00:00
Zhiming Wang
b0073410eb 40450, 40451: Swifth language completion.
Also resolve whether this is the openstack "swift" command.
2017-01-29 16:36:24 +00:00
Zach Whaley
ea7b4d4b2d 40200: Updated Perforce completion 2017-01-27 18:05:05 +00:00
Earnestly
51c5c85c23 40355: _mpc: improve playlist completion 2017-01-13 20:56:47 -05:00
Daniel Shahaf
ebcc57210d 40302: New _swaks completion (common options only). 2017-01-10 03:37:34 +00:00
Daniel Shahaf
385cb9b9f0 40264: _man: Complete all sections after '-a'.
Followup to 37634.
2017-01-05 15:58:17 +00:00
Baptiste Daroussin
5a98e318b0 40210: Add support modern FreeBSD and drop support for FreeBSD < 5 2016-12-18 14:55:57 +00:00
Mikael Magnusson
a43e6e2db4 40107: _mount, _fusermount: fix quoting 2016-12-06 21:15:14 +01:00
Oliver Kiddle
f65283e1ad 40055: update git completion for git 2.11.0 2016-12-01 21:50:47 +01:00
Eitan Adler
110ffae9fe 40035: Cosmetic fixes for comments and documentation.
Mostly fixes to doubled words.
2016-11-29 17:13:52 +00:00
Daniel Shahaf
a74294edbe unposted: _git-config: Fix user.email completion to complete only bare email addresses. 2016-11-29 06:41:21 +00:00
Daniel Shahaf
1955cceec7 40011: Make $_comp_priv_prefix only declared when required, and use that to have chgrp offer all groups under doas, ssh, etc as well. 2016-11-28 07:16:39 +00:00
Oliver Kiddle
a7f5db14b3 40020: new cscope completion 2016-11-25 23:05:54 +01:00
Oliver Kiddle
5beb65a0f7 unposted: fix typo (=+ to +=) 2016-11-24 16:20:43 +01:00
Jun-ichi Takimoto
fe2d87767d 40005: call _date_formats from _date
also update both files for darwin etc.
2016-11-24 21:33:15 +09:00
Oliver Kiddle
fe67ccacf1 39974: complete shared libraries for -e and -s options to ssh-add 2016-11-20 23:59:35 +01:00
Daniel Shahaf
df8d219da3 39916 + 39930 + tweak: _git: Complete options and values for -c.
The "$@" in the option-names call is added in order to propagate the new (-S =) arguments.

This bifurcates _git-config() in order to provide completion for

    % git -c <TAB>
    % git -c foo=<TAB>
2016-11-18 02:11:05 +00:00
Daniel Shahaf
297471cf77 39921: __git_recent_branches: Remove erroneous parsing of partial ref names as tags.
In the reflog, partial ref names in the "from" field always represent names of
heads.  (That is not true for the "to" field.)  The parsing of tag names was
added in commit 39102 (317c96b64f) for equivalence
with the then-previous implementation which used `git log $partial_ref_name`.
The equivalence was correct, however, the then-previous implementation was not,
since it would consider $partial_ref_name as a refs/tags/ name if a refs/heads/
name did not exist.
2016-11-17 15:32:05 +00:00
Daniel Shahaf
d7b57cc957 39922: __git_recent_branches: Fix an 'assertion' failure when two branches (refs) point to the same commit. 2016-11-17 15:32:04 +00:00
Oliver Kiddle
370b278565 39890: typo corrections in completion functions 2016-11-09 16:55:14 +01:00
Oliver Kiddle
496626ddb8 39888: update tmux completion for tmux 2.3 2016-11-09 16:55:14 +01:00
Daniel Shahaf
d8786da0cd 39853: _subversion: Accept long options in the '--foo=bar' syntax. 2016-11-09 04:06:23 +00:00
Jun-ichi Takimoto
dfb2f3f3d2 39857: add support for darwin, with improvements on linux etc. 2016-11-08 21:49:33 +09:00
Peter Stephenson
5411cdf378 39856: module completion improvements.
Follow symbolic links when finding.

Use _multi_parts for paths when completing modules.
2016-11-07 14:49:00 +00:00
Daniel Shahaf
bb28726fa5 39840: _cpio: Declare variable's type correctly. 2016-11-07 05:21:19 +00:00
Frank Terbeck
06bd2b1c85 39849: _tmux: Remove set-remain-on exit
This was removed recently, since it was superseded by hooks.
2016-11-07 00:04:07 +01:00
Frank Terbeck
c2649189cb 39848: _tmux: Update options to latest tmux 2016-11-06 23:18:28 +01:00
Oliver Kiddle
6ea4e708ba 39818: _awk: add nawk to the list of commands 2016-11-04 10:02:33 +09:00
Daniel Hahler
d90775fc29 39822: _git: remove "-A '-*'" with _arguments for some commands
With e.g. `git rebase origin/master` you can have options like
`--no-autosquash` after the argument.

I have tried the commands where this patch removes `-A`.
Commands like `git fetch-pack` that do not support options after
arguments are left unchanged.
2016-11-03 16:41:42 +01:00
Jun-ichi Takimoto
4eed68e0bf 39731: _awk: add support for gawk ver.3 and 4 2016-11-01 19:21:05 +09:00
Daniel Shahaf
dd8b756610 _git-cherry-pick: Complete argv[2] et seq. 2016-10-29 03:03:28 +00:00
Daniel Shahaf
85ffb55e99 39739: Complete negative integers for -n/-c in the GNU variant. (after 39479) 2016-10-27 15:59:43 +00:00
Daniel Shahaf
ecc0a5ece2 39654: (based on patch by Baptiste Daroussin) Better support bmake, FreeBSD's default make(1) implementation.
Don't pass gmake options to bmake.

Add bmake-speciic codepath for completing targets and parsing the makefile.
2016-10-18 01:39:45 +00:00
Oliver Kiddle
87965e5e02 39624: remove space before compdef that prevents yafc completion function being used plus other tweaks 2016-10-14 11:39:14 +02:00
Matthew Martin
c40226022a 39533: add the new -L option, sort options and add some exclusions 2016-10-13 09:56:57 +02:00
Daniel Shahaf
7ad0001183 39479 + 39481 minus _path_files hunk (see 39489): Completion: audit 'compset -P' calls to use shortest match where applicable, plus random drive-by tweaks.
Found by grepping for patterns that can match needles of various lengths:

    :grep 'compset -[PS].*[\#^*()\|<>?~\]' Completion/
2016-10-07 13:56:31 +00:00
Oliver Kiddle
13d0b278be 39514: pass on --git-dir when calling git to get completion matches 2016-09-30 09:57:50 +02:00
Oliver Kiddle
573895dd60 39513: new doas completion 2016-09-30 09:57:33 +02:00
Marko Myllynen
89e319f345 39453: new openstack completions 2016-09-27 21:37:32 +02:00
Daniel Shahaf
7ecc3f8b4e 39410: Fix unintentional history modifiers. 2016-09-22 21:02:45 +00:00
Adam Gibbins
4e51079f0b unposted: _gpg: Correct typo
Received via github (pull request #9).
2016-09-22 11:20:41 +00:00
Daniel Shahaf
d523ddaba2 unposted: _postfix: Correct quoting in _call_program invocations.
Fixes completion when the command name ('postconf') or the argument to
the -c option ('/etc/postfix') are quoted on the command line, as in

    % postconf -c '/etc/postfix' ... <TAB>
2016-09-16 04:02:12 +00:00
Daniel Shahaf
6914fb298d 39312 (tweaked): _postfix (postconf): Complete only applicable parameters for -X and -#.
Unposted tweak: change the tag and description in the _describe call.
2016-09-16 03:58:02 +00:00
Daniel Shahaf
00210c09db 39311: _tmux-capture-pane: Tweak specifications of -S/-E and description strings. 2016-09-16 03:46:18 +00:00
Oliver Kiddle
b870ff85a0 39333: include name of command used to gain priviliges in context for command and gain-priviliges styles 2016-09-16 00:05:10 +02:00
Marko Myllynen
be4c072cf5 unposted: _libvirt: Add another noglob. (Follow-up to 39199) 2016-09-14 07:58:43 +00:00
Daniel Shahaf
420cde9158 39199: _libvirt: Support libvirt URLs that contain a literal question mark under noglob.
E.g.,

    % noglob virsh -c qemu:///system? start <TAB>

Conflicts with 39261 resolved.
2016-09-14 07:10:04 +00:00
Daniel Shahaf
ec0c788709 unposted: _git: Permit multiple -c options. 2016-09-14 05:27:26 +00:00
Oliver Kiddle
ca53a3a464 39307: update options up to vim 8 2016-09-13 17:47:35 +02:00
Oliver Kiddle
8e3f6e8919 39287: add .tif as a valid extension for TIFF files 2016-09-12 23:22:34 +02:00
Oliver Kiddle
8011fe8a58 39261 (tweaked cf. Daniel: 39275): don't unconditionally elevate privileges with sudo in completion functions
A new gain-privileges style enables it and a _comp_priv_prefix array
added for tracking how to match privileges for the current command
2016-09-11 13:49:22 +02:00
Danek Duvall
999e1ac64e 39194: _man (Solaris): Ignore man-index. Support multiple sections in the -s flag's argument. 2016-09-07 23:15:46 +00:00
Oliver Kiddle
7d98ac7cd5 unposted: fix to use ;| style fall-throughs in the case statement 2016-09-07 23:33:42 +02:00
Matthew Martin
c001d1f2a2 39221: update rm completion for BSD 2016-09-07 14:22:28 +01:00
Daniel Shahaf
30bb9fe7b7 39174: _ssh: Fix completion of ProxyCommand option.
The incumbent code would discard the first word of the value of the
ProxyCommand option.  Stop doing so.  With that removed the remaining
two lines were equivalent to _cmdstring, so just call it directly.
2016-09-06 23:49:07 +00:00
Daniel Shahaf
831a336c49 39171: _libvirt: Apply $opt_args-unescaping.
This causes the value of $conn_opt in the code not to have a backslash
in front of the colon.
2016-09-06 23:41:00 +00:00
Daniel Shahaf
9a722df3a6 unposted: _libvirt: Escape $words elements to avoid their interpretation as a pattern against $_cache_virsh_cmds. 2016-09-06 14:54:05 +00:00
Marko Myllynen
3768fcc28a unposted: Fix leakage of $word (after 39179). 2016-09-06 09:10:58 +00:00
Marko Myllynen
33a8a6f86c 39179 (plus tweak): More _libvirt (virsh) completion tweaks 2016-09-06 00:13:42 +00:00
Marko Myllynen
5b4cbcc842 39158: cleanup following review comments of _libvirt function 2016-09-03 12:41:22 +02:00
Oliver Kiddle
48c20d74a7 39165: update options to correspond to latest versions of software in various functions 2016-09-03 12:31:22 +02:00
Daniel Shahaf
972423629f unposted: _postfix_queue_id: Unbreak completion of short queue ids of held/active messages, broken in 39108. 2016-09-02 19:20:56 +00:00
Marko Myllynen
4547897976 39118: (almost) complete virsh completions 2016-08-31 16:34:41 +02:00
Daniel Shahaf
c2592b4f72 39122: __git_recent_branches: Silence warning on an edge case.
(The warning was correct; there is no functional change, though.)
2016-08-31 02:23:39 +00:00
Daniel Shahaf
4ce0b1c098 39108 (tweaked): _postfix: Support $enable_long_queue_ids.
Note that this not only adds a second compadd invocation but also adds a space
to the first compadd invocation, to prevent the start of a new-style queue id
from matching as an old-style queue id.
2016-08-30 01:58:59 +00:00
Daniel Shahaf
d916ba1a00 39110: _postfix: Complete 'postconf'. 2016-08-30 01:57:55 +00:00
Daniel Shahaf
823bb6fe85 39107: _postfix: Complete 'postqueue'. Also minor tweaks to 'postsuper'. 2016-08-30 01:57:55 +00:00
Daniel Shahaf
1712c62633 39109: _postfix: Use mailq to obtain queue id's.
'mailq' is usually in */bin (as opposed to */sbin) and so is more likely
to be in $PATH.
2016-08-30 01:57:54 +00:00
Daniel Shahaf
aa041f7a5a 39070: umount: Complete /f/b<TAB> → /foo/bar (for absolute path arguments only, for now) 2016-08-27 18:12:01 +00:00
Daniel Shahaf
317c96b64f 39102: __git_recent_branches: Optimise.
This improves performance from 0.6s to 0.04s (+93%) on one of Daniel Hahler's repositories.
2016-08-25 18:12:41 +00:00
Daniel Shahaf
4d995160e4 39094: _git-config: When an option is unknown, complete its value to the set value. 2016-08-24 21:15:00 +00:00
Oliver Kiddle
18aa25c75d unposted (c.f. Mikael: 39078): fix for git blame terms 2016-08-22 11:54:04 +02:00
Daniel Shahaf
c8b228b1ea unposted: _git-config: sendemail.smtpserver: Correct tags. 2016-08-22 03:38:12 +00:00
Daniel Shahaf
1c6d3e3f04 39074: _ip-neighbour: Fix typo in 'lladdr'. 2016-08-20 03:01:46 +00:00
Oliver Kiddle
31dc8b52b5 39072: minor tweaks 2016-08-19 19:11:07 +02:00
Oliver Kiddle
4200466217 39071: update completion functions for changes in Solaris 11.3 2016-08-19 19:06:37 +02:00
Oliver Kiddle
580698bc71 39067: update options to correspond to latest versions of software in various functions 2016-08-19 18:00:07 +02:00
Daniel Hahler
ef64b6a929 39040: Completion/…/_git: fix missing backslashes in 39036 2016-08-15 12:06:58 +02:00
Oliver Kiddle
30aafc0b68 39036: update git completion for new options up to git 2.9.2 2016-08-13 01:37:57 +02:00
Daniel Shahaf
dfae92c483 38996: _man: Support _correct_word.
Since compfiles is undocumented, avoid its use altogether, replacing it by
a construct that blackbox analysis suggests to be equivalent.

The compfiles call being removed effected the following change (when
completing «man -S 8:1 getc<TAB>»):

    BEFORE THE CALL:
        typeset -a pages=( /home/daniel/prefix/zsh/share/man/man1/
                           /usr/share/man/man8/
                           /usr/share/man/man1/ )
    AFTER THE CALL:
        typeset -a pages=( '/home/daniel/prefix/zsh/share/man/man1/getc*(8|1)*'
                           '/usr/share/man/man8/getc*(8|1)*'
                           '/usr/share/man/man1/getc*(8|1)*' )

This patch effects the same transformation (modulo doubling the final slash).

Any -M parameter will be passed to compadd.
2016-08-05 12:37:30 +00:00
Daniel Shahaf
71f1653020 38994: _man: Fix two bugs when completing manpage filenames in separate-sections mode.
- No longer glob all files (the (-g)-less _path_files was virtually always called,
  by at least one of the multiple calls to _man_pages).

- Actually separate sections (by propagating $expl).
2016-08-05 12:37:29 +00:00
Daniel Shahaf
a5a9fc7a5f 38993: _man: Drop (b): it's incorrect when $sect contains '|'. 2016-08-05 12:37:27 +00:00
Oliver Kiddle
81f229a037 38989: minor completion updates for FreeBSD 2016-08-03 17:29:41 +02:00
Oliver Kiddle
7d282fa588 38986: new gsettings completion 2016-08-03 17:27:25 +02:00
Daniel Shahaf
f70615d878 38981: _man: Followup to 37634: unbreak OpenBSD 'man 3p' and Linux $MANSECT.
The breakage was reported in 38516.
2016-08-01 21:15:47 +00:00
Daniel Shahaf
faa163cd5f 38964: _git-config: Complete option names present in the config file.
This patch lets
.
    git config x.y.z value
    git config <TAB>
.
complete 'x.y.z', even if x.y.z isn't hardcoded into _git-config.
2016-08-01 08:01:27 +00:00
Daniel Shahaf
b056d8c909 38963: _git-config: Run gettable-options earlier and in all codepaths.
No change to completions; this is preparation for the next commit.
2016-08-01 08:01:26 +00:00
Daniel Shahaf
0782e0a0a6 38961: _git-config: No functional change: rename $git_options_static to $git_options in preparation for the after-next commit. 2016-08-01 08:01:24 +00:00
Daniel Shahaf
9ef02744dd unposted: _git: Clean up superfluous and missing backslashes. 2016-07-31 16:21:33 +00:00
Daniel Shahaf
625fe0fce8 38966: _svnadmin: Complete positional arguments for 'hotcopy', 'setlog', 'setrevprop', 'delrevprop'. 2016-07-31 16:21:31 +00:00
Daniel Shahaf
eaaac9c89f 38965: _svnadmin: Complete 'freeze' as a precommand. 2016-07-31 16:21:29 +00:00
Daniel Shahaf
774f654e36 38962: _git-config: Document more line noise. 2016-07-31 16:21:28 +00:00
Daniel Shahaf
0389fc3a7f unposted: _svnadmin: Tweak state description. 2016-07-29 17:01:22 +00:00
Daniel Shahaf
8e06a6a28a unposted (after 38939): _git-rebase: Unbreak. 2016-07-27 14:04:40 +00:00
Daniel Shahaf
d5e7987408 38914 (tweaked): _pkg-config: Add options, complete *.pc files for positional arguments. 2016-07-27 14:04:15 +00:00
Oliver Kiddle
fd144877f5 38943: update texinfo options and improve completion of Info files, nodes and menu items 2016-07-25 00:12:43 +02:00
Oliver Kiddle
4f5cc54560 38939: add missing git options
In particular those for GPG signing a push
2016-07-25 00:06:57 +02:00
Matthew Martin
dfd8b1da4f 38935: update tcpdump completion for Free and Open BSD 2016-07-24 22:14:27 +02:00
Daniel Shahaf
3afaebd913 unposted: _git-grep: Stop leaking the parameter $i. 2016-07-23 18:02:29 +00:00
Daniel Shahaf
8e69dd54b7 38913: _pkg-config: Complete variables for --variable. 2016-07-23 18:02:26 +00:00
Oliver Kiddle
82119d8d17 38904: fix return status in _normal and functions erroneously using it for default completion 2016-07-21 17:49:13 +02:00
Marko Myllynen
f117edfabe 38894: completion for virt-admin and libvirt client/server IDs/names 2016-07-21 17:38:48 +02:00
Daniel Shahaf
db9f0d3b3e unposted (cf. users/21737):: _git-subtree: Record technical debt in comment. 2016-07-17 14:55:35 +00:00
Daniel Shahaf
d09cb7e979 users/21750 (after users/21551): _git-subtree: Tweak -m,-P completions 2016-07-17 14:53:12 +00:00
Oliver Kiddle
9991707b6b 38868: update completions for new options on FreeBSD 2016-07-17 12:37:29 +02:00
Oliver Kiddle
52f46cca75 38867: update strace completion
Also factor out completion for system calls and new functions for
truss and ltrace.
2016-07-17 12:32:02 +02:00
Marko Myllynen
ccb45b3201 38837 (tweaked c.f. 38826): new virsh completion 2016-07-17 12:24:08 +02:00
Eric Cook
ac813cfade 38833: separate iostat completion from _sysstat 2016-07-13 21:07:12 -04:00
Oliver Kiddle
304aa25184 38812: a few new completions and update some command options 2016-07-08 23:10:41 +02:00
Jordan Klassen
92d516cfa7 users/21551 (tweaked per users/21560): new git subtree completion 2016-07-05 23:29:40 +02:00
Daniel Shahaf
3a034838b4 38760: _git-config: Stop trying to execute the empty string command name upon completing values for an unknown option.
For example:

% git config x.y.z <TAB>
+_git-config:834> case x.y.z (alias.*)
+_git-config:834> case x.y.z (remotes.*)
+_git-config:860> local z=$'\C-@'
+_git-config:861> declare -a parts
+_git-config:862> parts=( '' )
+_git-config:863> ((  1 < 2  ))
+_git-config:863> [[ x.y.z == [^.]##.*.[^.]## ]]
+_git-config:864> parts=( '' )
+_git-config:866> ((  1 > 0  ))
+_git-config:867> case  (-\>*)
+_git-config:867> case  (*)
+_git-config:1197> declare -a action
+_git-config:1198> _description values expl ''
+_git-config:1199> eval 'action=()'
+(eval):1> action=( )
+_git-config:1200> '' -J values
_git-config:1200: permission denied:
+_git-config:1206> return ret
2016-06-27 00:21:02 +00:00
Daniel Shahaf
3bd8abc40b unposted: _git-config: Document some line noise. 2016-06-25 16:33:33 +00:00
Daniel Shahaf
59bf331d27 unposted: _git-config: Fix syntax error in 'tag.sort' completion. 2016-06-25 16:32:34 +00:00
Oliver Kiddle
139a4dbe07 38735: support verbose style to allow clearer but less compact descriptions for time specifiers 2016-06-22 01:30:22 +02:00
Oliver Kiddle
bce43df70d 38703: support su options on macOS 2016-06-18 00:08:16 +02:00
Eric Cook
bc1acf5b0e 38676, 38680: Completion for pidof and localedef. 2016-06-14 21:26:58 -04:00
Doug Kearns
2162c1a2d2 unposted: remove unused parameter 2016-06-14 22:00:29 +10:00
Daniel Shahaf
aa160fc8e9 38651: _git: Escape parameter arguments to _call_program.
Fixes 'git cat-file blob HEAD^:<TAB>' and a few other cases.
2016-06-13 08:53:17 +00:00
Daniel Shahaf
ec7088296b 38665: _git: config option completion: Quote properly. 2016-06-13 08:53:14 +00:00
Oliver Kiddle
cf01ad96d4 38639: fix username completion after -, update options and get user shell with getent 2016-06-09 22:51:18 +02:00
Daniel Shahaf
0516736eae 38624: _git: Optimize the last commit's __git_recent_branches__names as suggested by Matthew. 2016-06-07 22:53:51 +00:00
Daniel Shahaf
6e834587eb 38592 (plus tweak): _git: New recent branches completion, unused. (Joint with Nils Luxton) 2016-06-07 22:53:46 +00:00
Daniel Shahaf
713eaa055d 38576: _git: Also detect _git-${thirdparty} functions in $fpath that are symlinks. 2016-06-03 02:21:54 +00:00
Marko Myllynen
023e7e463f 38567, 38440: Marko Myllynen: completion for locale(1) and iconvconfig(8) 2016-06-02 22:03:23 -04:00
Frank Terbeck
795b285ce8 38424: Use _baudrates helper instead of _baudrate 2016-05-09 03:40:31 +02:00
Russell Currey
058d957ce5 38393: _git: Fix typo in completion of '--minimal'
Signed-off-by: Russell Currey <ruscur@russell.cc>
2016-05-03 11:26:54 +00:00
Frank Terbeck
493c7e0879 38388: Refactor baud rate completion
This adds a new helper function _baudrate and uses it in place of
private solutions in various existing completions.
2016-05-02 00:11:06 +02:00
Frank Terbeck
857153c507 38381: Add completion for picocom utility 2016-05-01 04:08:19 +02:00
Daniel Shahaf
276a690a2e _git: Complete fetchy refspecs correctly. 2016-05-01 01:52:29 +00:00
Daniel Shahaf
fe21e49a6d _git: Bifurcate __git_ref_specs.
No functional change, except for completion of 'git bundle' and 'git config
branch.*.merge'; this is a required groundwork for future patches.
2016-05-01 01:52:29 +00:00
Daniel Shahaf
c57d8dfcaa _git: Fix an apparent typo in __git_heads().
I couldn't reproduce different behaviour with and without this patch, although
the called command's output differs.
2016-05-01 01:52:28 +00:00
Daniel Shahaf
3e26848ef4 _git: Offer alternatives properly. 2016-05-01 01:52:28 +00:00
Daniel Shahaf
2979122d2d _git-bundle: Complete required file argument to 'git bundle' correctly. 2016-05-01 01:52:28 +00:00
Daniel Shahaf
442d702bbc 38316: _git-rebase: Complete any committish for the second argument 2016-04-23 21:28:21 +00:00
Christian Neukirchen
fbe2763411 37847: update du arguments up to GNU du 8.25 2016-04-14 15:52:08 +02:00
Daniel Shahaf
4df62e32fc 38255: _git: Fix argument pastedness.
Found by searching for /-\w\>.*:/.

This covers short options only, from the top of file through _git-tag().
2016-04-09 03:35:14 +00:00
Daniel Shahaf
9f70404714 38182: _git: Invoke reflog completion from the 'complete commit objects' codepath.
The reflog will only be used if the user has typed as "@" by hand.
2016-03-21 16:12:15 +00:00
Daniel Shahaf
ce4c9eafc4 38181: _git reflog: Complete '@{N}' instead of 'HEAD@{N}'.
The «HEAD@{...}» syntax is no longer completed, since it's not easily possible
to support both syntaxes (workers/34768).
2016-03-21 16:12:13 +00:00
Daniel Shahaf
67136df0bf 38180: _git: Improve reflog completion.
Currently, only used by «git reflog delete <TAB>».
2016-03-21 16:12:10 +00:00
Mikael Magnusson
ee2f0dbed1 38187: _adb: Just check current dir instead of recursively
Thanks to LambdaComplex in IRC for help with troubleshooting.
2016-03-19 19:08:11 +01:00
Mikael Magnusson
7ad041c9e9 38186: _adb: fix remote file completion + various fixes 2016-03-19 13:41:27 +01:00
Mikael Magnusson
bc0c3caf60 38179: _adb: Fix completion by mostly reverting 35531 2016-03-18 17:23:37 +01:00
Frank Terbeck
5deb57714f 38161: _tmux: Use a colon to terminate options to _arguments itself
In users/21384 it was reported that

  % tmux new-session -<tab>

...does not offer -A as a candidate for completion even though the
option is listed in the involved helper function _tmux-new-session().

-A is actually an option the _arguments function uses itself. The
documentation states:

    To avoid ambiguity, all options to _arguments itself may
    be separated from the spec forms by a single colon.

This commit changes each _arguments call to include the optional
colon, so problems like this are prevented now and hopefully in
the future.
2016-03-16 00:38:37 +01:00
m0viefreak
a1f45b3346 38151: _git: fix tag name of remote branches 2016-03-15 00:07:18 +00:00
m0viefreak
666a7f5845 38148: _git: reflog: complete references next to commands
'git reflog show' is the default subcommand, so

  git reflog <tab>

should complete subcommands and references.
2016-03-15 00:07:15 +00:00
Daniel Shahaf
527badc237 38129: _git: Fix __git_ignore_line's treatment of shell and pattern metacaracters.
Builds upon a patch by Jun T.

Also upgrade/fix __git_pattern_escape.
2016-03-11 22:19:04 +00:00
Daniel Shahaf
98fcdb0861 38128: _git: Fix completion of diffs against the index when treeish isn't shell-safe
This affects 'git diff --cached -- <TAB>' and 'git reset $treeish <TAB>'.
2016-03-10 23:18:36 +00:00
Daniel Shahaf
be41c522f2 38123 (after 38074): _git reset $treeish: complete only staged files 2016-03-10 23:18:15 +00:00
Daniel Shahaf
33bd9136d6 38120: _git: Document the internal helper function __git_ignore_line. 2016-03-09 14:08:49 +00:00
Jun-ichi Takimoto
983060d5d1 38074: _git reset HEAD: complete only staged files 2016-03-08 21:21:44 +09:00
Eric Cook
40b3d2a1f6 37975: Completion/Unix/Command/_php: remove _arguments' -A option 2016-02-15 22:13:35 -05:00
Barton E. Schaefer
e3188ff0e8 37898: complete gcc linker options 2016-02-14 13:11:20 -08:00
Barton E. Schaefer
485cbbb6cc 37972: Redirect stderr to /dev/null in cases where ${~param} might generate errors 2016-02-14 13:10:06 -08:00
Eric Cook
9cc6ebe7a2 37913: add additional completers and _zpool improvement 2016-02-11 22:53:16 -05:00
Daniel Shahaf
8a59aed696 37924: Completion: _git: Complete files for 'check-ignore'
Also, don't leak the parameter 'ret'; the leak was theoretical because
the caller immediately wrote to that parameter.
2016-02-09 03:41:46 +00:00
Daniel Shahaf
a090acab63 unposted: _init_d: Report failure to caller. 2016-01-29 09:14:49 +00:00
Matthew Martin
3c9185272d 37725: Completion: _init_d: add OpenBSD bits 2016-01-23 23:50:10 +00:00
Daniel Shahaf
295133d741 37703: Completion: git: Also complete sendmail commands for send-email's configuration. (after 37666) 2016-01-23 23:50:04 +00:00
Daniel Shahaf
3eb4d9c2e2 37666: Completion: git: 'send-email --smtp-server=' takes absolute path to sendmail. 2016-01-20 07:49:30 +00:00
Daniel Shahaf
c6fc6f80cd 37665: Completion: New helper _absolute_command_paths. 2016-01-20 07:49:29 +00:00
Daniel Shahaf
896f43c72b 37634: _man: Support subsection names such as '3p'. 2016-01-18 02:40:02 +00:00
Daniel Shahaf
35b8e8794f 37634: _man: Disentangle a local variable that had two distinct semantics. No functional change 2016-01-18 02:40:01 +00:00
Daniel Shahaf
c380c9394a 37663: New bibtex completion (very minimal). 2016-01-18 02:39:52 +00:00
Oliver Kiddle
3ca4ffa972 users/21114: new dig completion 2015-12-31 12:47:47 +01:00
Matthew Martin
3272bdce98 37383: add completion type for object files 2015-12-11 11:51:09 +01:00
Daniel Shahaf
e14540ac02 37150: _git: Autocomplete .. for commit ranges
This patch makes three changes:

- Enable 'git diff o/m<TAB>' to complete to 'origin/master..' with the
  ".." being autoremovable.

  This is implemented by the first hunk.  That hunk is a functional
  subset of Oliver's users/20705, however, the latter hasn't been
  committed.

- Make typing "^" remove the "..", in light of the syntax "foo^..bar".

- Make typing "." _not_ remove the ".." but simply append it, since
  "foo...bar" is a valid and useful syntax.
2015-12-05 10:15:40 +00:00
Daniel Shahaf
6a3de994af 36957: _git: Apply matchspecs to filename completion such as 'git log f/b<TAB>' → 'foo/bar.txt's
This patch makes 'git log S/e<TAB>' expand to Src/exec.c.  The incumbent
code would run 'git ls-tree S/' and find no matches.
2015-12-05 10:15:39 +00:00
Daniel Shahaf
07a300365f unposted: Remove uneeded executability bits. 2015-12-03 23:49:14 +00:00
Daniel Shahaf
06a24d3747 37163: Remove curl completion 2015-11-27 07:27:09 +00:00
Matthew Martin
d590646673 37100: update for sysctl completion 2015-11-26 09:37:50 +00:00
Daniel Shahaf
c563f1ba83 37164: _tmux: Complete external commands 2015-11-20 03:39:52 +00:00
Daniel Shahaf
d554f31bcb 37149: _git: Complete 'bisect/bad' ref 2015-11-20 03:39:34 +00:00
Daniel Shahaf
afc4d41652 37129: _git: Complete 'commit -p' 2015-11-17 23:31:26 +00:00
Barton E. Schaefer
9ce000db22 37115: update for changes in ${(P)...} evaluation. 2015-11-14 21:22:17 -08:00
Daniel Shahaf
6198f7ffba 37031: _git-merge: Exclude ancestors of HEAD from recent commit completion
As done for _git-cherry-pick in a428c6b62c (36328 + 36340).
2015-11-13 20:17:51 +00:00
Peter Stephenson
20153c573e 37062: tentative mechanism for git commit descriptions.
Mechanism for forcing completion system into verbose mode is subject
to change.
2015-11-04 17:37:17 +00:00
Daniel Hahler
9642aeeaeb 35303: remove Completion/Unix/Command/_systemd
systemd's upstream version seems to be maintained well, and e.g. on Arch
Linux the version from Zsh gets removed in favour of it.
2015-11-02 02:58:09 +01:00
Oliver Kiddle
fa59375e36 37029: update options and new tr completion 2015-10-31 19:14:36 +01:00
Barton E. Schaefer
682e779a21 unposted (cf. 36998,36999): undo 36956 / restore 34451 with expanded comment about the flip-flopping 2015-10-31 09:54:04 -07:00
Daniel Shahaf
0e510f0c35 37032: Temporarily revert 36959. 2015-10-31 13:03:54 +00:00
Jun-ichi Takimoto
9640e9f497 36983 + 36990: new completions for head and tail 2015-10-29 01:03:18 +09:00
Daniel Shahaf
8b51584246 36962: _git: Fix completion of RHS of refspecs.
Before this patch, 'git push $remote :<TAB>' completed branch names (as though
by `git branch -a`), instead of completing remote branch names sans the
${remote}/ prefix.
2015-10-25 18:52:29 +00:00
Daniel Shahaf
cc19bb96b9 36964: _git: Complete remotes branch names with slashes correctly.
For example, 'git push remote HEAD:foo/bar' creates such branches.
2015-10-25 18:52:13 +00:00
Daniel Shahaf
b4f7482e44 36960: _git: Enable slash matcher for more branch and tag completions, include 'git branch <TAB>' and 'git tag <TAB>'. 2015-10-25 18:47:35 +00:00
Daniel Shahaf
f890d442e2 36959: _git: Offer @~$n as completion of recent commits.
Suggested-by: Oliver Kiddle (users/20705)
2015-10-25 18:47:26 +00:00
Daniel Shahaf
17af119089 36958: _git: Fix recent commit completion descriptions.
The uniquifiers 'HEAD~$n' were incorrect when a recent commit was the second
parent of a merge commit.  Detect that case and print something correct
instead.
2015-10-25 18:47:11 +00:00
Daniel Shahaf
f8b2c13c97 unposted: _git: Fix 'commit object name' completion messages.
Offer the "this alternative is still valid, but I don't know to offer
completions for it" for hash completion but not for recent object completion;
the former is protected by a _guard and the latter incorrectly appeared also in
cases such as 'git log a/b<TAB>' which were not the start of a gitrevisions(7)
expression.
2015-10-25 18:39:34 +00:00
Daniel Shahaf
e3c68450d7 unposted: _beep completion: Actually hook it for the 'beep' command. 2015-10-24 20:42:31 +00:00
Daniel Shahaf
98875bcb05 36900: _git: stash names completion: Display log messages
The "$@" argument to compadd is removed because (I think) it contains a -J,
which conflicts with the -V.

Joint with Daniel Hahler.
2015-10-20 14:30:10 +00:00
Eric Cook
c6028f7387 36642: complete jail/unjail zfs subcommands on freebsd 2015-10-19 16:07:43 +02:00
Eric Cook
878d1272fd 36646: handle solaris/openzfs differences; only use -t share on solaris 2015-10-19 16:07:32 +02:00
Matthew Martin
509c822b62 36869: use permissions to limit files completed for ssh identity files 2015-10-19 11:23:57 +02:00
Peter Stephenson
21b6852b15 36864: new objdump completion and tweak to nm completion 2015-10-15 11:24:21 +01:00
Jun-ichi Takimoto
e3bc9aa228 36732: _zsh now complets script args; also support -s, -b 2015-10-02 22:11:43 +09:00
Peter Stephenson
9064483b6c 36722: allow git range to complete after ^.
Take account of backslash quoting.
2015-10-01 09:47:15 +01:00
Matthew Martin
36abe20c0f 36653: OpenBSD's usermod has no -a flag 2015-09-27 23:41:45 +00:00
Jun-ichi Takimoto
0cfa2dcfc4 36631: separate _zsh from _sh
Do all the completion for zsh by _arguments
2015-09-28 00:09:03 +09:00
Daniel Shahaf
92584634d3 unposted (see 36633): _hg: Enable --option=value syntax and disable '-xy Xarg Yarg' syntax
This simply removes the '-w' argument to _arguments and changes
{-x+,--foo} to {-x+,--foo=} throughout the file.
2015-09-26 00:21:18 +00:00
Christoph Mathys
61fa5f66f0 36626: _hg: completion for 'hg bookmarks' 2015-09-25 23:20:09 +00:00
Daniel Shahaf
4c935b9f85 unposted: _hg: Declare $expl as an array 2015-09-24 16:15:18 +00:00
Christoph Mathys
1aafc028b3 36613: _hg: extend completion for hg push to support branch and bookmark 2015-09-24 16:12:57 +00:00
Frank Terbeck
5476e011f1 36576: _tmux: Fix tmux homepage URI 2015-09-21 14:56:50 +02:00
Frank Terbeck
d4a640775f 36575: _tmux: ‘lock-server’ option is gone in tmux.git 2015-09-21 14:56:50 +02:00
Jun-ichi Takimoto
9b35a04f98 36556: complete two or more options for zsh 2015-09-21 21:38:41 +09:00
Jun-ichi Takimoto
05ec830c94 36574: new completion for the lldb debbuger 2015-09-21 21:08:29 +09:00
Axel Beckert
9cb8c3f4b5 36523: Completion/…/_gphoto2: Replace --delete-files with --delete-file 2015-09-13 02:26:02 +02:00
James Clarke
bddd99d98a 36441: _git: Fixed typo in --author-date-order description 2015-09-07 21:11:10 +00:00
Daniel Shahaf
6e825e7b25 36353: _git: Unbreak after previous. 2015-09-01 04:37:39 +00:00
Mateusz Karbowy
a428c6b62c 36328 + 36340: _git-cherry-pick: Complete other branches only 2015-08-30 22:51:15 +00:00
Daniel Shahaf
d2e920d5d0 36306: _subversion: Complete --show-item values 2015-08-28 23:36:25 +00:00
Daniel Shahaf
d6ca3bc4b9 unposted: _subversion: Avoid SHORT_LOOPS 2015-08-27 23:15:03 +00:00
Daniel Shahaf
63b1dcd284 36304: _git-cat-file: Fix regression in 36237
This broke 'git cat-file blob origin:Etc/<TAB>'.
2015-08-27 23:14:57 +00:00
Daniel Shahaf
fdf48d84fa 36277: _git: Updated for git-clone 2.4.5. 2015-08-24 11:23:44 +00:00
Daniel Shahaf
a69994ede1 36247: __git_objects: Complete HEAD:./foo correctly in worktree subdir 2015-08-19 23:29:50 +00:00
Daniel Shahaf
663fa4092f 36237: __git_objects: Complete HEAD:foo correctly in worktree subdir 2015-08-19 23:29:49 +00:00
Daniel Shahaf
a4c41fff12 36236: _git-log: Complete multiple revspecs
e.g., git log origin/master origin/foo origin/bar
2015-08-19 23:28:12 +00:00
Daniel Shahaf
d70e7149df 36236: _git-log: complete 'git rm'd files 2015-08-19 23:28:11 +00:00
Oliver Kiddle
ea5d100643 36148: _git-log: Complete flags after positional argument 2015-08-19 23:27:40 +00:00
Daniel Shahaf
0c5f6e911b 36208: _subversion: Complete a few more option switches
The while (( idx )) form should guarantee that these switches are only
added if the 'svn' binary supports them.  (One of these switches isn't
present in svn 1.8 or earlier.)
2015-08-19 01:56:53 +00:00
Mikael Magnusson
fb063f9649 36172: _imagemagick: Use $formats a bit more correctly 2015-08-17 22:50:04 +02:00
Mikael Magnusson
a62e968224 36183: _ssh: update to 7.0 2015-08-17 01:00:18 +02:00
Mikael Magnusson
0204f5e17f 36091: _ncftp: search XDG_DATA_HOME for bookmarks saved by lftp 2015-08-15 00:43:48 +02:00
Mikael Magnusson
019dbbf166 Revert 36118
This works already except if list-dirs-first is set, and that
is being fixed separately.
2015-08-15 00:15:22 +02:00
Daniel Hahler
5f8a18a561 unposted: fix minor typos 2015-08-14 02:35:32 +02:00
Daniel Shahaf
422dae7b1c unposted: _subversion: Complete property names for propdel
Previously, filenames would be completed.
2015-08-13 23:47:59 +00:00
Wieland Hoffmann
8e0b5e0e00 Wieland Hoffmann: 36123: protect against word splitting in __git_is_committish_range 2015-08-13 15:53:12 +02:00
Oliver Kiddle
cf77e28a3f 36127: assorted minor completion function changes 2015-08-12 18:06:03 +02:00
Mikael Magnusson
aa722536ea 36120: _sort: Fix syntax error 2015-08-12 17:54:55 +02:00
Mikael Magnusson
6472541678 36118: _imagemagick: complete all files if image files didn't match 2015-08-12 17:54:42 +02:00
Mikael Magnusson
f6c3a2f86a 36117: _wget: complete headers for --header and add --no-use-server-timestamps 2015-08-12 17:54:24 +02:00
Mikael Magnusson
8815500f95 36116: _git: various fixes
Add = to git checkout --conflict= completion
fix transposed [-
git push remote argument is not optional
can use shorter syntax for a check
2015-08-12 17:54:07 +02:00
Frank Terbeck
8d849b9caf 36069: _tmux: Fix \ooo display in completion list 2015-08-10 16:50:55 +02:00
Frank Terbeck
5d10851b73 36070: _tmux: Update bell-action and prefix options 2015-08-10 16:50:55 +02:00
Frank Terbeck
b6d44f6c63 36060: _tmux: Update TODO 2015-08-10 16:50:54 +02:00
Frank Terbeck
e3df5dff86 36061: _tmux: Add support for new window options 2015-08-10 16:50:54 +02:00
Frank Terbeck
5c19edb44b 36055: _tmux: Add support for new server options 2015-08-10 16:50:54 +02:00
Frank Terbeck
5fc821cbbd 36059: _tmux: Add new session options 2015-08-10 16:50:53 +02:00
Frank Terbeck
333df34d7b 36051: _tmux: Remove support for old options 2015-08-10 16:50:53 +02:00
Frank Terbeck
4dbc1af529 36047: _tmux: Fix options with changed scope 2015-08-10 16:50:53 +02:00
Frank Terbeck
761044e5c4 36064: _tmux: Add new command aliases 2015-08-10 16:50:52 +02:00
Frank Terbeck
61ba1a92fd 36052: _tmux: Remove old sub-commands and their aliases 2015-08-10 16:50:52 +02:00
Frank Terbeck
1afcae59e6 36049: _tmux: options => session_options 2015-08-10 16:50:52 +02:00
Frank Terbeck
ad7ef9cf1f 36054: _tmux: "local -x" serves no purpose 2015-08-10 16:50:51 +02:00
Frank Terbeck
c7c15410b5 36057: _tmux: Replay all arguments when dispatching to new _tmux() 2015-08-10 16:50:51 +02:00
Frank Terbeck
ca53f8a7ca 36058: _tmux: No need to unset local variables 2015-08-10 16:50:51 +02:00
Frank Terbeck
ab234991b7 36050: _tmux: Don't unset, set empty in local scope 2015-08-10 16:50:50 +02:00
Frank Terbeck
75530dc965 36063: _tmux: Remove dead code 2015-08-10 16:50:50 +02:00
Frank Terbeck
e2495da3c2 36062: _tmux: Add support for new sub-commands 2015-08-10 16:50:50 +02:00
Frank Terbeck
742f4da3d9 36048: _tmux: Update options for supported commands
This also adds a little TODO on top about what is missing.
2015-08-10 16:50:49 +02:00
Frank Terbeck
783ce79a11 36046: _tmux: Update command line options
New: -C and -V
Removed: -q (tmux still excepts it for backward compatibility, but it
         does nothing)
2015-08-10 16:50:49 +02:00
Christian Hesse
2fc05d522f 35991: _ssh: add ssh option FingerprintHash
Signed-off-by: Christian Hesse <mail@eworm.de>
2015-08-05 23:38:21 +02:00
Mikael Magnusson
fb0b6483a0 unposted: _ssh: use the -q option for the = suffix
This way, you can press = to start completing the values instead of
the space, backspace, tab dance
2015-08-05 19:45:35 +02:00
Mikael Magnusson
8ce0320d1b 35989: _ssh: update to 6.9 2015-08-05 19:38:02 +02:00
Eric Cook
31c1ebe7b2 35973: new systat and vmstat completions 2015-08-05 16:05:36 +02:00
Eric Cook
764c48f54d 35972: allow for Directive=Value format in .ssh/config 2015-08-05 15:57:24 +02:00
Christian Hesse
db7b2f12d8 35986: add ssh option UpdateHostKeys 2015-08-05 15:47:14 +02:00
Daniel Hahler
d90f92194f 35970: completion: fix typos in _git and _brace_parameter 2015-08-02 17:58:12 +02:00
Jun-ichi Takimoto
f4723a0c08 35957: fix _make-expandVars()
Also use variables set in the command line and environment.
2015-08-02 21:12:12 +09:00
Matthew Martin
77a8cd7390 35960 (tweaked): complete correct options for OpenBSD's find 2015-07-31 11:18:23 +02:00
Daniel Shahaf
d470453d76 35274: completion: Add FreeBSD's watch(1)
Review-by: Oliver Kiddle
2015-07-26 11:23:14 +00:00
Oliver Kiddle
c55fe21999 35867: new patchutils (interdiff etc) completion 2015-07-23 07:12:01 +02:00
Oliver Kiddle
7351fea0f9 35866: complete also for pigz and allow for NetBSD gzip 2015-07-23 07:02:40 +02:00
Daniel Hahler
8024de798d 35779: completion: _git-config: remove extraneous "local expl"
It is defined at the beginning of the function already, and results in
the output of `expl=''` when completing after `git config
branch.local.pushremote ` etc.
2015-07-13 15:05:52 +02:00
Oliver Kiddle
396f68971f 35718: new calendar style date completion 2015-07-07 22:59:00 +02:00
Peter Stephenson
96fa41a7c8 35663: zpool completion fix needed after completion change 2015-07-02 16:25:59 +01:00
Oliver Kiddle
bf098bc29e 35529: fix filename completion after java -jar 2015-06-23 03:24:49 +02:00
Oliver Kiddle
dd78520897 35531: fallback on file completion 2015-06-19 20:00:51 +02:00
Oliver Kiddle
deb2ec7f17 35510: use consistent formatting for git subcommands 2015-06-18 23:50:59 +02:00
Oliver Kiddle
8ebb4e65a9 35504: complete % placeholders for git log --format 2015-06-18 23:47:40 +02:00
Mikael Magnusson
54c2c442ee _gdb: Allow 'core' to occur anywhere in a coredump filename 2015-06-17 01:45:18 +02:00
Barton E. Schaefer
806f73a0b3 35467: complete files for non-GNU du 2015-06-14 20:10:50 -07:00
Daniel Hahler
e8cf611879 35216: _git-checkout: do not call __git_commits twice
This makes `branch_arg` empty by default, to be used only for
__git_remote_branch_names.

`branches::__git_revisions` was used here, but that's the same as
tree_ish_arg='tree-ishs::__git_tree_ishs' - both call __git_commits.

Only tree_ish_arg will call __git-commits now.
2015-06-08 00:35:01 +02:00
Daniel Shahaf
83ac36c14f 35271: New completion: beep.
The new completion is mostly boilerplate except for the handling of
$words/$CURRENT to support specifying the arguments multiple times
separated by -n.
2015-06-02 10:09:01 +00:00
Oliver Kiddle
52cace8056 35356: factor out completion of tty devices 2015-06-02 00:52:11 +02:00
Daniel Hahler
da603d0a00 35098: completion: git: provide --amend also with "message" group
Especially during a git rebase, you would use `git commit -m foo
--amend`.
2015-05-29 01:56:18 +02:00
Oliver Kiddle
a711b2abef 35315: replace inappropriate uses of _path_commands 2015-05-28 22:45:34 +02:00
Daniel Hahler
0c8d21adc2 35293: fix zstyle lookup with _php: use trailing colon 2015-05-27 19:39:17 +02:00
Daniel Hahler
6925e2b298 35286: fix zstyle lookups with _baz and _tla
Add trailing colons to context being used with `zstyle -s`.
2015-05-27 19:38:05 +02:00
Daniel Hahler
068558616a 35261: completion: git: __git_recent_commits: local ret
Without this, `ret` will be set to 1 with `git diff --ex<tab>` and
result in duplicate entries:

   % git diff --ex<tab>
    -- option --
   --exit-code    -- report exit code 1 if differences, 0 otherwise
   --exit-code  -- report exit code 1 if differences, 0 otherwise
   --ext-diff     -- allow external diff helper to be executed
   --ext-diff   -- allow external diff helper to be executed
   --no-ext-diff  -- disallow external diff helper to be executed
    -- recent commit object name --
2015-05-22 01:12:10 +02:00
Daniel Shahaf
c174947040 35224: completion: git: Add fast-export --signed-tags=warn-strip 2015-05-19 20:35:14 +00:00
Daniel Hahler
a0d269460a 35217: add missing changelog entry; use "-O expl" with _alternative 2015-05-19 10:43:24 +02:00
Daniel Hahler
7408f91d31 35217: completion: git: send-email: complete (recent) commits
This adds `__git_commit_objects_prefer_recent` as alternative for
git-send-email's completion.
2015-05-19 10:28:51 +02:00
Daniel Hahler
8f6823b710 __git_commit_objects: do not use _guard, but only a pattern
With using `_guard` there like it's been done, the completion could not
be selected, probably because of the call to `_message` therein.

This changes it to use only the logic/check from `_guard` that we want
here.
2015-05-19 08:50:42 +02:00
Daniel Hahler
ed3e5f521d Completion/Unix/Command/_git: remove -2 with __git_recent_commits
Remove "-2" for _describe in __git_recent_commits.

This fixes the duplicate entries issue, because __git_recent_commits
gets called twice for _git-checkout (for __git_revisions and
__git_tree_ishs):

1. __git_commit_objects_prefer_recent _alternative __git_commits
   __git_revisions _alternative _git-checkout
2. __git_commit_objects_prefer_recent _alternative __git_commits
   __git_tree_ishs _alternative _git-checkout
2015-05-19 07:49:48 +02:00
Daniel Hahler
d0057538d3 35204: fix broken __git_recent_commits from previous commit
This fixes 1e7bb4a: newlines need to be kept (from the "%d" part).
2015-05-19 06:38:43 +02:00
Daniel Hahler
1e7bb4a8f8 35164: fix __git_commit_objects/__git_recent_commits
$pipestatus for `: foo` is 0 always.

Without this, "git checkout" in a non-git directory would complete " ",
but not result in a note/error about not being in a git dir.
2015-05-19 05:42:21 +02:00