1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-01-19 11:31:26 +01:00
Commit graph

3745 commits

Author SHA1 Message Date
Oliver Kiddle
5c28031ea6 39834: when print used with -v and -l, include a final newline
Also complete print -S option and make further use of the
new printf to an array feature in other completion functions.
2016-11-05 00:31:01 +01:00
Oliver Kiddle
4b41e33cbc 39389: when printf -v is used with an array use separate elements each time the format is reused 2016-11-05 00:27:47 +01:00
Oliver Kiddle
6ea4e708ba 39818: _awk: add nawk to the list of commands 2016-11-04 10:02:33 +09:00
Barton E. Schaefer
ad085f1dec unposted: fix typo that was causing handling of "--" argument to fail 2016-11-03 09:13:03 -07: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
Barton E. Schaefer
4bc0d13911 39797: obsolete the helper functions fixed by the previous two changes
Replacing them with the new ${var:P} modifier.

Previous deltas may be useful for backport to zsh 5.2 and before.
2016-11-01 12:45:24 -07:00
Jun-ichi Takimoto
4eed68e0bf 39731: _awk: add support for gawk ver.3 and 4 2016-11-01 19:21:05 +09:00
Barton E. Schaefer
0a5aea375d 39795: preserve "cd -" behavior around directory shuffling in _canonical_paths_pwd 2016-10-31 14:57:33 -07:00
Barton E. Schaefer
59dbab4f1c 39792: improve handling of relative paths in _canonical_paths_add_paths 2016-10-31 12:14:23 -07: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
71dd0ab62e 39706: _tilde_files: Offer named directories. Document. 2016-10-24 00:53:45 +00:00
Daniel Shahaf
4eef3e6f0e 39708: Document _email_addresses. 2016-10-24 00:53:36 +00:00
Barton E. Schaefer
8e3e727933 39710 (cf. Alex George: 39709): handle the %o format in the "all-expansions" tag
Also allow a single unique match to appear in the "expansions" tag of _expand in the same way as _user_expand (users/21955 commit 18200dc0)
2016-10-22 21:53:21 -07: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
Daniel Shahaf
ae3b675ce6 39657: _zstyle: Complete the -g, -s,-b,-a, -t,-T, -m options. 2016-10-18 01:34:53 +00:00
Daniel Shahaf
713857cea0 39657: _zstyle: When completing a style for an unrecognised context, complete all known styles.
Previously, vcs_info styles weren't completed.
2016-10-18 01:34:52 +00:00
Daniel Shahaf
13cfa036c8 39657: Make a helper function global. 2016-10-18 01:34:52 +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
Oliver Kiddle
17f9d6b521 39623: new evince completion 2016-10-14 11:32:34 +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
59a67b31b0 39489: _path_files: Interpret -P as literally, rather than as a pattern.
Follow-up to the last commit.
2016-10-07 13:59:06 +00: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
Daniel Shahaf
dfc9214984 39480: _reportbug: Complete absolute filenames, too. 2016-09-30 23:15:57 +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
Oliver Kiddle
01f9e54c57 39464: fix where lack of $state check caused unwanted filename completion for fmadm 2016-09-30 09:56:19 +02:00
Marko Myllynen
89e319f345 39453: new openstack completions 2016-09-27 21:37:32 +02:00
Daniel Shahaf
0f8725beeb 39423: _zed: Support the '--' end-of-options mark.
This matters for fned'ing vcs_info hooks.
2016-09-24 07:22:16 +00: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
Barton E. Schaefer
516be10613 unposted: add missing final colon in zstyle context lookup 2016-09-21 21:28:49 -07:00
Barton E. Schaefer
18200dc030 users/21955: add missing final colon in zstyle context lookup; allow a single unique match to appear in "expansions" tag 2016-09-21 21:27:21 -07:00
Oliver Kiddle
34d512a677 39370: complete -w and -K options to zle following the widget name and numeric base to integer 2016-09-21 23:03:14 +02:00
Oliver Kiddle
e8720bbd8b 39407: cleanup minor issues in cpupower completion; updated through to version 4.8 2016-09-21 23:00:12 +02:00
Daniel Shahaf
7c93ba46d2 39385: _bts: Complete more argument types for 'cache' and 'show'. 2016-09-20 17:59:20 +00:00
Daniel Shahaf
f0c804879b 39374: _apt: Complete package versions in the 'packagename=<version>' syntax. 2016-09-18 06:20:59 +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
Oliver Kiddle
fbafc5b509 39332: support ksh's [[ -v varname ]] condition for checking if variables are set 2016-09-16 00:00:28 +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
c5a3b170d4 39299: better Freebsd support in _external_pwds using procstat 2016-09-13 17:43:38 +02:00
Oliver Kiddle
98581594b5 39295: allow -- to appear in the command line passed as an argument 2016-09-12 23:26:14 +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