summaryrefslogtreecommitdiff
path: root/Functions
AgeCommit message (Collapse)AuthorFilesLines
2021-09-0645180: clarify doc for POSIX EREs, fix an issue with PCRE when the ↵Stephane Chazelas2-31/+86
replacement was empty or generated more than one element
2021-09-0649218: run-help filters cmd_args before calling run-help-<command>Marlon Richert7-26/+13
2021-06-0348942: Let EDITOR invoked by edit-command-line know it's a zsh scriptAkinori MUSHA1-0/+1
2021-05-1848601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.Daniel Shahaf1-1/+1
Not tested.
2021-05-1648853: improved handling of theme resets when changing prompt themes, ↵Marlon Richert1-94/+71
especially for theme preview
2021-05-1548710: histed + other zed updatesBart Schaefer1-13/+49
2021-05-1548707: fix keymap handling when zed invokes read-from-minibuffer; update docBart Schaefer1-5/+22
2021-04-2148606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and ↵Daniel Shahaf1-3/+13
catch errors.
2021-04-21users/26635 (tweaked): vcs_info hg: Compute the branch name correctly when ↵Daniel Shahaf1-3/+3
get-revision is set and check-for-changes is not Tweak: Simplify an always-true condition. Review-by: Manuel Jacob
2021-04-1947489: rename standout as italicBart Schaefer1-1/+2
2021-03-2947561 (the git and cvs parts) (compare 44919 + 44920): vcs_info internals: ↵Aleksandr Mezin4-13/+18
cvs, git: Set ${vcs_comm[basedir]} like all other backends do. That doesn't affect anything, not even other vcs_info internals; it's just for consistency across backends.
2021-03-0748147/0002: zmathfunc: Fix bug where the exit code would be non-zero if the ↵Daniel Shahaf1-2/+8
expression evaluted to zero.
2021-02-2248094: apply cleanup commands of the current theme on any theme changeArseny Maslennikov2-19/+36
* Rename zstyle `cleanup' on the context `:prompt-theme' to `restore' everywhere but in prompt_cleanup(). It is only used as a restore mechanism now. * Ensure prompt_cleanup() continues to store its command list in the `cleanup' style. * Clean up before theme switch at the end of set_prompt(). * Prepend every use of prompt_*_setup (which might modify the shell state in ways that require cleanup) with a cleanup run. * Adjust `prompt restore' to do both parts of the newly split restore mechanism, cleanup first.
2021-02-1947867: Fix RPROMPT typo in prompinitArseny Maslennikov1-2/+2
2021-01-2747873: Improve completion within dynamic directory namesPeter Stephenson1-1/+3
2021-01-23users/26406: preserve caller setopts in zargsBart Schaefer1-2/+15
2020-12-1147731 (+unposted): add run-help assistant for btrfsJun-ichi Takimoto1-0/+22
also fix format errors in contrib.yo
2020-12-1143946: call run-help for the command given to sudoSamir Benmendil1-1/+1
2020-08-1647307: edit-command-line: restrict editing to region if it is activeMikael Magnusson1-7/+29
2020-08-1647306: edit-command-line: add editor styleMikael Magnusson1-2/+6
2020-08-1647305: edit-command-line: when possible, set $BUFFER directlyMikael Magnusson1-4/+23
This avoids the send-break which is both visually unappealing and might break some use cases where the user wishes to wrap edit-command-line in another widget.
2020-08-0947303: vcs_info hg: Fix changing the expansion of %g (hook_com[guards]) in ↵Daniel Shahaf2-4/+10
the set-patch-format hook (regression from workers/40480). To reproduce, go to a hg repository with active mq guards and configure vcs_info as follows: zstyle '*' get-unapplied true zstyle ':vcs_info:*set-patch-format*' hooks f zstyle '*' patch-format '[%g : %G]' zstyle '*' nopatch-format '[%g : %G]' zstyle '*' formats '%m' +vi-f () { hook_com[guards]+=XXX } The regression was first released in 5.3.1-test-2, over three years ago.
2020-06-2746072 + 46136: Add the 'zle $widget -f nolast' syntax, to improve ↵Daniel Shahaf1-2/+2
add-zle-hook-widget support for multiple hook functions. See workers/46004 for the use-case.
2020-06-2246091: Add code to Mercurial VCS backend to show topic if there is any.Manuel Jacob1-1/+10
"Topics" is an experimental concept in Mercurial that augments the current branching concept (called "named branches"). For more information, see the not always up-to-date Mercurial Wiki page https://www.mercurial-scm.org/wiki/TopicPlan.
2020-03-2845644: vcs_info git: Fix current patch's name in several cases.Daniel Shahaf1-0/+15
2020-03-2745627: vcs_info git: Under git-am(1) conflicts, pass to the ↵Daniel Shahaf1-3/+11
gen-applied-string hook information on already-applied patches. The hook already receives information about the current (topmost applied) patch and, if the get-unapplied style is set, about future (unapplied) patches. Tested in the Functions/VCS_Info/test-repo-git-rebase-apply scenario, after manually converting the rebase to a «git am». (Specifically, I ran: mkdir d git rebase --abort git format-patch rebase_from_this..HEAD -o d git checkout rebase_onto_this git am d/* .)
2020-03-2745625: vcs_info svn: Detect the "working copy format is too new" error.Daniel Shahaf1-1/+9
2020-03-2745626: vcs_info: Deduplicate calling the set-branch-format hook.Daniel Shahaf6-33/+31
2020-03-2745624: vcs_info: Set $rrn in all backends.Daniel Shahaf3-0/+4
2020-03-1545541: internal: vcs_info git: Add a test case repository for rebase-apply ↵Daniel Shahaf1-0/+49
situations
2020-03-1545539: vcs_info git: In non-interactive rebases, obtain applied patches' names.Daniel Shahaf1-5/+17
2020-03-1545540: vcs_info git: In non-interactive rebases, compute patch names for ↵Daniel Shahaf1-6/+25
unapplied patches.
2020-03-1545543: vcs_info quilt: Allow quiltcommand to be a function.Daniel Shahaf1-2/+3
Before this commit, it could only be an external command.
2020-03-1545547: vcs_info git: In interactive rebases, process gen-unapplied-string ↵Daniel Shahaf1-7/+16
arguments like gen-applied-string arguments are processed. I consider this a bugfix, since it's unexpected for -applied and -unapplied to differ about this.
2020-03-1545546: vcs_info git: In interactive rebases, properly support the full form ↵Daniel Shahaf1-2/+2
of the "exec" verb. The code before this commit happened to have done the right thing: "exec" lines were handled by the catchall forward compatibility case, which happened to have had virtually the same effect as the correct case. However, that was merely an accidental result. This patch makes the code do the right thing deliberately, rather than by accident.
2020-03-1545545: vcs_info git: In interactive rebases, ignore comment lines.Daniel Shahaf1-0/+4
2020-02-17github #48/0002: vcs_info git: properly detect bare repositoriesbrian m. carlson1-0/+4
We currently detect Git repositories by finding the top level of the working tree, and if we fail to detect it, assume that we're not in a repository. However, there's a case we don't consider: a bare repository. Let's detect if the user is in a bare repository by checking if gitdir is set, and if so, using that if there is no working tree. We now detect bare Git repositories with vcs_info, as expected.
2020-02-17github #48/0001: vcs_info git: avoid warnings in bare repositoriesbrian m. carlson1-1/+1
Git 2.25 introduced a change to how git rev-parse --show-toplevel behaves. Traditionally, it succeeded with no output if the user was in a bare repository. Now it dies, printing an error to standard error. Consequently, when the user is in a bare repository with a newer Git, vcs_info prints noisily to standard error. While this is functionally harmless, it is annoying for the shell to print messages from Git every time the prompt is printed, so let's silence the error message.
2020-01-0945269: Fix misspellings in completions and elsewhere.Jens Schleusener1-1/+1
2020-01-0545239: Remove 'appendhistory' from zsh-newuser-installAndrey Butirsky1-1/+0
It is on by default, and new users are unlikely to want to change it.
2019-12-2245114: vcs_info quilt: Improve support for svn-style patch headers.Daniel Shahaf1-7/+13
Additional lines between the |-separated header line and the actual log message, as generated by 'svn log -v' and 'svn log -g', are now supported. This change affects you if you have quilt patches with 'svn log'-style information in their headers, regardless of whether you use quilt standalone, quilt over svn, or quilt over some other VCS.
2019-12-1145003: Fix more documentation typosMartijn Dekker2-3/+3
2019-12-0344960: vcs_info cvs: Fix infinite loop when /CVS exists.Daniel Shahaf1-3/+9
2019-12-0344961: vcs_info svn: Fix infinite loop when /.svn exists.Daniel Shahaf1-5/+7
2019-12-0344962: vcs_info: Document internal function and variableDaniel Shahaf2-0/+18
2019-11-2944958: vcs_info quilt: Avoid forksDaniel Shahaf1-5/+5
2019-11-2944945: vcs_info git: Optimize detection by running fewer external commands.Daniel Shahaf1-2/+1
2019-09-24unposted (see 44772): quote the string argument to zle -UBart Schaefer1-2/+2
2019-07-1044305: Fix zsh_directory_name_genericPeter Stephenson1-8/+15
Longest prefix matching was broken if there were suffixes indicating further handling.
2019-07-0843755: Fix state management for repeat uses to avoid clobbering command line ↵Bart Schaefer1-2/+3
when NOT a repeat