Daniel Shahaf
c392e6c620
39915: whence: Honor PATH_DIRS option for arguments that start with './' or '../'.
...
While here, add some docstrings.
2016-11-17 15:28:42 +00:00
Oliver Kiddle
0a6098a1d4
39962: bind vi case conversion widgets
...
u/U in visual mode and g~ from normal mode
2016-11-17 12:32:28 +01:00
Oliver Kiddle
48bdcd7713
39959: when repeating vi changes advance through the numbered killring registers
...
Also fix numeric arguments with vi-repeat-change: and argument passed
to the repeat replaces that previously saved with the change.
2016-11-17 12:28:08 +01:00
Oliver Kiddle
6d991ce177
39952: add registers special parameter to provide access to the vi register buffers from a zle widget function
2016-11-17 12:27:52 +01:00
Oliver Kiddle
7d2f805008
39945: allow further tab presses to move on to menu completion even when compstate[insert] is emptied
2016-11-16 09:42:49 +01:00
Barton E. Schaefer
98b7960c78
39943: no need to compute arrlen() in arrdup_max() when max == 0.
2016-11-15 10:04:14 -08:00
Peter Stephenson
921b39ac6b
39949: Special case for "-" in directory names.
...
It can be sh-tokenized to Dash to allow for appearing in ranges
after substitution, so needs to be turned back to "-" in that case.
2016-11-15 18:01:32 +00:00
Peter Stephenson
e9dbfa8046
39947: Additional test for array subscripts.
...
This checks out-of-range multiple subscripts with and without
the (@) flag.
2016-11-15 16:01:32 +00:00
Jun-ichi Takimoto
3fd50d06a1
39937: fix a problem introduced by 39886.
...
$a[i,j] should become an empty array if i>j.
2016-11-15 00:17:35 +09:00
Peter Stephenson
99acd1e7f4
39906: More multibyte optimisations for US-ASCII.
...
This treats characters 0 to 0x7f as single byte US-ASCII along
the lines we already do in other places in the code.
2016-11-14 10:12:04 +00:00
Barton E. Schaefer
56e3d23b98
unposted: comment in zlecallhook() points to redrawhook() just in case
2016-11-13 18:15:23 -08:00
Barton E. Schaefer
cbb9ca3dfb
39934: if a widget execution fails, try to execute a corresponding immortal widget instead.
2016-11-13 15:52:09 -08:00
Barton E. Schaefer
7b8f638713
39933: more of zlecallhook() in redrawhook()
...
add commentary on some of the differences
2016-11-13 11:04:25 -08:00
Barton E. Schaefer
33052104e1
39929: clarify execute{,-last}-named-cmd
2016-11-13 11:00:16 -08:00
Barton E. Schaefer
9a09f97b60
unposted: Addenda to list of module hooks
2016-11-12 23:39:14 -08:00
Barton E. Schaefer
20de06dfbc
unposted: add list of standard module hooks with corresponding macro names
2016-11-12 23:17:36 -08:00
Paul Seyfert
2ba985fe5b
39920: extend yum completion
...
adding the following yum commands:
* update-to (just what update expands)
* upgrade-to (just what update expands)
* history (the actual tricky one)
* help (printing the available commands)
* load-transaction (_files)
* load-ts (_files)
* check (just what the man page suggested)
* reinstall (just what erase does - suggest installed packages)
* downgrade (just what erase does - suggest installed packages)
* repolist (just what the man page suggested)
* distribution-synchronization (just what erase does - suggest installed packages)
* distro-sync (just what erase does - suggest installed packages)
A few history commands don't get expanded.
Taken from the man page of yum 3.2.29.
Reindented file.
2016-11-12 02:40:49 +01:00
Barton E. Schaefer
d676d1bf4b
39893: use arrdup_max() to show explicitly the difference in two code branches
...
no functional change
2016-11-10 21:01:32 -08:00
Daniel Shahaf
c238057ccc
39874/0002 plus size=0 handling: zshcalloc: Remove code duplication. No functional change.
2016-11-11 04:37:59 +00:00
Daniel Shahaf
7139b73724
39874/0001: setarrvalue: Remove needless initialization.
2016-11-11 04:35:41 +00:00
Peter Stephenson
5f1700755f
39901: No EXIT trap on LHS of pipeline.
...
There is a special case if the LHS is a shell construct.
Add unit tests for both cases.
2016-11-10 10:37:27 +00:00
Oliver Kiddle
370b278565
39890: typo corrections in completion functions
2016-11-09 16:55:14 +01:00
Oliver Kiddle
496626ddb8
39888: update tmux completion for tmux 2.3
2016-11-09 16:55:14 +01:00
Oliver Kiddle
488d73c07d
39884: fix history-beginning-search-menu for history lines containing a pipe character
2016-11-09 16:55:13 +01:00
Barton E. Schaefer
dae3116026
39882: mention ${name:/pattern/replacement} in the itemized synopsis with the related forms; clarify doc.
2016-11-09 07:50:06 -08:00
Peter Stephenson
65ea1a033b
39887: no need to conditionalise assignment of strlen()
2016-11-09 13:45:11 +00:00
Peter Stephenson
a1633e09a7
39886 based on 39877: Optimise arrdup to arrdup_max.
...
Only duplicate as much of the array as is needed.
2016-11-09 11:54:57 +00:00
Sebastian Gniazdowski
49407686b4
39875: add dupstring_glen to avoid redundant strlen calls
2016-11-09 10:32:48 +00:00
Daniel Shahaf
d8786da0cd
39853: _subversion: Accept long options in the '--foo=bar' syntax.
2016-11-09 04:06:23 +00:00
Sebastian Gniazdowski
06e4ec853a
39871: cut down number of strlen()s in getstrvalue()
2016-11-08 15:14:08 +00:00
Peter Stephenson
a57977d01a
39870: ensure exit trap can always run
2016-11-08 13:02:57 +00:00
Jun-ichi Takimoto
dfb2f3f3d2
39857: add support for darwin, with improvements on linux etc.
2016-11-08 21:49:33 +09:00
Peter Stephenson
1683371fa5
unposted: follow up to 39867: don't need test against zero
2016-11-08 10:51:03 +00:00
Sebastian Gniazdowski
68a576bc55
39869: can transfer ownership of core of array when assigning
2016-11-08 10:49:13 +00:00
Peter Stephenson
39521515c3
39867, tweaked: Use cast to unsigned char to test character.
...
We want the unsigned variant to be <= 0x7f. Use the normal STOUC()
macro and turn this into a single test.
2016-11-08 10:09:26 +00:00
Peter Stephenson
5411cdf378
39856: module completion improvements.
...
Follow symbolic links when finding.
Use _multi_parts for paths when completing modules.
2016-11-07 14:49:00 +00:00
Jun-ichi Takimoto
0921a3537a
39855: new completion for jot command
2016-11-07 19:29:52 +09:00
Peter Stephenson
33b3489092
zsh-users/22083: attempt to explain what a word is in parameter substitution.
2016-11-07 10:04:14 +00:00
Daniel Shahaf
bb28726fa5
39840: _cpio: Declare variable's type correctly.
2016-11-07 05:21:19 +00:00
Daniel Shahaf
7e406125cd
unposted: ChangeLog typo
2016-11-07 05:19:35 +00:00
Jun-ichi Takimoto
f912e83505
39728: define _GNU_SOURCE on Cygwin
2016-11-07 11:36:17 +09:00
Frank Terbeck
06bd2b1c85
39849: _tmux: Remove set-remain-on exit
...
This was removed recently, since it was superseded by hooks.
2016-11-07 00:04:07 +01:00
Frank Terbeck
c2649189cb
39848: _tmux: Update options to latest tmux
2016-11-06 23:18:28 +01:00
Frank Terbeck
02fe884a11
39847: Update helper function name pattern
...
In 580698bc71
, Oliver updated a whole bunch of options in a number of
completions. While at it, he also changed a bit of coding style, to
better adhere to Etc/zsh-development-guide — among those changes is to
convert "function foobar() {" function definitions to "foobar() {".
This broke Util/check-tmux-state so that it couldn't detect any
supported tmux sub-commands within _tmux anymore. This updates the
regular expression that is used in the script to match and list these
function definitions.
2016-11-06 23:18:28 +01:00
Barton E. Schaefer
c282abc6bd
Thomas Bereknyei, Mic92: 39831: find "getent" by the usual command search, not just /usr/bin/
...
Also tweak the replacement getent to handle /etc/hosts format.
2016-11-06 00:00:38 -07:00
Barton E. Schaefer
dee0bce7b4
unposted: tests for 39839, 39844
2016-11-05 21:37:23 -07:00
Barton E. Schaefer
ff36590910
39844: fix "while" condition as per 39839 (commit 2c56c7e5
)
2016-11-05 18:23:04 -07:00
Barton E. Schaefer
2c56c7e5e8
39839: fix "return" from "if" condition
2016-11-05 13:54:16 -07:00
Barton E. Schaefer
d91ffb1db2
39838: another missing unqueue_signals()
2016-11-05 13:49:07 -07:00
Oliver Kiddle
58ce2f119a
39829: when compstate[insert] is emptied by the completion function and AUTO_MENU is set, start menu completion on the second tab press rather than the third
2016-11-05 00:36:29 +01:00