Giter Site home page Giter Site logo

Comments (3)

ndbroadbent avatar ndbroadbent commented on June 30, 2024

Wow, those aliases are seriously comprehensive!

I'm not sure of the best way to implement your suggestion, but it certainly sounds like a great idea.
So, we could look for aliases that contain certain git commands, such as git add, and then redefine those aliases to expand the args into filepaths. I like it. I especially like the idea of it augmenting your existing git aliases, instead of stomping all over them.

Alright, I'll leave this issue open and might work on it when I have some free time.

from scm_breeze.

ndbroadbent avatar ndbroadbent commented on June 30, 2024

Hi there, I've just pushed this feature up to the master branch. I've added a new git_augment_current_aliases setting in the git.scmbrc config file. If you set it to 'yes', then your existing git aliases will be parsed and augmented with the SCM Breeze wrapper, so you can then use the numeric shortcuts that it provides.
The major aliases will still be defined, however, such as gs for the git status function, and ga for the git add function.

E.g. if you have an alias like alias gco="git checkout", then SCM Breeze will automatically redefine it as alias gco="exec_git_expand_args git checkout". (This means you can type gco 1 to checkout the first file in the output of git status.)

I know this is a very old issue, but would hugely appreciate it if you were able to test it out with your zsh config.
Thanks very much!

from scm_breeze.

ndbroadbent avatar ndbroadbent commented on June 30, 2024

Have just changed this option to git_setup_aliases. Set it to 'no' to keep your existing aliases. git is now wrapped in a function, so that zsh tab completion works by expanding any git aliases.

from scm_breeze.

Related Issues (20)

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.