1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-06-13 04:56:30 +02:00
Commit Graph

6886 Commits

Author SHA1 Message Date
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
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 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
Daniel Hahler b6404e18c0 35126: add missing ChangeLog entry for previous commit 2015-05-18 02:36:37 +02:00
Daniel Shahaf 7990cf983e 35161: completion: git: Fix typo in 35061 2015-05-16 22:57:22 +00:00
Peter Stephenson d52bf91659 35155: cmdpop() could be called erroneously on error 2015-05-15 20:26:08 +01:00
Oliver Kiddle 32a448dc25 users/20219: fix completion for git options 2015-05-15 18:04:40 +02:00
Peter Stephenson 153a99de7e 35154: NEWS on arithmetic evaluation changes 2015-05-15 10:26:35 +01:00
Peter Stephenson 0da0a0b9c7 35153: nested math substitution 2015-05-15 10:19:53 +01:00
Peter Stephenson 59a874f94e 35151: improved check for parameter q and b flags 2015-05-15 09:58:17 +01:00
Peter Stephenson e86720190e 35131: allow "[]" to match empty character set.
This only works if there's no further "]" in the pattern,
since if there is the first "]" has to match a literal character.
2015-05-15 09:35:24 +01:00
Oliver Kiddle 15aa99b0fe 35139: complete the new (b) parameter flag 2015-05-15 00:13:30 +02:00
Oliver Kiddle 63ffbab84d Øystein Walle: 34841 (tweaked): allow grouping of thousands in printf format string 2015-05-14 22:56:24 +02:00
Oliver Kiddle 55716ea337 unposted: include .distfiles for new directory 2015-05-14 22:39:05 +02:00
Daniel Hahler 968c5ceaa7 35062: __git_setup_revision_options includes __git_setup_diff_options 2015-05-14 19:03:21 +02:00
Daniel Hahler a1c1f6828c 35061: add __git_setup_diff_stage_options and use it with _git-diff-files and _git-diff explicitly 2015-05-14 19:00:32 +02:00
Daniel Hahler fec4e7243b 35016: introduce new pretty formats %g[sdD] for reflog information 2015-05-14 18:56:23 +02:00
Peter Stephenson 85a4cf9b36 35110: don't implicitly initialize restricted integers to zero 2015-05-14 09:28:57 +01:00
Oliver Kiddle 08fb0f6602 35092: fix for numeric arguments from vi operator pending mode 2015-05-13 23:07:09 +02:00
Oliver Kiddle d257f0143e 35093: new zle widgets for Vim-style text objects 2015-05-13 23:05:20 +02:00
Peter Stephenson f454ee26a8 35114: zformat -a multibyte char widths 2015-05-13 21:02:48 +01:00
Christian Hesse 29fdde5fb7 35107: new ip options to complete 2015-05-13 19:34:21 +01:00
Peter Stephenson ec57c91b58 users/20203: nested functions in always blocks when exit pending 2015-05-13 16:17:04 +01:00
Jun T 9c3aeef99a unposted: include doc tweek to expn.yo from 35071
expn.yo is now essentially the same as commit 6269db8
2015-05-12 15:39:18 +09:00
Jun T 8421c9e59d 35086: reapply a hunk from 35067 for expn.yo
the hunk has been mistakenly reverted by 35075
2015-05-12 14:51:43 +09:00
Daniel Hahler b884853756 35060 + 35072: completion: git: split __git_heads into local and remote
It is useful to have this distinction visually.

This also uses `--format=%(refname:short)` directly with `git
for-each-ref`.
2015-05-12 00:59:07 +00:00
Jun-ichi Takimoto ffdeb1c257 35075: improve manual format
also fixed a ChangeLog entry for 35034 (2015-05-06)
2015-05-12 00:36:18 +09:00
Oliver Kiddle 5b7e50dcd0 35049: allow jail completion to include jid 0 for the host and to
complete jails by any parameter
2015-05-11 12:11:32 +02:00
Peter Stephenson d756f4eafd 35078: Add backslash quoting to parameter (b) flag from 35067. 2015-05-11 09:40:00 +01:00