{"id":20162552,"url":"https://github.com/zdharma-continuum/zsh-util-lib","last_synced_at":"2025-07-14T05:33:27.058Z","repository":{"id":103427611,"uuid":"425829846","full_name":"zdharma-continuum/zsh-util-lib","owner":"zdharma-continuum","description":null,"archived":false,"fork":false,"pushed_at":"2023-04-16T03:00:13.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-04-08T00:09:22.833Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/zdharma-continuum.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-11-08T12:32:31.000Z","updated_at":"2021-11-10T17:27:57.000Z","dependencies_parsed_at":null,"dependency_job_id":"dbb5cd45-55d8-4160-9461-dc5b56aad31a","html_url":"https://github.com/zdharma-continuum/zsh-util-lib","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/zdharma-continuum/zsh-util-lib","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-util-lib","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-util-lib/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-util-lib/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-util-lib/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/zdharma-continuum","download_url":"https://codeload.github.com/zdharma-continuum/zsh-util-lib/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/zdharma-continuum%2Fzsh-util-lib/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265245965,"owners_count":23734108,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-14T00:25:39.986Z","updated_at":"2025-07-14T05:33:26.962Z","avatar_url":"https://github.com/zdharma-continuum.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003c!-- START doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n\u003c!-- DON'T EDIT THIS SECTION, INSTEAD RE-RUN doctoc TO UPDATE --\u003e\n\n**Table of Contents** *generated with [DocToc](https://github.com/thlorenz/doctoc)*\n\n- [zsh-util-lib](#zsh-util-lib)\n  - [List Of The Functions](#list-of-the-functions)\n    - [@util-bind-all](#util-bind-all)\n\n\u003c!-- END doctoc generated TOC please keep comment here to allow auto update --\u003e\n\n# zsh-util-lib\n\nAn utility-library for Zshell that provides a few general-purpose functions. It's a counterpart to the\n[zsh-string-lib](https://github.com/zdharma/zsh-string-lib) library.\n\n## List Of The Functions\n\n### @util-bind-all\n\nRebinds all key bindings so that they're executing some custom code. It's an alternative to overloading of all Zle\nwidgets.\n\nArguments:\n\n1. The custom snippet of code to run before executing the original widget.\n1. A bool (`1`,`yes`,`true`,`on` for truth or other value for false) indicating whether the widget calls should be\n   automatically forwarded to their original (before-binding) versions.\n1. (Optional) Custom snippet of code to be executed **after** executing the original widget.\n1. (Optional) A method of the binding – either `bindkey` (the default) or `zle-N`. The first one is fully bindkey based,\n   i.e.: e.g.: it doesn't create the backup widgets that are typically prefixed with \"orig–\". The second is half-bindkey\n   / half-zle -N based - it does create the backup widgets, however the widgets are obtained using `bindkey` listing\n   invocation, which means that typically only a half of all widgets are bound.\n\nExample:\n\n```zsh\n@util-bind-all 'print hello!' yes 'print hello after!'\n```\n\n\u003c!-- vim:set ft=markdown tw=80 fo+=an1 autoindent: --\u003e\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzsh-util-lib","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fzdharma-continuum%2Fzsh-util-lib","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fzdharma-continuum%2Fzsh-util-lib/lists"}