1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-07-10 04:21:37 +02:00
Commit graph

8663 commits

Author SHA1 Message Date
Peter Stephenson
c818ee8adb unposted: Update version to 5.0.8-dev-0 for new developments 2015-06-01 11:24:21 +01:00
Peter Stephenson
f0068edb48 unposted: release 5.0.8 2015-05-31 18:52:03 +01:00
Peter Stephenson
75cafccc0a 35343: Avoid $#name length handling for POSIX_IDENTIFIERS 2015-05-31 16:40:14 +01:00
Barton E. Schaefer
911edc5ea4 users/20238: add "fc -L" to operate only on the local shell history
Also avoid invoking the editor on empty results.
2015-05-30 15:22:09 -07:00
Han Pingtian
fea56dc32b 35234: better zfget completion with paths 2015-05-30 20:11:19 +01:00
Han Pingtian
63dfc82bd2 35311: typo in zfuput behaviour 2015-05-30 20:08:36 +01:00
Oliver Kiddle
4c2a62fe86 35310 (plus undo 35268 (git 899613f)): fix quoting of cached arrays
Also add file name reference to ChangeLog entry from rev 899613f.
2015-05-30 11:14:48 -07:00
Peter Stephenson
e88610b786 35326: $#- was misparsed as ${#-} 2015-05-29 16:06:47 +01:00
Peter Stephenson
d9243734e1 20237: fix typo in foregoing commit 2015-05-29 12:19:23 +01:00
Peter Stephenson
cba1d41ffc 2037: ${functions[foo]} shouldn't be unmetafied.
When passed back from the parameter-specific "get" handler it's
still in the shell's internals, so remains metafied.

This caused mayhem with UTF-8 characters in function bodies.
2015-05-29 12:17:18 +01:00
Daniel Hahler
da603d0a00 35098: completion: git: provide --amend also with "message" group
Especially during a git rebase, you would use `git commit -m foo
--amend`.
2015-05-29 01:56:18 +02:00
Oliver Kiddle
a711b2abef 35315: replace inappropriate uses of _path_commands 2015-05-28 22:45:34 +02:00
Peter Stephenson
2b08d0ed67 35318: POSIX_BUILTINS behaviour for getopts.
It needs to keep OPTIND, as well as the index within the
string pointed to by OPTIND, global in this case.
2015-05-28 18:32:39 +01:00
Peter Stephenson
cb596a55d9 35306: "test -z \(" failed due to parse confusion 2015-05-27 21:25:55 +01:00
Peter Stephenson
fd786a5c8a Update to 5.0.7-dev-4 2015-05-27 19:05:04 +01:00
Daniel Hahler
0c8d21adc2 35293: fix zstyle lookup with _php: use trailing colon 2015-05-27 19:39:17 +02:00
Daniel Hahler
6925e2b298 35286: fix zstyle lookups with _baz and _tla
Add trailing colons to context being used with `zstyle -s`.
2015-05-27 19:38:05 +02:00
Daniel Hahler
f080429439 35285: _cdr: fix zstyle lookup for recent-dirs-insert
The string was quoted incorrectly and missed the final ":".
2015-05-27 19:35:59 +02:00
Han Pingtian
2d86de91c1 35299: Improve effect of zfdir -r 2015-05-27 09:32:15 +01:00
Jun-ichi Takimoto
0a97508bf6 35289: fix typos in the description of emulate
based on 34981 by Han Pingtian
2015-05-26 23:12:37 +09:00
Peter Stephenson
899613f535 c.f. 35268: revert completion cache optimisation for now 2015-05-26 10:00:46 +01:00
Han Pingtian
9a6f55dc7a 35295: Try harder with zftp directory listing 2015-05-26 09:46:25 +01:00
Eric Cook
d2f0b3ccb2 35292: yum install complets local files 2015-05-26 09:43:12 +01:00
Daniel Shahaf
9fcc105ff6 35127#1: Fix _describe/compdescribe problem with unsorted groups 2015-05-23 10:05:06 +00:00
Peter Stephenson
2f6a8a6c6c Tweak test for function level of exit.
Sometimes local level jumps so we need an inequality instead
of an equality.
2015-05-22 23:37:45 +01:00
Jun-ichi Takimoto
589350c776 35255: if available, use texi2any instead of texi2html 2015-05-23 01:01:25 +09:00
Daniel Hahler
f69968acdf ChangeLog: for previous commit; fix date for older one 2015-05-22 01:14:19 +02:00
Daniel Hahler
068558616a 35261: completion: git: __git_recent_commits: local ret
Without this, `ret` will be set to 1 with `git diff --ex<tab>` and
result in duplicate entries:

   % git diff --ex<tab>
    -- option --
   --exit-code    -- report exit code 1 if differences, 0 otherwise
   --exit-code  -- report exit code 1 if differences, 0 otherwise
   --ext-diff     -- allow external diff helper to be executed
   --ext-diff   -- allow external diff helper to be executed
   --no-ext-diff  -- disallow external diff helper to be executed
    -- recent commit object name --
