summaryrefslogtreecommitdiff
path: root/Functions
AgeCommit message (Collapse)AuthorFilesLines
2015-01-0930568: Add tetriscurses contrib function, port of tetris to zcursesMikael Magnusson1-0/+386
2014-12-2834068: create tempfiles without forking, and safe temp directory creationBarton E. Schaefer9-10/+10
2014-12-2734067: safe tempfile creation, part 1Barton E. Schaefer12-60/+57
2014-11-1319371 plus tweak: run-help helper for ipArtur Penttinen1-0/+42
2014-10-0933405: vcs_info: Make sure maxexports is set when VCS_INFO_set is calledFrank Terbeck1-0/+1
Reported-by: From: Marco Hinz <mh.codebro@gmail.com>
2014-10-0933391: vcs_info git: fix applied patch detection on git amMarc Finet1-10/+7
git-am also uses .git/rebase-apply for patch list but the file original-commit does not exist (as no commit exist). This patch handles both git rebase and git am. Also: - get the first line (rather than the first char) when the message contains only one line; - remove unused function (ironically that should have been used here).
2014-09-2933277: Fix VCS_INFO_reposub's command expansionFrank Terbeck1-3/+4
Reported-by: Marco Hinz <mh.codebro@gmail.com>
2014-09-2233217: vcs_info: use `--ignore-submodules=dirty` with diff/diff-indexDaniel Hahler1-3/+3
This will detect changes to submodules from the superproject's perspective, e.g. after `git rm submodule`. >From GIT-DIFF-INDEX(1)/GIT-DIFF(1): Using "dirty" ignores all changes to the work tree of submodules, only changes to the commits stored in the superproject are shown (this was the behavior until 1.7.0).
2014-09-1633184: vcs_info git: consider patches for rebaseMarc Finet1-42/+74
Since a rebase contains a list of patches to re-apply, re-use the facility for stgit to have the same mechanism. The patch list given to the gen-{un,}applied-string hooks is an array with the sha1 and the subject of the commit. On rebase merge, the applied patches prior to current contains only a number and "?".
2014-09-1633188: vcs_info git: set rrn before using itMarc Finet1-2/+2
This would fix handling get-revision, check-for-changes or check-for-staged-changes when set per repository.
2014-09-1433145: vcs_info git: fix applied-string nameMarc Finet1-1/+1
Documentation and hg backend use applied-string. patch-string does not appear anywhere.
2014-09-1433148: vcs_info quilt: refactor standalone detectionMarc Finet1-5/+3
Since VCS_INFO_bydir_detect always uses the vcs_comm[detect_need_file], it should be cleared when querying it without file.
2014-09-1433147: vcs_info git: detect revert or cherry-pick with multiple commitsMarc Finet1-0/+5
When revert or cherry-pick involve many commits the .git/sequencer directory holds context for the action and no CHERRY_PICK_HEAD exist.
2014-08-2333047: use git to simplify massively source distribution file selectionPeter Stephenson15-191/+1
2014-08-1433002: tcp_expect -P pm tags matches with a stringPeter Stephenson1-7/+28
2014-08-10unposted: updates for 5.0.5-dev-1 and subsequent 5.0.6 releasePeter Stephenson1-0/+1
2014-07-30%P at start of TCP function system prompt causes %-style prompt substPeter Stephenson1-0/+3
2014-07-24unposted: replace-argument can take negative prefix to count from endPeter Stephenson1-7/+9
2014-07-1732866: new replace-argument ZLE function.Peter Stephenson2-0/+55
Also a couple of read-from-minibuffer fixes: don't pass numeric argument to recursive edit, and hide the minibuffer edit from the undo history.
2014-06-0232662: vcs_info git: Fix stagedstr for empty reposDaniel Shahaf1-4/+10
In empty repositories, HEAD is an unresolvable symbolic ref. Start computing stagedstr/unstagedstr in that case; for the former, use a different method than the non-empty-repository case.
2014-05-2932621: vcs_info svn: 'Fix set-branch-format' when in subdirsDaniel Shahaf1-7/+15
The previous code would fail to detect the wcroot with Subversion 1.7+ when cwd is at least two levels below the root (i.e., ../../.svn exists and ../.svn doesn't), and would then pass to the hook the revision and basename of cwd rather than of the wcroot.
2014-05-2932619: vcs_info svn: Use the revision of cwdDaniel Shahaf1-3/+5
Previously, the value of the wc root would be used. In Subversion, it makes more sense to use the revision of cwd, since all commands (e.g., 'svn ci', 'svnversion') operate only on cwd and below, not on wcroot and below.
2014-05-0632597: vcs_info git: Describe detached heads symbolically.Daniel Shahaf1-1/+1
This makes %b expand to a refname rather than a sha1 when HEAD is detached but happens to match some ref (branch, tag, etc). The resulting output will typically contain a slash (e.g., "tags/v1.0.2", "heads/mybranch"), which helps distinguish it from the output in the "HEAD is a symbolic ref" case.
2014-04-07addition to 32527: also update .distfilesPeter Stephenson1-0/+1
2014-04-0732527: zcalc-auto-insert key binding for use in zcalcPeter Stephenson2-0/+11
2014-04-0532528: vcs_info: Add check-for-staged-changesDaniel Shahaf1-5/+16
2014-03-0132453: fix zcalc default base handlingPeter Stephenson1-1/+1
2014-02-28users 18531 plus doc etc.: new expand-absolute-path widgetPeter Stephenson2-0/+20
2014-01-2332299: add use of underscores on arithmetic output for spacingPeter Stephenson1-1/+1
2014-01-1732264: vcs_info, hg: Support detecting repos using ShareExtensionFrank Terbeck1-1/+1
2013-12-0532089: tweak to detect Subversion repositoryDaniel Shahaf1-1/+1
2013-11-2932066: fix %r and %S in vcs_info formats when a repository subdirectory is ↵Barton E. Schaefer2-3/+3
accessed via a symlink 31985 Clemens Hammacher and 32064 Hong Xu
2013-11-2332031 plus missed _run_help: get helpfiles install path corect in functionsPeter Stephenson1-1/+1
2013-11-0831940: zcalc -e uses arguments as inputPeter Stephenson1-9/+27
2013-10-27Some syntax adjustments in _expand_word_and_keep. Add a working URL.Barton E. Schaefer1-10/+17
2013-09-0831711: add execute-never style for MIME function system.Peter Stephenson1-1/+5
Allows alien file systems to be marked as not having executable fiels
2013-08-29users/17955: new "disown" style for MIME handlers.Peter Stephenson1-3/+6
Makes handlers put into the background run without job control.
2013-08-0731634: run-help compat with alias to noglob/nocorrectPhil Pennock1-0/+4
Given `alias fetch='noglob fetch'`, without this change `run-help fetch` recurses to invoke itself on the noglob command, bringing up the help for noglob. Similarly for nocorrect. Thus the user would have to quit out of the pager, then avoid quitting out of the loop, so that they can go into the second iteration and see the help for the second instance found by `whence -a`, which happens to be the target of the alias. With common pagers, that's thus 'q', 'not-q'. Somewhat frustrating. Without this change, `alias foo='noglob bar'` where `foo` is not otherwise a command would _never_ show the help for `bar`, since it only showed the help for `noglob` and there was no second line of whence output to trigger the second pass. With this change, aliases to `noglob|nocorrect` of a command somewhat ignore the presence of that precommand modifier; if a command is aliased to `noglob $itself`, then the result is that the first line of whence output is shown, no pager is used, the user can immediately see a prompt to continue and press something other-than-q to see the help for the command. If given `alias foo='noglob bar'` then `run-help foo` will immediately show the help for bar. This behaviour was chosen to be consistent with the existing alias support, but just working better with the precommand modifier.
2013-07-0331503: zmv improvements for user-specified programs.Peter Stephenson1-4/+11
-p splits words of commands passed to it. -P is like -p for when the program doesn't understand the -- convention
2013-06-1831485: vcs_info, git: Avoid error messages for `guilt' usersFrank Terbeck1-1/+3
Guilt uses the same internal directory for keeping state as stgit, but it doesn't use the same files (not surprisingly). This caused error messages due to missing files. This fixes that by making the "stgit-active?" test stricter. Reported-by: Axel Beckert <abe@debian.org>
2013-05-2931422: better heuristic for timestamps in age functionPeter Stephenson1-2/+8
2013-05-2131418: improve documentation for "age" functionPeter Stephenson1-1/+1
2013-05-2131417: age function needs protection against file names starting "-"Stephane Chazelas1-3/+3
2013-04-0531222: Stop {up,down}-line-or-beginning-search from triggering ↵Frank Terbeck2-0/+4
warn_create_global This is a followup to 30995 taking Peter's suggestions from 30997 into account.
2013-03-1731155: minor extra zcalc features and documentationPeter Stephenson1-1/+10
2013-03-1531154: make zcalc understand continuation lines with a backslashPeter Stephenson1-1/+11
2013-03-1031136: vcs_info: just set parameters instead of passing over a pipeMikael Magnusson1-12/+9
2013-03-1030639: Add support for showing the current action is cherry-pick to vcs_info ↵Mikael Magnusson1-0/+11
git backend
2013-03-05users/17666: zcalc -f sets FORCE_FLOATPeter Stephenson1-1/+4
2013-01-24users/17608: use function to modify currrent command line argumentPeter Stephenson1-13/+22