about summary refs log tree commit diff
path: root/Functions
Commit message (Collapse)AuthorAgeFilesLines
* 52641: incarg: add a backward variant and make it repeatablemidchildan2024-03-051-7/+57
|
* 52546: incarg: avoid unneeded subshellMikael Magnusson2024-02-161-2/+1
|
* 52520: add new features and improvements to the "incarg" ZLE widgetmidchildan2024-02-151-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
* unposted: elaboration on Roman's "slurp" implementation from zsh-usersBart Schaefer2024-02-031-0/+31
|
* 52465: use NULL_GLOB when expanding zmv input pattern to avoid NOMATCH exitBart Schaefer2024-01-051-1/+7
|
* 52145: Prompt theme with current time and abbreviated VCS_info.Sebastian Gniazdowski2023-11-291-0/+128
|
* 52240: use work-var $s not $suffix when setting flagsSebastian Gniazdowski2023-10-261-1/+1
|
* unposted (cf. 52166): remove obsolete helper for svkOliver Kiddle2023-10-111-1/+0
|
* 51812: run-help for docker, perf, podman, ssh, svnadminJörg Sommer2023-10-115-0/+26
|
* 51747: ip accepts the reduction of link to l.Jörg Sommer2023-09-211-1/+1
|
* 51776: run-help-openssl: Reduce code and use new manpagesJörg Sommer2023-09-211-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.
* 52082: Enable linewise edit-command when in visual-line mode.Christoffer Lundell2023-09-161-4/+19
|
* 52028: improvements to _shadow / _unshadow, plus helper and docBart Schaefer2023-08-271-0/+11
|
* 51813: differentiate empty $2 from omitted $2 in version comparisonsStephane Chazelas2023-06-221-1/+7
|
* 51593: improve search for command name after skipping prefix assignmentsBart Schaefer2023-05-101-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.
* 51572: fix "shift" error when running standaloneBart Schaefer2023-03-131-3/+3
|
* 51144, 51146: vcs_info git: stg: Extract patch descriptionsDaniel Shahaf2022-12-091-2/+2
| | | | Joint work with Peter Grayson.
* 51142: vcs_info git: Check the get-unapplied style as documentedDaniel Shahaf2022-12-081-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
* 51138: Updated StGit patch detection in vcs_infoPeter Grayson2022-12-081-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>
* 51088: fix standards reference in commentAtte Peltomäki2022-12-061-1/+1
|
* 50786: Make match etc. local when used in styles.Peter Stephenson2022-10-171-2/+2
| | | | Avoids side effects of add-zle-hook-widget.
* 50648: Use $ZCALC_HISTORY where appropriateJulian Prein2022-09-251-1/+3
|
* 50335: simplify "wait" usage, fix signal handlingBart Schaefer2022-06-081-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.
* 50323: create helper for shadowing builtins or existing functions and use it ↵Bart Schaefer2022-06-041-1/+2
| | | | when redefining compadd et al.
* 50286: avoid zed error if nounset is in effectPeter Stephenson2022-05-261-6/+8
|
* Jan Brieg: 50212 (and discussion): Add "bright" color variantsBart Schaefer2022-05-141-2/+16
|
* 49897: Eliminate reliance on $jobstates parameter, fix -P exit status check.Bart Schaefer2022-03-281-17/+20
|
* promptinit: only exclude current theme from preview if no arguments are givenMikael Magnusson2022-03-081-3/+2
|
* 49728: vcs_info hg mq: Don't include applied patches in the unapplied patchesDaniel Shahaf2022-02-201-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.
* 49727 (+ comment): vcs_info quilt: Pass the patches dir path to the ↵Daniel Shahaf2022-02-204-4/+15
| | | | | | gen-applied-string, gen-unapplied-string, and set-patch-format hooks I use that in my gen-applied-string hook.
* unposted: vcs_info hg mg (with get-unapplied set): Stop leaking a variable ↵Daniel Shahaf2022-02-201-1/+1
| | | | to global scope
* security/82: VCS_Info: Fix typo in hook_com[base-name_orig] assignmentMarc Cornellà2022-02-121-1/+1
| | | | | | Tweaked per discussion in security/90, security/91 (cherry picked from commit b34d33e3b3c5ae30e8315111f07634c1e7507531)
* unposted: vcs_info git: Teach the rebase-apply test case generator to also ↵Daniel Shahaf2022-01-292-1/+12
| | | | generate rebase-merge test cases
* unposted: vcs_info git: Add a missing guard against redefining a function.Daniel Shahaf2022-01-291-0/+1
|
* unposted: vcs_info git: Deconfuse $EDITORDaniel Shahaf2022-01-291-2/+2
| | | | Work around <https://github.com/chrisbra/vim-zsh/issues/39>.
* unposted: vcs_info: Add Vim modelinesDaniel Shahaf2022-01-293-0/+6
| | | | ... for consistency with all other vcs_info function files.
* 49723: vcs_info quilt: Use quilt-patch-dir and ${QUILT_PATCHES} even when ↵Daniel Shahaf2022-01-291-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 ]].
* 49722: vcs_info quilt: Refactor for readability. No functional change.Daniel Shahaf2022-01-291-6/+7
|
* unposted: vcs_info quilt: Remove a no-op variable assignmentDaniel Shahaf2022-01-271-1/+0
|
* 49709: vcs_info hg: Keep $HGPLAIN set for hooks if it had been set outside ↵Daniel Shahaf2022-01-251-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.
* 49667: Include US spelling of "grey" ("gray")Matt Alexander2022-01-011-3/+5
| | | | Co-authored-by: Daniel Shahaf <d.s@daniel.shahaf.name>
* github #82: Fix typosDimitris Apostolou2021-11-123-3/+3
|
* 45180: clarify doc for POSIX EREs, fix an issue with PCRE when the ↵Stephane Chazelas2021-09-062-31/+86
| | | | replacement was empty or generated more than one element
* 49218: run-help filters cmd_args before calling run-help-<command>Marlon Richert2021-09-067-26/+13
|
* 48942: Let EDITOR invoked by edit-command-line know it's a zsh scriptAkinori MUSHA2021-06-031-0/+1
|
* 48601/0005: zmathfuncdef: Fix the workers/48147 return status / 'set -e' bug.Daniel Shahaf2021-05-181-1/+1
| | | | Not tested.
* 48853: improved handling of theme resets when changing prompt themes, ↵Marlon Richert2021-05-161-94/+71
| | | | especially for theme preview
* 48710: histed + other zed updatesBart Schaefer2021-05-151-13/+49
|
* 48707: fix keymap handling when zed invokes read-from-minibuffer; update docBart Schaefer2021-05-151-5/+22
|
* 48606 + 48607 + unposted test: zmathfunc: Force arguments to be numbers and ↵Daniel Shahaf2021-04-211-3/+13
| | | | catch errors.