If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.
Have you published those tools? I don't find anything relevant via Googling nor searching your repos.
Forgit: A utility tool powered by fzf for using Git interactively
11–20 of 26 posts
Re: Forgit: A utility tool powered by fzf for using Git interactively
#12If anyone cares, I do something similar with my git aliases: https://github.com/kbd/setup/blob/master/HOME/.config/git/co... So, "ga" similarly gives a fuzzy finder of files to "git add" that are actually in git status, "gcp" lets me cherry pick one or more commits from a branch where both the branch and commits are picked with fzf, and so on.
Have you published those tools? I don't find anything relevant via Googling nor searching your repos.
Re: Forgit: A utility tool powered by fzf for using Git interactively
#13Re: Forgit: A utility tool powered by fzf for using Git interactively
#14Re: Forgit: A utility tool powered by fzf for using Git interactively
#15Earlier quoted context omitted.
A nice Terminal color theme and a good font with PowerLine symbols.
Which UI toolkit?
(ETA: There's some confusion here too, because some of those screenshots is a likely unrelated "status bar" tool and a Starship-like prompt. Might even be Starship.)
Re: Forgit: A utility tool powered by fzf for using Git interactively
#16Earlier quoted context omitted.
`ga` and `gcp`. Are those part of git?
I assumed those were aliases for `git a` and `git cp` which are in the config file.
`gcp` and `ga` are part of forgit, not OPs config. That's why searching the repo didn't find anything. From the phrasing, I thought they were part of OPs repo.
Re: Forgit: A utility tool powered by fzf for using Git interactively
#17Earlier quoted context omitted.
What tools? That's a git config file.
`ga` and `gcp`. Are those part of git?
https://github.com/kbd/setup/blob/d95653da5ab367b1e628b97537...
Re: Forgit: A utility tool powered by fzf for using Git interactively
#18Earlier quoted context omitted.
I assumed those were aliases for `git a` and `git cp` which are in the config file.
No, they're not in the config file. `gcp` and `ga` are part of forgit, not OPs config. That's why searching the repo didn't find anything. From the phrasing, I thought they were part of OPs repo. `gcp` https://github.com/wfxr/forgit/search?q=gcp `ga` https://github.com/wfxr/forgit/search?q=ga
Re: Forgit: A utility tool powered by fzf for using Git interactively
#19this is nice with the TUI, but need to remember these shortcut commands, maybe will get used to or remember them after start using them...
something like:
fgit(){
fgcommands = "git commit...\n,git rebase...\n"
# you want one per line, so I'm not perfect at bash, w/out looking up how to do it I think you could cat it into the commands.
if [ -z $1 ]; then
echo "$fgcommands"
# returns all commands
else
echo "$fgcommands" | grep commit"
# returns all commands with commit in.
fi
}
You could even have more fun w/ it by creating some script that maybe remaps all your git commands so whenever you manually do git commit -- it'd run the command then also convert your command to a string, and run each word matching like commit, rebase, etc through fgit, and create some sort of "you could've done this instead"... I'd love if zsh had more things like that, but I only recently switched to zsh and oh-my-zsh is it so much better.Think of this like in vscode when you use the command search, and it shows the keybindings next to it, so you can learn to do it better...