Comments (3)
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.
@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.
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)
- scmpuff/scmbreeze file number shortcuts no longer work HOT 8
- [question]: how to add flag `--follow` when running command `glo` for `git log` HOT 12
- Git
- [feature request] copy git stash ID on ctrl+y HOT 3
- Forgit interactive not work on alacritty + tmux HOT 2
- Detection of unexported variables is incorrect in fish if the variable has an empty string value
- Feature Request: GCB autocomplete for zsh HOT 1
- Question: direction of tab HOT 9
- grc giving back error "git branch: command not found" HOT 11
- `forgit` does not open in a tmux popup window if fzf tmux options are set
- Discussion: The AUR packages have been orphaned HOT 5
- Discussion: Reduce the amount of deferred execution HOT 8
- Issues with special characters in filenames HOT 7
- CI action ubuntu-20.04 always fails HOT 1
- forgit::stash::push failing with error: unknown option `pathspec-file-nul' HOT 6
- zsh completion doesn't seem to work with zinit HOT 8
- Alt keybindings not working on Mac OS HOT 6
- Add zsh completions to homebrew formula HOT 11
- Preview does not work when stashing a deleted file
- Feature Request: checkout_branch: Sort by committerdate HOT 8
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from forgit.