GithubHelp home page GithubHelp logo

Feature request: branches about forgit HOT 3 CLOSED

wfxr avatar wfxr commented on August 18, 2024 3
Feature request: branches

from forgit.

Comments (3)

wfxr avatar wfxr commented on August 18, 2024 1

Thanks for your suggestion.

Have you tried the git completion plugin? I think that would be more appropriate to use the completion mechanism to do this.

Here is the git's completion file from its official repository:
https://github.com/git/git/tree/master/contrib/completion
And its usage:
https://apple.stackexchange.com/questions/55875/git-auto-complete-for-branches-at-the-command-line

oh-my-zsh has a more powerful completion named git-extras. If you use oh-my-zsh or some plugin manager like zplug you can activate it easily:

zplug "plugins/git-extras", from:oh-my-zsh

If you really like the fuzzy completions from fzf you can simply add an alias to your rc file:

alias gbr='git checkout $(git branch | fzf | tr -d "*")'

from forgit.

rockandska avatar rockandska commented on August 18, 2024 1

@marcobiedermann, from a pure completion side, I create a little project named fzf-obc who add fzf over all completion scripts. Give it a try and open an issue on fzf-obc github if needed.

Regards,

from forgit.

marcobiedermann avatar marcobiedermann commented on August 18, 2024

@wfxr

Thank you very much for your response and possible solution.
I already figured out a way how to set it up by myself but wouldn't be nicer to include it into this package to avoid manual setup for each user?
When you break it down forgit is also just utility set for git functions in combination with fzf. So instead of setting up an alias you could also shit it, no?

from forgit.

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.