summaryrefslogtreecommitdiff
path: root/Functions
AgeCommit message (Collapse)AuthorFilesLines
2025-04-30Merge branch 'upstream' into debianJoe Rayhawk26-94/+639
2025-04-2853527: remove zgetoptdana1-198/+0
reverts most of 84ef0c523, 0e369f37d, and 9b68cf38f feature was not ready. may be re-added after 5.10 release
2025-04-2753516: add zgetopt contrib functiondana1-0/+198
2025-03-3153414: attempting to preview the "restore" keyword is nonsensicalFrank Dana1-3/+11
2025-03-3153413: "print -rP" in preview, in case of special charactersFrank Dana1-1/+1
2024-05-2452910: Improve handling of **/ patternsBart Schaefer1-3/+3
2024-03-0552641: incarg: add a backward variant and make it repeatablemidchildan1-7/+57
2024-02-1652546: incarg: avoid unneeded subshellMikael Magnusson1-2/+1
2024-02-1552520: add new features and improvements to the "incarg" ZLE widgetmidchildan1-31/+242
- Decrement integers without defining a new widget - Preserve the number of leading zeros - Increment binaries, octals, and hexadecimals - Move the cursor to the end of the incremented integer - Create a sequence of integers across terminal panes - Add a Vim variant - Also add tests
2024-02-03unposted: elaboration on Roman's "slurp" implementation from zsh-usersBart Schaefer1-0/+31
2024-01-0552465: use NULL_GLOB when expanding zmv input pattern to avoid NOMATCH exitBart Schaefer1-1/+7
2023-11-2952145: Prompt theme with current time and abbreviated VCS_info.Sebastian Gniazdowski1-0/+128
2023-10-2652240: use work-var $s not $suffix when setting flagsSebastian Gniazdowski1-1/+1
2023-10-11unposted (cf. 52166): remove obsolete helper for svkOliver Kiddle1-1/+0
2023-10-1151812: run-help for docker, perf, podman, ssh, svnadminJörg Sommer5-0/+26
2023-09-2151747: ip accepts the reduction of link to l.Jörg Sommer1-1/+1
2023-09-2151776: run-help-openssl: Reduce code and use new manpagesJörg Sommer1-7/+1
Openssl switches the naming of manpages to the common style openssl-$SUBCOMMAND, e.g. openssl-enc. For backward compatibility try to show the manpage with the old name if the new one doesn't exist.
2023-09-1652082: Enable linewise edit-command when in visual-line mode.Christoffer Lundell1-4/+19
2023-08-2752028: improvements to _shadow / _unshadow, plus helper and docBart Schaefer1-0/+11
2023-06-2251813: differentiate empty $2 from omitted $2 in version comparisonsStephane Chazelas1-1/+7
2023-05-1051593: improve search for command name after skipping prefix assignmentsBart Schaefer1-3/+3
This is aimed mostly at use of run-help as a standalone function rather than as a widget. When run-help is invoked outside widget context, there's no source line to search for the original command name, so this attempts searching the arguments.
2023-03-1351572: fix "shift" error when running standaloneBart Schaefer1-3/+3
2022-12-0951144, 51146: vcs_info git: stg: Extract patch descriptionsDaniel Shahaf1-2/+2
Joint work with Peter Grayson.
2022-12-0851142: vcs_info git: Check the get-unapplied style as documentedDaniel Shahaf1-2/+6
The style was treated as "always true" rather than as "settable, false by default" in the rebase-merge and cherry-pick cases. This affects the gen-unapplied-string hook, and may also affect gen-applied-string and set-patch-format hooks if they accessed VCS_INFO_get_data_git's internal parameters directly. If this affects you, just set the style in your zshrc: . zstyle ':vcs_info:git*:*:*' get-unapplied true
2022-12-0851138: Updated StGit patch detection in vcs_infoPeter Grayson1-9/+27
The vcs_info patch detection code attempted to interrogate StGit patch stack state by inspecting .git/patches/applied and .git/patches/unapplied. As of StGit 0.15 (2009), patch stack metadata is captured in the repo's object database. And as of StGit 1.0 (2021), no stack or patch state is maintained in any files in the .git/ directory. Zsh's approach for interrogating StGit patch state is thus obsoleted. This patch updates vcs_info to determine whether StGit is initialized on a branch by looking at the appropriate git refs and uses StGit's prescribed interface for interrogating applied and unapplied patch state via the `stg series` command. This approach will work with all versions of StGit >=0.15. Signed-off-by: Peter Grayson <pete@jpgrayson.net>
2022-12-0651088: fix standards reference in commentAtte Peltomäki1-1/+1
2022-10-1750786: Make match etc. local when used in styles.Peter Stephenson1-2/+2
Avoids side effects of add-zle-hook-widget.
2022-09-2550648: Use $ZCALC_HISTORY where appropriateJulian Prein1-1/+3
2022-06-0850335: simplify "wait" usage, fix signal handlingBart Schaefer1-10/+30
- remove the preliminary "wait" for all the process - remove "nomonitor" (because it was only needed for that "wait") - explicitly adds traps to exit for tty-generated signals plus TERM - capture the signal trap context and restore it in background jobs - wrap in an "always" block to clean up local helper functions - update comments to note another buglet and drop support for zsh 4.x.
2022-06-0450323: create helper for shadowing builtins or existing functions and use it ↵Bart Schaefer1-1/+2
when redefining compadd et al.
2022-05-2650286: avoid zed error if nounset is in effectPeter Stephenson1-6/+8
2022-05-14Jan Brieg: 50212 (and discussion): Add "bright" color variantsBart Schaefer1-2/+16
2022-04-11New upstream version 5.8.1.2-testAxel Beckert41-313/+749
2022-03-2849897: Eliminate reliance on $jobstates parameter, fix -P exit status check.Bart Schaefer1-17/+20
2022-03-08promptinit: only exclude current theme from preview if no arguments are givenMikael Magnusson1-3/+2
2022-02-2049728: vcs_info hg mq: Don't include applied patches in the unapplied patchesDaniel Shahaf1-0/+3
For instance, with 4 applied patches, 5 unapplied patches, and no guards involved, the patch-format style would indicate 9 (= 4+5) unapplied patches and 4 applied patches.
2022-02-2049727 (+ comment): vcs_info quilt: Pass the patches dir path to the ↵Daniel Shahaf4-4/+15
gen-applied-string, gen-unapplied-string, and set-patch-format hooks I use that in my gen-applied-string hook.
2022-02-20unposted: vcs_info hg mg (with get-unapplied set): Stop leaking a variable ↵Daniel Shahaf1-1/+1
to global scope
2022-02-12security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignmentMarc Cornellà1-1/+1
Tweaked per discussion in security/90, security/91 (cherry picked from commit b34d33e3b3c5ae30e8315111f07634c1e7507531)
2022-02-12security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignmentMarc Cornellà1-1/+1
Tweaked per discussion in security/90, security/91
2022-01-29unposted: vcs_info git: Teach the rebase-apply test case generator to also ↵Daniel Shahaf2-1/+12
generate rebase-merge test cases
2022-01-29unposted: vcs_info git: Add a missing guard against redefining a function.Daniel Shahaf1-0/+1
2022-01-29unposted: vcs_info git: Deconfuse $EDITORDaniel Shahaf1-2/+2
Work around <https://github.com/chrisbra/vim-zsh/issues/39>.
2022-01-29unposted: vcs_info: Add Vim modelinesDaniel Shahaf3-0/+6
... for consistency with all other vcs_info function files.
2022-01-2949723: vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when ↵Daniel Shahaf1-21/+24
get-unapplied hasn't been set This affects the post-quilt hook. Before this patch, if no patches have been applied and get-unapplied hasn't been set, the second argument to that hook would undergo null elision. The generation of patch subjects for the gen-applied-string, gen-unapplied-string, and set-patch-format hooks was unaffected since it was guarded by [[ -n $patches ]].
2022-01-2949722: vcs_info quilt: Refactor for readability. No functional change.Daniel Shahaf1-6/+7
2022-01-27unposted: vcs_info quilt: Remove a no-op variable assignmentDaniel Shahaf1-1/+0
2022-01-2549709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside ↵Daniel Shahaf1-1/+0
vcs_info If someone does 'HGPLAIN=1 vcs_info', any vcs_info hooks should be called with HGPLAIN set. Declaring it 'local' broke that.
2022-01-0149667: Include US spelling of "grey" ("gray")Matt Alexander1-3/+5
Co-authored-by: Daniel Shahaf <d.s@daniel.shahaf.name>
2021-11-12github #82: Fix typosDimitris Apostolou3-3/+3