2015-05-22 01:12:10 +02:00
Peter Stephenson
a95f2c6071 35250: Fix case documentation (SH_GLOB) 2015-05-21 10:43:32 +01:00
Peter Stephenson
afb78f5d14 35248: treat fully parenthised zsh patterns as complete case patterns again 2015-05-21 10:25:07 +01:00
Barton E. Schaefer
af957f2ed6 35231: make mkevnstr() safe for NULL value 2015-05-20 10:14:04 -07:00
İsmail Dönmez
9584c76fb7 35232: matching parentheses 2015-05-20 13:53:36 +01:00
Daniel Shahaf
c174947040 35224: completion: git: Add fast-export --signed-tags=warn-strip 2015-05-19 20:35:14 +00:00
Daniel Hahler
a0d269460a 35217: add missing changelog entry; use "-O expl" with _alternative 2015-05-19 10:43:24 +02:00
Daniel Hahler
7408f91d31 35217: completion: git: send-email: complete (recent) commits
This adds `__git_commit_objects_prefer_recent` as alternative for
git-send-email's completion.
2015-05-19 10:28:51 +02:00
Daniel Hahler
8f6823b710 __git_commit_objects: do not use _guard, but only a pattern
With using `_guard` there like it's been done, the completion could not
be selected, probably because of the call to `_message` therein.

This changes it to use only the logic/check from `_guard` that we want
here.
2015-05-19 08:50:42 +02:00
Daniel Hahler
ed3e5f521d Completion/Unix/Command/_git: remove -2 with __git_recent_commits
Remove "-2" for _describe in __git_recent_commits.

This fixes the duplicate entries issue, because __git_recent_commits
gets called twice for _git-checkout (for __git_revisions and
__git_tree_ishs):

1. __git_commit_objects_prefer_recent _alternative __git_commits
   __git_revisions _alternative _git-checkout
2. __git_commit_objects_prefer_recent _alternative __git_commits
   __git_tree_ishs _alternative _git-checkout
2015-05-19 07:49:48 +02:00
Daniel Hahler
d0057538d3 35204: fix broken __git_recent_commits from previous commit
This fixes 1e7bb4a: newlines need to be kept (from the "%d" part).
2015-05-19 06:38:43 +02:00
Daniel Hahler
1e7bb4a8f8 35164: fix __git_commit_objects/__git_recent_commits
$pipestatus for `: foo` is 0 always.

Without this, "git checkout" in a non-git directory would complete " ",
but not result in a note/error about not being in a git dir.
2015-05-19 05:42:21 +02:00
Daniel Shahaf
6bfe6fd84b users/20222: completion: git: Add matchspec for heads
Allows 'git checkout o/m<TAB>' to complete 'origin/master'.

Moreover, '/x<TAB>' would complete 'foo/bar/xyzzy/baz', since the matchspec
uses not '*' but '**'.
2015-05-19 01:55:15 +00:00
Peter Stephenson
ff19094669 35193: Add "unalias -a". 2015-05-18 16:57:08 +01:00
Peter Stephenson
2caa5ddd79 35187: unbalanced parentheses in _vim 2015-05-18 12:46:33 +01:00
Peter Stephenson
2d6569e590 35184: Additional case fix for 35168.
Lexical analysis flags got screwed up after a "|", so we
didn't parse patterns properly, in particular those with parentheses.
2015-05-18 12:06:43 +01:00
Peter Stephenson
52aeb9aaeb 35168: Improve parsing of case patterns.
"|" is now found properly by looking for words that come
from the lexical analyser, rather than hacking a pattern
returned in one dollop.

Update some completion functions that need extra quoting
as a result.

Add test for new parsing.

Update version number to 5.0.8-dev-3 because of wordcode
incompatibility.
2015-05-18 09:56:00 +01:00
Daniel Shahaf
34a1489f43 35105: completion: git: add distance_from_head to __git_recent_commits
This adds the "HEAD~15" gitrevisions(7) identifier of the commit to the
description, which also uniquifies, isn't redundant, and may be easier
to type.

Ref: zsh-workers/34820 (http://www.zsh.org/mla/workers/2015/msg00744.html)
2015-05-18 02:48:03 +02:00
Daniel Hahler
733db1b411 35106: completion: git: unique name for __git_recent_commits
This helps to distinguish it from __git_commit_objects.
2015-05-18 02:48:03 +02:00
Daniel Hahler
a0b221e7c5 35103: completion: git: add %cr to commit objects (all and recent) 2015-05-18 02:48:03 +02:00
Daniel Hahler
94c6b32fe7 35104: completion: git: __git_commit_objects: query 1000 commits
Also, `--all` and `--reflog` is used to get all commits.

It adds the _guard in front, so only non-empty values will come here.
Also, __git_commit_objects_prefer_recent will only call it, if there are
no matching recent commits.
2015-05-18 02:48:03 +02:00
Daniel Hahler
454f079852 35101: completion: git: add __git_commit_objects_prefer_recent
This is used with __git_commits then, and is meant to only call
__git_recent_commits, if there are matches.
2015-05-18 02:48:03 +02:00
Daniel Hahler
1d5b225498 35100: __git_recent_commits: massage ' ->*' from heads
Handle " -> master, origin/master" in decorated git-log output, and add
it as separate entries.
2015-05-18 02:48:03 +02:00