1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-25 05:10:28 +02:00
Commit graph

10000 commits

Author SHA1 Message Date
Daniel Shahaf
9d460a9d7f 39806: internal: Document zle's vichgbuf. 2016-11-03 16:44:14 +00:00
Daniel Shahaf
4ad1ad9777 39805: internal: Document some compadd internals. 2016-11-03 16:44:14 +00:00
Daniel Shahaf
b4d5a55b39 39804: internal: Document matchspec flags. 2016-11-03 16:44:14 +00:00
Daniel Shahaf
952e607395 39803: internal: Document bin_compadd(). 2016-11-03 16:44:14 +00:00
Daniel Shahaf
36b290814f 39802: internal: Document and simplify multiquote().
The code simplifications take advantage of the fact that all callers
pass either 0 or 1 for 'ign'.

The tildequote() text is from workers/39271.
2016-11-03 16:44:14 +00:00
Daniel Shahaf
0e9faf67aa users/22063: bracketed-paste: Document ability to specify a vi register. (after users/22036) 2016-11-03 16:44:14 +00:00
Barton E. Schaefer
ad085f1dec unposted: fix typo that was causing handling of "--" argument to fail 2016-11-03 09:13:03 -07:00
Barton E. Schaefer
060ff48915 39820: vi-repeat handles multi-key bindings 2016-11-03 09:13:03 -07:00
Barton E. Schaefer
696444714e 39813: fix keybuflen after ungetting extra keys from the end of keybuf in getkeymapcmd(). 2016-11-03 09:12:10 -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
Peter Stephenson
4073a6655c 39815: Read input to end on parse error in $(...) inside a string.
This allows ${(z)} to output the whole string, although we can't do
word splitting from the error onwards.
2016-11-03 10:30:00 +00:00
Barton E. Schaefer
ae4c035cde 39811: vi-repeat-change must not be the "motion" of vi-change, lest it infinitely repeat itself 2016-11-02 16:27:29 -07: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
Daniel Shahaf
33ceb8b58f 39787: Add a regression test for 39412. 2016-11-01 05:48:55 +00: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
74aa45910b 39786: vcs_info (hg): Use native hexdump implementation instead of external command.
Fixes issue whereby the external command would print "*" for repeated
octets.

Includes comment change, cf 39790.
2016-10-31 18:35:47 +00:00
Peter Stephenson
88c42a2ba0 39777: $() is a valid empty command substitution 2016-10-30 17:12:04 +00:00
Barton E. Schaefer
ab81b98c49 39758: revise 39704 for array and hash parameters; more POSIXBUITINS tweaks for
export

39704 was commit 0f5e670, forgot to reference article number in that log.

"typeset -p" outputs "typeset" for array and hash parameters, even when
exported, because those types can be marked export but are never pushed
to the enviroment.

For POSIXBUILTINS, "export var" does not implicitly set $var, and its
export state is preserved when assigned (but not when explicitly unset).
2016-10-29 11:56:50 -07:00
Barton E. Schaefer
87c951c6bd unposted: add "--" to zle widget call for conventional sanity 2016-10-29 10:08:53 -07:00
Daniel Shahaf
dd8b756610 _git-cherry-pick: Complete argv[2] et seq. 2016-10-29 03:03:28 +00:00
Barton E. Schaefer
9cfd26bf10 unposted: handle empty pastes and "zle bracketed-paste variablename" form. 2016-10-28 16:44:35 -07:00
Daniel Shahaf
3881c6b9a4 users/22036: bracketed-paste: Document cutbuffer behaviour; clarify. 2016-10-28 16:02:03 +00:00
Daniel Shahaf
5dbfbd8bd0 unposted: Minor documentation fixes (markup, grammar, etc). 2016-10-27 18:25:13 +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
Barton E. Schaefer
12e862764f unposted: mention former behavior of typeset for comparison 2016-10-26 20:50:51 -07:00
Barton E. Schaefer
364c4047e7 39725: more metafication of patterns. 2016-10-25 12:45:51 -07:00
Peter Stephenson
39ae9cd10a 39723: metafy string passed to pattern in complist.
Also additional safety tokenizing a string with Meta characters.
2016-10-25 11:53:49 +01:00
Barton E. Schaefer
0f5e670cde "typeset -p" uses "export" commands or the "-g" option for parameters that are not local to the current scope 2016-10-24 07:14:39 -07: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
Daniel Shahaf
f1c0480afc 39707: Document _dir_list. 2016-10-24 00:53:32 +00:00
Peter Stephenson
6f071b2309 39715: Handle multibyte characters in complist listing 2016-10-23 21:32:58 +01: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
Peter Stephenson
11343d89ef 39688: Skip out of P_EXACTLY pattern loop if P_PURES.
If it's really a pure string, there's only one exact match.  We could
overwrite the next pointer; usually this didn't matter because
we'd hit a termination, but if we reallocated we might be looking
at garbage.
2016-10-20 12:20:18 +01:00
Peter Stephenson
d2c9f85f59 39683: Update scan pointers after possible alloc.
Problem could cause next scan index to point into an invalid block
when handling meta characters.
2016-10-20 10:43:52 +01:00
Barton E. Schaefer
b2d280038f 39680: correctly handle case of popping last arena
This mattered only when compiling with --enable-stack-allocation because
otherwise the heap was never completely empty.
2016-10-19 07:31:46 -07:00
Peter Stephenson
7e7e2d7e63 39678: metafication of printf %q argument and result 2016-10-19 10:39:58 +01:00
m0viefreak
5b192a4cd1 39590: zle: Call zle-line-pre-redraw after inserting a completion result
This is necessary to make sure redrawhook() is called while
cycling results in menu completion.
2016-10-18 14:19:59 +00: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
Daniel Shahaf
a8754b63fc 39500: compdescribe: perform on-screen-width computation using the "nice" length, since the matches are rendered by nice*() functions by compadd
Remove two "###" question comments relative to the patch posted, since the
answer to them is (clearly) negative.
2016-10-16 12:40:58 +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
Martijn Dekker
31c6cfca9c 39625: case needs to reset lastval if no pattern matched 2016-10-13 10:49:02 +01:00
Oliver Kiddle
9d393f7b7d 39622: add test cases for recent _arguments fixes, exclusion lists and -A/-S 2016-10-13 10:05:18 +02:00
Oliver Kiddle
7b3ec54ebe 39611: with _arguments sets completion stopped if one of the rest arguments starts with a dash 2016-10-13 10:03:13 +02:00