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

3660 commits

Author SHA1 Message Date
Oliver Kiddle
aed754980b 38733: completion for xfreerdp 2016-06-22 01:24:33 +02:00
Peter Stephenson
5103c85abb 38736: various RPN mode enhancements for zcalc 2016-06-21 16:34:55 +01:00
Oliver Kiddle
a22f4ea8ba 38713: don't add calendar matches when not immediately entering menu selection 2016-06-18 02:04:39 +02:00
Oliver Kiddle
2f67cd514f 38707: strip suffix for glob qualifier completion 2016-06-18 00:15:11 +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
d2a140e75d 38641: allow for values which resemble compadd options 2016-06-09 22:54:07 +02: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
Barton E. Schaefer
5e4db660b2 38632: remove trailing space on #compdef line for compinit parsing 2016-06-07 20:24:18 -07: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
Eric Cook
cabacfff3b 38547: Completion/compdump: only autoload functions when they exist in fpath 2016-06-05 12:05:34 -04:00
Barton E. Schaefer
9c7f298447 users/21609: do not treat tilde-expansions as quoted when inside command substitutions 2016-06-03 15:57:41 -07:00
Marko Myllynen
c5c471bc74 38587: Fix iconvconfig completion --output handling 2016-06-03 20:39:43 +00:00
Daniel Shahaf
f84a5da8c2 38577: _signals: Don't complete SIGEXIT from _kill. 2016-06-03 02:21:58 +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
Matthew Martin
770500d69d 38515: _subsript twwaks
Need -- after print; also optimise array add
2016-05-22 19:04:42 +01:00
Matthew Martin
7700170d6d 38514: remove unnecessary ls in completion 2016-05-22 19:02:18 +01:00
Clint Adams
469a8d8aa3 38482: complete available packages for apt list. 2016-05-12 21:08:42 -04:00
Daniel Shahaf
f09c00bca5 38453: _apt: Complete ${package}/${release} for 'source' and 'build-dep', too. 2016-05-10 18:38:42 +00:00
Daniel Shahaf
1a8fb1cbb3 38452: _apt: Complete releases by codename ('jessie', 'sid', etc). 2016-05-10 18:38:40 +00:00
Daniel Shahaf
d41a866047 38451: _apt: Complete 'apt-get download'. 2016-05-10 18:38:17 +00:00
Frank Terbeck
05e37bd994 38420: _baudrates: Make style lookups fit better with the rest of compsys
To quote Oliver Kiddle:
> The original concept with styles was that style's could have fairly
> generic names because the context allows you to select the detailed
> context. So perhaps consider allowing this to work as, for example:
>   zstyle ':completion:*:*:screen:*:baud-rates' max-value 9600
2016-05-09 03:40:31 +02:00
Frank Terbeck
58d8e46272 38425: _cu: Remove old -d option of _baudrates 2016-05-09 03:40:31 +02:00
Frank Terbeck
6f3fbcc67a 38421: _baudrates: Fit better into the general completion framework
This should work better in concert with other helpers and builtins of
the completion system by accepting arguments that would be handed to
compadd.
2016-05-09 03:40:31 +02:00
Frank Terbeck
795b285ce8 38424: Use _baudrates helper instead of _baudrate 2016-05-09 03:40:31 +02:00
Frank Terbeck
32b5cd9445 38426: _baudrates: Use 2 space indentation
As per the completion-style-guide.
2016-05-09 03:40:31 +02:00
Frank Terbeck
afff99dbb5 38422: _baudrate -> _baudrates
Oliver notes that helper functions usually have plural names by
convention.
2016-05-09 03:40:31 +02:00
Daniel Shahaf
98f670cf43 38401: _deb_packages: New completion for source packages. 2016-05-06 22:30:50 +00:00
Daniel Shahaf
cbcae36141 38402: Complete 'eatmydata'. 2016-05-04 21:05:35 +00:00
Daniel Shahaf
a6ab968224 38399: _bts: Complete debbugs bug numbers from bts cache. 2016-05-04 20:50:34 +00: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
Daniel Shahaf
bb5c8f16bf unposted: _querybts: Fix positional arguments' description. 2016-05-01 16:25:47 +00:00
Daniel Shahaf
1a2afc6b6d unposted: _compadd: Fix typo. 2016-05-01 16:25:15 +00: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
Barton E. Schaefer
5e71690c19 38289: "builtin enable" in $_comp_setup to avoid accidentally invoking external command of the same name 2016-04-15 21:39:04 -07:00
Han Pingtian
67c0174093 38219: remove redundant left square bracket 2016-04-14 16:46:27 +02:00
Christian Neukirchen
fbe2763411 37847: update du arguments up to GNU du 8.25 2016-04-14 15:52:08 +02:00
Barton E. Schaefer
8142fc3fdb For help listing, capture the fallback to compctl in case there is one defined 2016-04-09 08:54:54 -07: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
ac5d83bf56 37898: fix typo in completer menu 2016-02-14 13:13:06 -08: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
ea626708a5 37923: Completion: _bts: Fix quoting of $DEBEMAIL. 2016-02-09 03:41:45 +00:00
Daniel Shahaf
a090acab63 unposted: _init_d: Report failure to caller. 2016-01-29 09:14:49 +00:00
Eric Cook
25ca90e5ab 37788: _subscript - fix completion of associative array keys 2016-01-26 23:20:36 -05: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
9df6c728e8 37664: docs: Document the completion function _command_names. 2016-01-20 07:49:25 +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
Daniel Shahaf
152875ba03 37550: _cu: Support Linux line-device names; fail gracefully on OSes matching no known line-device name pattern. 2016-01-13 00:56:50 +00:00
Matthew Martin
82210cb954 37534: completion for OpenBSD's cu, fw_update and rcctl utils 2016-01-10 14:10:06 -05:00
Oliver Kiddle
3ca4ffa972 users/21114: new dig completion 2015-12-31 12:47:47 +01:00
Axel Beckert
5f3e47ca5e 37438: C/D/C/_aptitude: Also parse -h output of aptitude 0.7.5 and later 2015-12-27 15:50:24 +01:00
Felipe Sateler
67484e613b Add missing apt purge and autoremove subcommands 2015-12-26 18:22:49 +01:00
Peter Stephenson
d397e3fca2 37401: pattern error caused too much activity in _list_files for some styles 2015-12-14 11:10:52 +00:00
Adrien Vergé
3102883fbc 37397: Optimised update to dnf completion 2015-12-13 18:19:18 +00:00
Matthew Martin
3272bdce98 37383: add completion type for object files 2015-12-11 11:51:09 +01:00
Simon Hafner
e5dddecc15 37260: add opus to mplayer audio completions 2015-12-11 05:37:37 +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
ebb0d7ddaa 37256: _debchange (_dch): Update completion. 2015-11-30 16:02:47 +00:00
Daniel Shahaf
06a24d3747 37163: Remove curl completion 2015-11-27 07:27:09 +00:00
Daniel Shahaf
2ab41d508d 37215: _regex_words: Don't add mismatched parentheses
I ran into this in the wild¹, it manifested as the following error message:

    zregexparse:4: not enough regex arguments

¹ https://bug.tasktools.org/browse/TW-1729
2015-11-27 07:26:38 +00:00
Matthew Martin
d590646673 37100: update for sysctl completion 2015-11-26 09:37:50 +00:00
Matthew Martin
6fe05eac84 37201: change quoting to handle group names with spaces 2015-11-22 19:57:51 -08:00
Daniel Shahaf
c563f1ba83 37164: _tmux: Complete external commands 2015-11-20 03:39:52 +00:00