Giter Club home page Giter Club logo

zsh-util-lib's Introduction

Zsh Util lib

Introduction

An utility-library for Zshell that provides a few general-purpose functions. It's a counterpart to the zsh-string-lib library.

List Of The Functions

@util-bind-all

Rebinds all key bindings so that they're executing some custom code. It's an alternative to overloading of all Zle widgets.

Arguments:

  1. The custom snippet of code to run before executing the original widget.
  2. A bool (1,yes,true,on for truth or other value for false) indicating whether the widget calls should be automatically forwarded to their original (before-binding) versions.
  3. (Optional) Custom snippet of code to be executed after executing the original widget.
  4. (Optional) A method of the binding – either bindkey (the default) or zle-N. The first one is fully bindkey based, i.e.: e.g.: it doesn't create the backup widgets that are typically prefixed with "orig–". The second is half-bindkey / half-zle -N based - it does create the backup widgets, however the widgets are obtained using bindkey listing invocation, which means that typically only a half of all widgets are bound.

Example:

@util-bind-all 'print hello!' yes 'print hello after!'

zsh-util-lib's People

Contributors

ss-o avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

renovate-bot

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.