1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-31 18:10:56 +01:00
Commit graph

10046 commits

Author SHA1 Message Date
Oliver Kiddle
45d910356a 40842: update completions for coreutils and similar utilities, also improving BSD and Solaris support 2017-03-14 16:13:05 +01:00
Daniel Shahaf
e869952200 40818: _git-checkout: When completing local heads, prefer recently-checked-out ones. (after 38592) 2017-03-14 11:14:14 +00:00
Daniel Shahaf
46233c4020 40817: __git_recent_branches: Retrieve less data, but faster.
By replacing the --grep-reflog=needle argument with a ${(M)...:#needle} filter,
we retrieve less data from the reflog, and consequently run (on my test cases)
16% to 40% faster.  The trade-off is that we retrieve less data: instead of
retrieving the 1000 most recent 'checkout' operations, we retrieve the most
recent 1000 operations, which would include fewer than 1000 checkout operations.

Also change [[:xdigit:]] to [0-9a-f] since it's faster, however, the absolute
gain from this is minor compared to the cost of 'git reflog'.
2017-03-14 11:14:13 +00:00
Daniel Shahaf
56ef4f62c4 40822: vcs_info quilt: Document the '.quilt-foo' zstyle context element. (Compare users/20807.) 2017-03-14 11:14:12 +00:00
Wieland Hoffmann
5fa422b246 40837: for pgrep completion, add -w on Linux 2017-03-12 22:35:20 +01:00
Daniel Shahaf
d044530afd 40816: Document interaction of 'print -P' and 'print -f'. 2017-03-12 19:37:18 +00:00
Jun-ichi Takimoto
2ff71e84ba 40820: add a few tests of strftime, related to 40681 2017-03-12 21:04:22 +09:00
Barton E. Schaefer
420fc41b7c 40832: fix $x:P when PWD=/ 2017-03-11 14:40:12 -08:00
John Leuenhagen
5da6621ffe unposted (github pull request #15): fix a small typo in ip corrections file 2017-03-11 08:35:20 +00:00
Oliver Kiddle
f862882f82 40824: grep completion handling of option deviations between different systems 2017-03-10 17:38:31 +01:00
Oliver Kiddle
373ad33f44 40823: update option completion for sshfs 2.8 2017-03-10 16:54:21 +01:00
Peter Stephenson
adab02817f 40819: Fix IS_DASH test in BRACE_CCL handling 2017-03-10 10:43:25 +00:00
Jun-ichi Takimoto
c09af3516f unposted: declare file local variables as static 2017-03-10 18:44:41 +09:00
Jun-ichi Takimoto
4d7b34c5f3 unposted: silence warnings on Cygwin
On Cygwin, h_name in struct hostent is 'const char*'
2017-03-10 18:41:25 +09:00
Fabian Klotzl
7276d04934 40808: fix typos where (x,y) should have been (x y) in _arguments syntax 2017-03-09 20:29:27 -08:00
Barton E. Schaefer
9f49864322 40801: re-fix completion of mount points with spaces in the name
Turns out that work of art removed by 33963 was necessary after all
2017-03-09 20:29:27 -08:00
Peter Stephenson
018992123e 40803, 40804, 40805, 40806: Parameter test additions.
Potentially dodgy string for ${(z)...} splitting from Sebastian.

Check that $- and ${-} produce plausible results.
2017-03-09 12:18:54 +00:00
Peter Stephenson
64559abc1f 40796: MAGIC_EQUAL_SUBST not needed with parsed assignment.
If typeset family builtins are recognised as keywords then the value
is handled as a separate expansion and we don't need the old
magic behaviour, even if the option is set.
2017-03-09 09:52:23 +00:00
Barton E. Schaefer
c93f29b52d 40799: fix $- expansion partly broken by 40760 2017-03-08 21:33:25 -08:00
Barton E. Schaefer
071017965f 40763: count wide characters and Cmatcher pointers more sanely in cfp_matcher_pats(), and count characters in pattern_match() the same way to stay in sync
Might not fix wide-char matching in completion matcher-lists but should
avoid wild pointer crash
2017-03-08 21:26:55 -08:00
Daniel Shahaf
67d882479b 40745 + 40753: Fix 'unset ZLE_RPROMPT_INDENT' not restoring the default behaviour.
To reproduce:

    RPS1=foo
    ZLE_RPROMPT_INDENT=42
    unset ZLE_RPROMPT_INDENT
2017-03-08 10:04:44 +00:00
Daniel Shahaf
a5482971b7 40744: Document the SHORT_LOOPS 'function' syntax.
It's already mentioned in passing in zshoptions(1).
2017-03-08 10:04:34 +00:00
Sebastian Gniazdowski
6f25cbae04 40706: Fix ordering dependence in gdbm test 2017-03-07 10:55:20 +00:00
Peter Stephenson
f3f8537cfa 40760: Always tokenize unquoted - to Dash.
This fixes use of pattern match character ranges in unusual contexts.

Attempt to detect a tokenized - in cases where we don't care.
2017-03-07 10:43:58 +00:00
Mikael Magnusson
a8345a40b1 40780: Don't use =~ for simple prefix match 2017-03-07 03:20:05 +01:00
Sebastian Gniazdowski
23275fc8db 40726: add "zcurses resize" for sane terminal size change 2017-03-05 11:25:38 -08:00
Sebastian Gniazdowski
8522e996ec 40781: optimize array assignment, similar to 39995 for string assignment 2017-03-04 15:35:19 -08:00
Barton E. Schaefer
5e61eaf855 40654: exit cleanly from special POSIXBUILTINS in subshells
This patch overloads the zsh_subshell counter which is meant for $ZSH_SUBSHELL, but no one has suggested a working alternate test.
2017-03-04 15:25:17 -08:00
Christoffer Aasted
b8b5f18f3f unposted (via github): complete -Dproperty=/path_complete for ant 2017-03-04 09:31:31 +01:00
Ferenc-
76f2539e20 unposted (via github): Add newer C++ standard options to _gcc 2017-03-04 09:23:11 +01:00
Oliver Kiddle
929fa17a2f unposted: complete 'tiled' layout for tmux 2017-03-04 01:13:43 +01:00
Oliver Kiddle
cae214551b unposted: fix completion argument to xz --format 2017-03-04 01:05:51 +01:00
Oliver Kiddle
76a033e2cc 40715: update completion of git options for git 2.12.0 2017-03-04 00:37:04 +01:00
Oliver Kiddle
7fd62f4367 40597: be flexible about order of options to _values 2017-03-04 00:33:20 +01:00
Sebastian Gniazdowski
c8005af310 40170: Fix up error resetting in curses module.
Update comment to remove confusion.  The comment was based on
incorrecto expectations, and the problems referred to seem to be fixed.
2017-03-03 10:46:23 +00:00
Peter Stephenson
efe5e6a2f0 40173: No error on failure to load zsh/db/gdbm in test.
This is a soft error causing the test to be skipped, with a report
to that effect.
2017-03-03 10:20:16 +00:00
Peter Stephenson
67c5d83df3 40702: new KEYS_QUEUED_COUNT ZLE variable 2017-03-03 10:18:46 +00:00
Jun-ichi Takimoto
0697c45ab3 40681: strftime builtin should return 1 if ztrftime() returns -1 2017-03-02 11:09:12 +09:00
Peter Stephenson
47c05f6b66 40622 with typos fixed: functions -Ms.
This adds the capability for mathematical functions based on shell
functions to have a string argument.  Module functions have had
this for a long time.
2017-03-01 10:01:01 +00:00
Sebastian Gniazdowski
24497ad196 40562: gdbm tests omitted from previous commit 2017-03-01 09:52:46 +00:00
Daniel Shahaf
bf292bde14 40641: docs: patterns: Add '|' to the overview. Clarify that it short-circuits. 2017-02-28 07:39:15 +00:00
Barton E. Schaefer
d00931de5c 40650: redo 40508 and 40626 with comments explaining what is actually going on 2017-02-26 12:03:56 -08:00
Daniel Shahaf
c7048cd88f Revert 40626 which broke tests. 2017-02-26 06:11:19 +00:00
Barton E. Schaefer
4b8db48c6b 40640: the (A) parameter flag forces array result even if assignment syntax is not used 2017-02-25 15:56:50 -08:00
Daniel Shahaf
5a32ced1be unposted: Port 40617 to the completion. 2017-02-25 09:09:31 +00:00
Daniel Shahaf
6c476c2211 40626: Make $options re-settable.
Follow-up to 40508.

Reported-by: James McGlashan
2017-02-25 08:05:11 +00:00
Barton E. Schaefer
db44b17150 unposted (cf. 40617): clarify description of ${(A)name=value} and ${(AA)name=value} 2017-02-23 21:53:19 -08:00
Barton E. Schaefer
12d950ba0c 40624: conditionally handle WIFCONTINUED to properly set SP_RUNNING process status 2017-02-23 16:19:07 -08:00
Jun-ichi Takimoto
8328b79286 40604: revert to the old method if getutent() is not available 2017-02-23 00:34:45 +09:00
Barton E. Schaefer
1b0541c52f Julien Nicoulaud: 40586: discard stderr 2017-02-21 20:45:18 -08:00