Giter VIP home page Giter VIP logo

zsh-abbrev-alias's People

Contributors

39e avatar ggallovalle avatar infokiller avatar isamert avatar mcornella avatar momo-lab avatar ryooooooga avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

zsh-abbrev-alias's Issues

Define function with arguments

I'd like to expand aliases providing arguments, for example:

abbrev-alias -f hping-listen="hping -9 $1 -I $2 | /bin/sh"

Where $1 and $2 will be expanded to the first two arguments provided after the alias has been expanded.

Is that possible to do something similar to that?

I'd like something similar to vim's snippets expand functionality.

Thanks.

Option to swallow trigger key?

Is there a way to swallow the trigger key? so:

abbrev-alias -g cfg="cd ~/.config/"

Returns:

cd ~/.config/_
#Not:
cd ~/.config/ _

Where the underscore is the cursor.

command aliasを行の途中でも使えるようにする

新しいコマンドが書ける箇所についても補完したい。
具体的には以下の文字の後でも補完したい。

  • |
  • ;
  • &
  • $(
  • `

スペースが0 or 1なら補完する、2以上なら補完しない、というのが元の挙動に近そう。

※後で英訳しておくこと。

Recursive alias expansion

First off, great project! Really appreciate the benefits of doing alias expansion as I type.

I make lots of use of aliases-in-aliases. For example, in my .zshrc:

abbrev-alias D='docker'
abbrev-alias Dr="D run --rm -it"

Here, if I type D, it expands correctly. However, when I type Dr, it only expands one level deep, i.e. D run --rm -it. It'd be great if the expansion happened recursively so that this became docker run --rm -it.

How to *not* choose the abbreviation

I like the idea of this plugin a lot and want to move change all my aliases to this. However, i'm stuck with one use case. Say i have an abbrev defined like this:

abbrev-alias -g gs="git status"

Typing gs<SPACE> or gs<ENTER> will expand the abbreviation, wonderful. But what if I want to run the command gs (ghostscript)? Is there a binding that will cancel the attempt to abbreviate?

plugin.zsh file not following the convention

I don't use a plugin manager and i think it would be good to follow the convention of your pluginname.plugin.zsh file was accurate to the github repository name, so that people who get their plugins without a manager can get the plugin loaded using a variable name.

current name of file: abbrev-alias.plugin.zsh
with the convention: zsh-abbrev-alias.plugin.zsh (as it matches the repository name).

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.