1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-09-29 19:00:57 +02:00
Commit graph

1370 commits

Author SHA1 Message Date
Øystein Walle
34ba14e1ec 31853: _git: Add missing column.* config variables 2013-10-21 17:39:46 +02:00
Barton E. Schaefer
87c482d751 31840: "read" needs IFS unset to avoid stripping whitespace in makefiles 2013-10-18 08:35:22 -07:00
Barton E. Schaefer
d5ba3ed245 31818: fix completion for zsh in _sh, and document the _arguments behavior that made the fix necessary
To avoid side effects, reposition the _arguments call in _sh for the zsh
special case. Document the side effects so avoided, and clean up the
_arguments documentation a bit along the way.
2013-10-12 09:19:24 -07:00
Wayne Davison
7e4fd18519 Add new options for rsync 3.1.0. 2013-10-06 16:53:21 -07:00
m0viefreak
8a70a98577 31754: _git: git rm: make git rm --cached work as intended
While limiting the completion to __git_changed-in-index_files
makes perfect sense for "git diff", it is wrong to use for
"git rm", because it prevents it from completing files present in
HEAD. Giving --cached to git rm is supposed to
"just remove it from the index, keep the working tree copy"
and is in no way related to the file needing to be
modified in the index in the first place.
2013-09-22 14:01:16 +02:00
Øystein Walle
2025b05bcf 31752: _git: change completion text for consistency 2013-09-22 14:01:15 +02:00
m0viefreak
128de883bd 31753: _git: correct some "undocumented" options
diff options:
  --cumulative is deprecated --> remove
  -G / -S: reword -S to emphase the difference to -G

revision options:
  --abbrev: reword, to emphase the --abbrev-commit requirement
