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 Shahaf
0aa6bfd831
39044 (in part, see thread): Document _canonical_paths in the manual, too.
...
This mostly copy-pastes the source code comments and adds markup, however, the
positional arguments are now annotated optional, and a ')' was added.
2016-08-18 16:55:45 +00:00
Peter Stephenson
062aeca2d2
39039: fix documentation of transpose-words
2016-08-15 12:06:24 +01: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
Oliver Kiddle
f760bd6064
39026: pattern specified with _arguments' -A option shouldn't be checked against words after the cursor
2016-08-13 01:32:31 +02:00
Barton E. Schaefer
a1a58dde6a
39035: ${(A)name=word} should expand as an array even when there is only one element.
2016-08-12 16:10:26 -07:00
Peter Stephenson
04003e038a
39031: Ensure variables in transpose-words are initialised
2016-08-12 12:56:34 +01:00
Peter Stephenson
bedb61fd99
39029: document transpose-words change
2016-08-12 12:54:34 +01:00
Han Pingtian
b2be8e1b6e
38983: Make transpose-words handle numeric arguments sensibly
2016-08-12 09:51:55 +01:00
Barton E. Schaefer
68e14c41f2
39028: more join/split cases fixed and tested.
2016-08-12 00:55:32 -07:00
Barton E. Schaefer
4234fccef6
39019 (cf. PWS 39013): add test cases for more join/split combinations
...
Accidentally omitted from previous commit.
2016-08-11 10:08:16 -07:00
Barton E. Schaefer
f7c3aa170b
39019 (cf. PWS 39013): fix SHWORDSPLIT regression introduced by workers/29313
...
Also add test cases for more join/split combinations
2016-08-10 18:33:04 -07:00
Mikael Magnusson
caf48686d0
39014: Use special OpenBSD interface to get correct rand() behavior
2016-08-10 19:06:13 +02:00
Barton E. Schaefer
ac0dcc9a63
unposted: fix typo in comment
2016-08-06 20:07:26 -07:00
Barton E. Schaefer
6ce34705a6
unposted: fix formatting in module discussion; add mention of widgets and keymaps for modules.
2016-08-06 20:05:23 -07:00
Daniel Shahaf
81409caee7
workers/38995 (in part): compfiles: Add reverse-engineered documentation breadcrumbs.
2016-08-05 12:43:57 +00: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
f026a4dc12
38991: Make 'whence -v autoloaded-function' shows the defining filename.
...
This may also fix a problem whereby the %x prompt escape evaluated to
a function name rather than a filename, since %x is also backed by
scriptfilename.
2016-08-05 12:37:26 +00:00
Daniel Shahaf
dd6f79759f
38990: _debbugs_bugnumber: Track bts's data dir migration.
2016-08-05 12:37:25 +00:00
Jun-ichi Takimoto
7f052ed3e4
unposted: fix format in zle.yo
2016-08-04 19:32:34 +09: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
f9b1703511
38971: Start using the new arrlen_ge() / arrlen_le() helpers.
2016-08-01 08:01:29 +00:00
Daniel Shahaf
1a368bf31f
38973: Optimize indexing array parameters.
...
% () { for 1 in $prefix/zsh/bin/zsh Src/zsh; do $1 -f -c 'a=( {1..1000000} ); repeat 3 time ( repeat 300 : $a[1] )'; done }
( repeat 300; do; : $a[1]; done; ) 1.68s user 0.01s system 98% cpu 1.718 total
( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.710 total
( repeat 300; do; : $a[1]; done; ) 1.69s user 0.01s system 99% cpu 1.714 total
( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; ) 0.00s user 0.01s system 72% cpu 0.022 total
( repeat 300; do; : $a[1]; done; ) 0.01s user 0.01s system 69% cpu 0.023 total
2016-08-01 08:01:28 +00: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
8d71a610af
38959: Document 38956 (_widgets).
2016-07-31 16:21:27 +00:00
Daniel Shahaf
0389fc3a7f
unposted: _svnadmin: Tweak state description.
2016-07-29 17:01:22 +00:00
Daniel Shahaf
8d7b9d013d
38927: zle-line-pre-redraw: Set $WIDGET like other special widgets do.
2016-07-28 18:12:19 +00:00
Daniel Shahaf
8e029323a7
unposted: Avoid $0 for POSIX_ARGZERO compatibility.
2016-07-28 18:07:57 +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
Oliver Kiddle
7830a8c498
unposted: fix vi-pipe for visual mode: don't need to force line mode
2016-07-28 16:07:59 +02:00
Peter Stephenson
26361e438b
38953: Fix some issues with match-words-by-style.
...
Add keyword retrieval of words. Improve test for start of
word in subwords for use in delete-whole-word. If line after
cursor is empty, white space is treated as ws-after-cursor.
2016-07-28 09:51:19 +01:00
Peter Stephenson
895e9beb29
users/21793: Remove raw integers as glob qualifiers.
...
There was an ancient undocumented feature that these were treated
as a file mode to "or" with that of the file under test. The
only documented way of doing this has always been the "f" qualifier,
so removed the effect of raw integers to make errors more obvious.
2016-07-28 09:51:19 +01:00
Daniel Shahaf
74722c7392
unposted: Prefix function's name to its error messages.
2016-07-27 14:04:45 +00:00
Daniel Shahaf
8e06a6a28a
unposted (after 38939): _git-rebase: Unbreak.
2016-07-27 14:04:40 +00:00