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

3660 commits

Author SHA1 Message Date
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 Shahaf
283357dcab unposted: _canonical_paths: Port docstring changes from 39044. 2016-08-18 16:59:09 +00: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
Daniel Shahaf
dd6f79759f 38990: _debbugs_bugnumber: Track bts's data dir migration. 2016-08-05 12:37:25 +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
Andy Spencer
f3ef00b152 38982: move cpupower completion to correct folder 2016-08-01 10:53:51 +01:00
Andy Spencer
cb26725d40 38976: new cpupower completion 2016-08-01 09:25:02 +01: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
a3b5389641 38967: _hosts: Don't complete wildcard entries from ~/.ssh/known_hosts. 2016-07-31 16:21:32 +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
Oliver Kiddle
b816bb42cf 38957: make use of updates to match-words-by-style and better support completion of word-style styles for zstyle 2016-07-28 16:16:25 +02:00
Oliver Kiddle
54d5f8e363 38956: factor out zle widget completion into its own function 2016-07-28 16:12:59 +02: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
0f4cfc2597 unposted: _deb_packages: Minor optimization. 2016-07-23 18:02:28 +00:00
Daniel Shahaf
8e69dd54b7 38913: _pkg-config: Complete variables for --variable. 2016-07-23 18:02:26 +00:00
Daniel Shahaf
5c7d92bd9c 38890: _add-zle-hook-widget: New completion. 2016-07-22 06:23:39 +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
Felipe Sateler
02f03a6aed 38901: _schroot: Add -r/--run-session 2016-07-21 07:18:50 +00:00
Mikael Magnusson
bd707b4787 _print: add -v 2016-07-18 00:44:52 +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
arno
080b1cabab 38780: include variants containing non alphanumeric symbols in completion 2016-07-05 23:30:46 +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