2013-09-22 14:01:15 +02:00
Øystein Walle
cf0eae5d96 31751: _git: remove TODOs of actually documented options
No functional changes.
2013-09-22 14:01:14 +02:00
Øystein Walle
ab05a3d6d4 31749: _git: fix some typos in description texts 2013-09-22 14:01:13 +02:00
m0viefreak
735e7becb9 31748: _git: support completing remote branches without <remote>/ prefix
this is used in git 1.8's
git checkout <branch>
as a shorthand for
git checkout -b <branch> --track <remote>/<branch>
in case <branch> exists on exactly one remote and is not a local branch
2013-09-22 14:01:12 +02:00
m0viefreak
e45f685d4a 31746: _git: reword _git-config TODO
Support for merge drivers, filter drivers, and diff drivers is
missing.
2013-09-22 14:01:12 +02:00
Øystein Walle
5ec6a1510a 31750: _git: add new configuration options to match latest git v1.8.3 2013-09-22 14:01:11 +02:00
Øystein Walle
6c4c11929c 31747: _git: completion updates to match latest git v1.8.3 part 2 2013-09-22 14:01:10 +02:00
m0viefreak
f20ba1a51e 31755: _git: completion updates to match latest git v1.8.3 2013-09-22 14:01:09 +02:00
m0viefreak
06d58592ab 31745: _git: correctly use __git_guard_number in some cases
The space is relevant to make the help text work as intended.
2013-09-22 14:01:08 +02:00
m0viefreak
ef4157fac4 31744: _git: make git submodule <cmd> completion work
The -A parameter in the main completion stopped completion
in the subcommands from working. Remove it.
2013-09-22 14:01:08 +02:00
m0viefreak
2813d8aa98 31743: _git: fix usage of ->int: for some entries in _git-config 2013-09-22 14:01:07 +02:00
m0viefreak
5f427b8245 31741: _git: fix a wrong variable in __git_config_values
This probably was a copy/paste mistake.
2013-09-22 14:01:06 +02:00
Luka Perkov
075ad840d6 31726: _git: add few more arguments for cherry-pick and revert
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-14 11:21:34 +02:00
Luka Perkov
99e3aa58da 31723: _systemd: add more system commands
While at it move suspend command so the order of the
sytem commands equals the one in the systemd help.

Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-14 11:21:34 +02:00
Luka Perkov
c721356646 31708: _git: add --fixup and --squash options to commit
Signed-off-by: Luka Perkov <luka@openwrt.org>
2013-09-07 10:09:11 +02:00
Luka Perkov
a4245da999 31702: check for git rebase -i for autosquash 2013-09-06 21:48:00 +01:00
Peter Stephenson
1a4730b8ee based on 31641, 31642: completion for more make variants 2013-08-29 10:46:52 +01:00
Jun T
c5d9abc6c8 31756: further make completion improvements.
ake care of mutually exclusive options.
Add _description using $state_descr.
Add completions for --debug=flag.
Fix typo (pointed out by Daniel Shahaf).
2013-07-25 09:47:47 +01:00
Richard Hartmann
f9851d817f 31571: Completion/Unix/Command/_vcsh: Update 2013-07-24 22:03:55 +02:00
Eric Cook
4e3f838269 31558: name of qemu executable changed in completion. 2013-07-22 19:03:54 +01:00
Peter Stephenson
9a192dddd2 c.f. 31531: complete xcf files for image manipulation packages 2013-07-19 19:30:27 +01:00
Jun T
29256a7c96 31525: Fix some options in _make 2013-07-17 19:27:20 +01:00
Nick Cross
a71b8df9b2 Update make completion with gnu options 2013-07-12 09:37:36 +01:00
Peter Stephenson
7e17ea8016 users/17856: rewrite _make to use _arguments.
No new option handling yet, but this should make it easier to add.
2013-07-11 11:14:38 +01:00
Peter Stephenson
95c044372a 31433: zcat -f doesn't need suffix .gz 2013-05-29 19:21:34 +01:00
Peter Stephenson
aa7467b0bf Improve Perforce jobs completion to limit
potentially huge output using jobview by default;
fix quoting of arguments passed on to eval within _call_program.
2013-05-14 14:25:14 +01:00
Jun T
cbf6f144a9 31357: _cp: add support for Mac OS X
If not GNU nor darwin, assume POSIX.
2013-04-29 17:11:05 +02:00
Peter Stephenson
8ab3a7b0e6 31356: typo in new _comp_locale noted by Bart 2013-04-29 15:07:30 +01:00
Peter Stephenson
8cdb57b3b7 31355: _comp_locale tries to sanitise locales but keep CTYPE;
use this for subversion completion.
2013-04-29 10:08:07 +01:00
Ramkumar Ramachandra
2ea9cd4775 31288: _git: fix shortlog completer
Currently, __git-shortlog () says that 'git shortlog' can only accept
commits as arguments (probably because the official documentation says
this).  This is entirely untrue: shortlog can accept
commit-range-or-file, just like log can.  Fix the completer by copying
out segments from the __git-log () function.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-25 14:36:08 +02:00
Ramkumar Ramachandra
cbdedcfbfe 31289: _git: branch.*.pushremote, remote.pushdefault
The configuration variables branch.*.pushremote and remote.pushdefault
are relatively new, and are currently not completed by ZSH.  Fix this.

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:44 +02:00
Ramkumar Ramachandra
d1a3075293 31286: _git: add a couple of browsers
Add google-chrome/chromium to the list of builtinbrowsers in
__git_browsers ().

Signed-off-by: Ramkumar Ramachandra <artagnon@gmail.com>
2013-04-21 12:12:43 +02:00
Torstein Hegge
cc7437bf2f 31159: git: Pass prefix filter to ls-files even if it matches no files
When a branch or tag name is completed with zsh in a large git repo, the
completion is slow if the given prefix doesn't match a file or directory in
the current working directory. Testing with linux.git, which contains release
tags like v3.9 and a directory virt/:

  git log v<tab>

takes about 0.5 seconds, while

  git log v3<tab>

takes about 25 seconds.

(Timed using zsh 4.3.17, on a fairly slow cpu. zsh from git appears to be
quite a bit faster, but the difference between completing v and v3 is still
large.)

The difference between the two is that v<tab> passes the result of v* to git
ls-files while v3<tab> determines that v3* matches no files, and passes an
empty prefix to git ls-files. So git ls-files lists all files in the repo
and passes that on to _multi_parts.

