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
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
1fe962cbfd
39209: Update options
2016-09-07 23:19:04 +02:00
Matthew Martin
48c31e21d3
39208: Update flags
2016-09-07 23:19:01 +02:00
Matthew Martin
1f429c0668
39223: Introduce addflags function to reduce redundancy
2016-09-07 23:18:46 +02:00
Oliver Kiddle
5d24f6d9aa
39193 (cf. Yoshio Hanawa: 39192): don't pass options from after -- on to compadd
2016-09-07 23:18:26 +02:00
Matthew Martin
c001d1f2a2
39221: update rm completion for BSD
2016-09-07 14:22:28 +01:00
m0viefreak
2d5dd74732
38153: change the way long options are examined for "=" signs to more accurately identify options that take arguments
...
Note in workers/39135:
The pattern in 266/268 appears to match the '=' sign even though it's in the
second colon-separated field, where it doesn't denote a mandatory argument.
I'm guessing the pattern match on lines 266/268 should be fixed ...
This commit alters those patterns in what is hoped to be the desired way.
2016-09-06 22:35:26 -07: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
Daniel Shahaf
8bb531990e
39154: _files: -/ with list-dirs-first resulted in a bad pattern, thus aborting completion partway.
2016-09-02 18:23:55 +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
Mikael Magnusson
44a820f1c5
39112: _x_utils: Use state_descr
2016-08-29 15:57:36 +02:00
Daniel Shahaf
1f00f68367
39105: _hashed_absolute_command_paths: Make the display string the basename.
...
This makes better use of terminal real estate.
2016-08-27 18:13:27 +00:00
Daniel Shahaf
b62d9eb63e
39103: _typed-in_absolute_command_paths: Better handle non-empty arguments that don't start with a slash.
2016-08-27 18:12:01 +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
7154052ebe
39046 + 39061: New :P history modifier.
2016-08-22 03:34:30 +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 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