Making git do the expansion of the * after the prefix lets git ls-files v3*
return an empty list, making _multi_parts job easier.

This does not affect the behavior of git log <tab>, but improves the
performance of partial tag and branch tab-completion in the common case where
file names and tag/branch names don't overlap.
2013-04-20 22:29:02 +02:00
Jun T
452aa5157a 31281: _du: add support for Mac OS X 2013-04-20 11:56:04 +02:00
Peter Stephenson
7514fe4a66 Daniel Friesel: 31265: improved option handling for devtodo. 2013-04-16 09:46:46 +01:00
Peter Stephenson
18bba82101 unposted: fix some .distfiles which mention files that have gone 2013-04-08 20:23:42 +01:00
Frank Terbeck
abb32da0e7 31221: Handle zero defined aliases better 2013-04-05 20:19:33 +02:00
Peter Stephenson
0c32aa6274 31203: add new etags completion. 2013-04-04 16:02:52 +01:00
Mikael Magnusson
7c50da8394 31182: _awk: Allow sticked arguments 2013-03-29 09:46:18 +00:00
Peter Stephenson
275ba0fdca Han Pingtian: 31167 (with tweak): limit use of colons for recognising
remote path in ssh completion
2013-03-20 20:33:45 +00:00
Mikael Magnusson
ba88c42a5b 30490: _java: -keystore takes a file argument, so complete files 2013-03-10 12:38:18 +00:00
Oliver Kiddle
ac22eab0d9 31077: update for new options in GNU sort 2013-02-27 22:17:29 +00:00
Oliver Kiddle
c2e00298c2 c.f. 31071: remove duplicate _osc and rename _ps to avoid name clash 2013-02-27 21:43:15 +00:00
Oliver Kiddle
a409dbf74c 31058: add completion of options from newer versions of some commands 2013-02-21 10:49:22 +00:00
Peter Stephenson
01f4ac2782 Eric P Mangold: 31016: updated twisted completion using internally
generated function
2013-02-03 19:40:23 +00:00
Mikael Magnusson
af68fb3cf4 Fix _prove completer commit (was html) 2013-02-01 13:30:35 +00:00
Peter Stephenson
f90cb99208 Jesper Nygårds: 31012: gradle completion update 2013-01-29 19:32:22 +00:00
Peter Stephenson
0969fb91fa 30960: Alexey Bezhan: compatibility issue with django completion 2013-01-14 09:56:07 +00:00
Peter Stephenson
eac4352342 30958: Jeremy Mates: new prove completion 2013-01-10 20:37:22 +00:00
Peter Stephenson
7152094541 Missing .distfiles entries 2012-12-16 18:48:35 +00:00
Peter Stephenson
1869eeb393 30876: fix obscure failures to propagate non-zero status
from optimised simple commands within lists
2012-12-13 10:36:59 +00:00
Oliver Kiddle
968a7a2a51 30811: new completion for btrfs and complete btrfs and ext4 mount options
and new linux mount flags
2012-11-20 23:08:15 +00:00
Oliver Kiddle
ee040c6ba5 30802: add new command switches 2012-11-16 23:01:06 +00:00
Peter Stephenson
1446625072 Michal Halenka: 30800: fix arpping option 2012-11-15 21:04:07 +00:00
Oliver Kiddle
431eac1278 30795: new xz completion and comple --fast and --best for bzip2 2012-11-12 08:47:16 +00:00
Oliver Kiddle
599ad93a93 30794: update completions for new options 2012-11-12 08:21:15 +00:00
Oliver Kiddle
3f8decaf7d 30793: account for eglibc in _pick_variant patterns 2012-11-11 22:18:16 +00:00
Oliver Kiddle
ce658b3c3c Benjamin R. Haskell: 30737: make custom completions for git aliases easier 2012-11-07 21:23:06 +00:00
Oliver Kiddle
a8ffff2cb7 users/17382: complete URLs for vim and make _remote_files more
consistent with _files
2012-11-07 20:59:09 +00:00
Peter Stephenson
c74171da36 Roman Kaminski: 30738: bzr send command 2012-10-19 12:53:48 +00:00
Peter Stephenson
4e38ba5e4c Greg Bouzakis: 30741: add suspend command to systemd completion 2012-10-19 12:49:42 +00:00
Oliver Kiddle
fff9a871e4 add evince, zathura, dwb to command lists of basic completions 2012-10-07 12:57:24 +00:00
Peter Stephenson
059501fa7d Aaron Schrab: 30710: perldoc completion updates 2012-09-30 16:14:30 +00:00
Oliver Kiddle
1ca9f9d5d0 30697: new completion definition for dbus-send and dbus-monitor 2012-09-27 23:33:57 +00:00
Peter Stephenson
0c5526bec0 Александр Балезин: 30667: add addrlabl subcommand. 2012-09-15 18:25:17 +00:00
Peter Stephenson
1f5ef83f0f Jun T.: 30658: complete more uniq options 2012-09-05 14:54:39 +00:00
Peter Stephenson
a090655b16 Silas Silva: users/17223: lp page-ranges option. 2012-09-05 09:09:48 +00:00
Peter Stephenson
32438824c0 Aaron Schrab: 30636: telnet-ssl option completion 2012-08-23 09:10:12 +00:00
Peter Stephenson
fb7fceebea Aaron Schrab: 30637: -b telnet option completion 2012-08-23 09:09:22 +00:00
Peter Stephenson
eaff57eb12 Aaron Schrab: 30638: IPv4 and IPv6 telnet option completion 2012-08-23 09:07:58 +00:00
Peter Stephenson
6bd2befae7 Stepan Koltsov: 30632: new _clay completion 2012-08-17 15:47:41 +00:00
Peter Stephenson
3bc4f8f6a2 30632: gcc completion enhancements for clang etc. 2012-08-17 15:43:25 +00:00
Peter Stephenson
787df27854 ChangeLog-5.0 should be ChangeLog-4.3, Bart says 2012-08-14 09:04:55 +00:00
Peter Stephenson
a4c85df8eb Michal Halenika: 30608: _ip syntax fix 2012-08-13 19:39:13 +00:00
Peter Stephenson
a00b866099 cat_in_136: 17200: new lha and nkf completions 2012-08-07 18:43:40 +00:00
Peter Stephenson
c5c3cd9af1 add _mosh to .distfiles 2012-07-15 18:11:22 +00:00
Peter Stephenson
b2722856e2 Danek: 30562: Solaris completion updates 2012-07-08 17:54:01 +00:00
Peter Stephenson
71052cb69c Danek (plus .distfiles): 30520: updated Solaris 11 copmletion 2012-06-21 08:50:14 +00:00
Clint Adams
f9257b66c8 30503: rudimentary completion for mosh. 2012-06-10 03:35:51 +00:00
Mikael Magnusson
02a3fc7271 Jeremy Mates: 30505: Allow multiple --header= in _wget 2012-06-10 03:25:39 +00:00
Peter Stephenson
d65a9da50a 30497: xsltproc option completion issue 2012-06-06 13:22:15 +00:00
Peter Stephenson
07933936f3 Foudil Brétel: _systemctl -> _systemd plus enhancements 2012-05-31 08:38:55 +00:00
Peter Stephenson
7d09ec507c Jun T.: 30483: improved completion on MacOS 2012-05-22 08:58:41 +00:00
Peter Stephenson
338c70ff56 c.f 30482 (Peter Jaros): typo in description. 2012-05-21 16:31:11 +00:00
Mikael Magnusson
95f02efe7e 30474: add ssh -O cancel completion 2012-05-17 13:37:08 +00:00
Mikael Magnusson
8da652f6ae 30456: Completion/Unix/Command/_getconf: Use new array syntax. 2012-05-01 12:33:13 +00:00
Mikael Magnusson
8afbb00962 30429: avoid error in _init_d when service doesn't exist 2012-04-25 09:12:58 +00:00
Mikael Magnusson
8bb9818cd4 30378: new gradle completion 2012-03-25 14:50:44 +00:00
Mikael Magnusson
511fc6e367 30368: _tmux: complete arguments to unambiguous partial subcommands 2012-03-24 22:49:20 +00:00
Mikael Magnusson
9db1831828 30372: _tmux: redirect errors to /dev/null 2012-03-24 22:47:34 +00:00
Mikael Magnusson
f3a1ac84b0 30371: _ssh: you can specify -i multiple times 2012-03-24 22:46:04 +00:00
Peter Stephenson
6985875634 30354: Luka Perkov: quilt completion update 2012-03-13 09:48:14 +00:00
Peter Stephenson
a0d24f0bf3 Alexey: 30322: Completion/Unix/Command/_xmlsoft: accept more
file types.
2012-03-06 20:08:54 +00:00
Mikael Magnusson
43ddb73297 unposted: fix a typo in _git from previous commit (reolved) 2012-03-06 16:38:25 +00:00
Clint Adams
45090b19df 30317: complete git merge --ff-only 2012-03-06 02:36:12 +00:00
Clint Adams
50a3065dc2 30314: add completion for ssh-copy-id. 2012-03-05 16:03:11 +00:00
Oliver Kiddle
1fe821a8a1 30198: fix environ style lookup to be done in conventional manner 2012-02-14 17:01:17 +00:00
Mikael Magnusson
cbbed5ed84 30206: Fix ldd completion 2012-02-11 12:56:15 +00:00
Oliver Kiddle
c5fce37bce 30199: add (-.) to many completion _files globs 2012-02-10 17:09:05 +00:00
Oliver Kiddle
32eb4faf7c 30197: complete subversion changelists 2012-02-10 16:00:59 +00:00
Peter Stephenson
9c21d0baae seiler via Ismail: 30174: osc completion update 2012-01-31 11:49:50 +00:00
Peter Stephenson
a14bba1ae8 Ben: 30118: sqlite completion 2012-01-23 10:03:08 +00:00
Peter Stephenson
737a87654f Richard Hartmann: 30110: new vcsh Completion 2012-01-15 18:08:27 +00:00
Peter Stephenson
cd40e8caf6 Stepan Koltsov: 30105: fix stgit delete completion 2012-01-09 19:48:12 +00:00
Peter Stephenson
1ea6009209 T.C. Hollingsworth: 30036: new systemctl argument completion 2011-12-21 22:24:45 +00:00
Peter Stephenson
0082320b79 Simon Olofsson: fix matching of subversion help text 2011-12-16 09:18:34 +00:00
Mikael Magnusson
fd1c2364f4 30019: _tar: fix parsing of argument to -C. 2011-12-13 19:33:15 +00:00
Mikael Magnusson
02dc5c681e 29998: _git: fix a typo (--rerbose). 2011-12-13 19:28:19 +00:00
Mikael Magnusson
a7794bd153 29961: _ssh: extend option completion. 2011-12-10 19:37:35 +00:00
Mikael Magnusson
ac78bd010c 29962: Actually return ret in _ssh. 2011-12-10 19:35:49 +00:00
Simon Ruderich
d374f2b180 29918: Completion: Add new _remote_files() helper and use it to reduce code duplication. 2011-12-09 22:39:08 +00:00
Simon Ruderich
3e1146677f 29917: Completion/Unix/Command/_ssh: Tabs to spaces. 2011-12-09 22:32:52 +00:00
Mikael Magnusson
45cd289e49 29876: Update getent completion. 2011-12-09 14:51:54 +00:00
Peter Stephenson
d6d0297b10 complete directories in _nm 2011-12-01 14:55:28 +00:00
Simon Ruderich
6540e8d8cf 29916: Completion/Unix/Command/_git: Prevent clash with _remote_files() in _ssh. 2011-11-24 21:21:46 +00:00
Peter Stephenson
d47847c5f5 29915: new nm completion 2011-11-24 09:16:40 +00:00
Peter Stephenson
b0602dc5b4 Ignacy Gawędzki: 29912: add "--" to ls in ssh completion 2011-11-23 09:50:56 +00:00
Peter Stephenson
7d04b8f486 Foudil Brétel: 29911: systemctl completion updates 2011-11-21 11:31:24 +00:00
Peter Stephenson
5d1b11027b gi1242: users/16587: _lp tidy up 2011-11-20 21:47:10 +00:00
Peter Stephenson
c6722cf086 g1242: printing completion improvements 2011-11-14 09:51:06 +00:00
Peter Stephenson
970adcc4d0 Haakon Riiser: 29895, 29897: _ffmpeg, _nmcli 2011-11-08 09:51:31 +00:00
Simon Ruderich
b337296b93 29893: Completion/Unix/Command/_ssh: Update (mostly) for 5.9. 2011-11-07 20:57:44 +00:00
Peter Stephenson
19550e7713 users/16547: quote p4 arguments with colons in from _describe 2011-10-30 19:39:43 +00:00
Peter Stephenson
e5f1efa5a2 Foudil Brétel: 29842: major update to systemctl completion 2011-10-24 11:32:41 +00:00
Simon Ruderich
7cfd2fcccd 29823: Completion/Unix/Command/_perl: Update for 5.14.1. 2011-10-22 19:47:10 +00:00
Peter Stephenson
4685aae843 small _perforce documentation update 2011-10-17 17:00:48 +00:00
Peter Stephenson
664675dc10 Luka Perkov: 29788: improved quilt completion 2011-09-21 09:31:02 +00:00
Mikael Magnusson
1c2ff68529 29764, 29765: fix various problems with _pgrep. 2011-09-16 12:18:40 +00:00
Peter Stephenson
fdfd451861 unposted: Perforce completion for 2010.2 release 2011-09-07 15:58:54 +00:00
Mikael Magnusson
0e0f259540 29755: add -O stop to to _ssh. 2011-09-07 07:32:57 +00:00
Mikael Magnusson
f3a6bf454d 29740: _wget: add --content-disposition. 2011-09-06 16:19:40 +00:00
Mikael Magnusson
ecbdf148a2 29739: _rsync: redefine _rsync(), -e takes cuddled args 2011-09-06 16:17:46 +00:00
Mikael Magnusson
76524a7f7d 29738: _ssh: Add PreferredAuthentications completion. 2011-09-06 16:15:06 +00:00
Nikolai Weibull
cfdb417a6b 29707: Completion/Unix/Command/_ln: New _ln completer 2011-08-20 07:44:39 +00:00
Mikael Magnusson
cf845a396e 29705: add correct number of slashes when completing //TRANSLIT. 2011-08-18 14:28:49 +00:00
Peter Stephenson
5bbedb3df3 Anthony R Fletcher: users/16260: new systemctl completion 2011-08-17 18:54:30 +00:00
Nikolai Weibull
9e8cdf31b9 29698: Completion/Unix/Command/_git: Complete diff options for git log 2011-08-17 10:50:26 +00:00
Mikael Magnusson
2a79494070 29690: new _twidge and _cryptsetup completers from Daniel Friesel. 2011-08-17 10:24:34 +00:00
Mikael Magnusson
7ae7996614 29683: add -O forward to _ssh. 2011-08-17 10:20:00 +00:00
Frank Terbeck
d557905eb6 Luka Perkov: 29624: _quilt: Improve push' and pop' completion. 2011-07-29 13:07:52 +00:00
Nikolai Weibull
6b42b83f41 * 29582, 29589: Update handling of third-party Git commands 2011-07-22 13:08:25 +00:00
Nikolai Weibull
53998c2cf5 unposted: Completion/Unix/Command/_git: Use _files, not _path_files. 2011-07-22 09:44:22 +00:00
Nikolai Weibull
aad36667de unposted: Completion/Unix/Command/_git: Adjust some TODO items. 2011-07-21 11:37:45 +00:00
Nikolai Weibull
3eb0846645 unposted: Completion/Unix/Command/_git: Update git-add completion to not
complete already given file arguments and also to not list file completions if
an option is being completed.
2011-07-21 10:03:09 +00:00