Search Git Branches and Commits Using fzf

  Рет қаралды 5,092

Andrew Courter

Andrew Courter

Күн бұрын

Пікірлер: 26
@ascourter
@ascourter 8 ай бұрын
What other tasks do you use fzf for?
@Sahil-a-vim-user
@Sahil-a-vim-user 8 ай бұрын
To change current dir. I have few dirs that I want to quickly jump too such all my personal projects, some folders in .config, so I just pass the list of chosen dirs in fzf and cd into the output of the fzf done via a script ofc
@roryhendrickson
@roryhendrickson 8 ай бұрын
Thanks for this! I didn't know about fzf-tmux, definitely gonna try out your fsb script so thank you for sharing
@threee1298
@threee1298 8 ай бұрын
wow really cool, that commit search is wonderful
@ascourter
@ascourter 8 ай бұрын
Thanks!
@MattRobinsonDev
@MattRobinsonDev 8 ай бұрын
Just found your channel, really cool stuff
@ascourter
@ascourter 8 ай бұрын
Thank you!
@MichaelZinabu
@MichaelZinabu 8 ай бұрын
hey andrew do you think you can make a video of making your neovin config from scratch like for the beginners
@yash1152
@yash1152 8 ай бұрын
he has done that already, titled "Neovim". look in playlist section of the channel
@ascourter
@ascourter 8 ай бұрын
I have added this to my list. Like Yash mentioned, I have a couple videos that you could piece together how to configure but it's probably worth a dedicated video since it's been awhile.
@VovaY
@VovaY 8 ай бұрын
fzf+zoxide, fzf+glab merge request selection, fzf+git config selection for new project, fzf+SSH key selection, fzf+SSH server connection selection, fzf+opening a result with nvim
@ascourter
@ascourter 8 ай бұрын
Love it. Zoxide is another really powerful tool.
@daniellittlewood8471
@daniellittlewood8471 8 ай бұрын
are you aware that fzf can just take piped input from another command? so for branch selection e.g. you can do git branch | fzf or if you want to check it out git checkout $(git branch | fzf)
@ascourter
@ascourter 8 ай бұрын
Thanks! Yes, I do know you could use it that way. I wanted it to not checkout a branch if fzf was cancelled and also handle remote branches.
@daniellittlewood8471
@daniellittlewood8471 8 ай бұрын
@@ascourter Fair enough! I sometimes wonder if there is a simple modification to shell syntax that would make cases like this easy to write. e.g. bash with the pipefail option provides some of what you want with git branch | fzf | xargs git checkout but I'd like to be able to say conveniently on a per-command basis exactly what I want the error track to do. Anyway, your script is cool. I wish I uploaded videos like this. Thanks for sharing!
@ascourter
@ascourter 8 ай бұрын
@@daniellittlewood8471 Yeah it would be cool to see if its possible to do error handling in a different way. Bash with monads? haha. Appreciate the questions and certainly appreciate the idea of keeping it simple and streamlined!
@oterosantos
@oterosantos 8 ай бұрын
Why not lazygit?
@ascourter
@ascourter 8 ай бұрын
I am personally biased towards using the command line and git commands so lazygit feels like a step too far for me personally. However, if I add more and more custom scripts I am probably just building my own lazygit. I should try using lazygit for a week or two and see if my opinion changes. Thanks for the question!
@howuseehim
@howuseehim 3 ай бұрын
My negus ?
@ascourter
@ascourter 3 ай бұрын
Close. I think the word they were thinking has 2 letters difference.
@cody_codes_youtube
@cody_codes_youtube 8 ай бұрын
FIRST
@ascourter
@ascourter 8 ай бұрын
BLAZINGLY FAST!
@naranyala_dev
@naranyala_dev 8 ай бұрын
more custom fzf combination
@ascourter
@ascourter 8 ай бұрын
Are you requesting more examples or saying you use other combinations?
@naranyala_dev
@naranyala_dev 8 ай бұрын
@@ascourter i wonder how to be more creative with fzf
Getting Started with Tmux
19:26
Andrew Courter
Рет қаралды 3 М.
Which is Better Flash.nvim OR Leap.nvim?
11:35
Andrew Courter
Рет қаралды 14 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН
Хаги Ваги говорит разными голосами
0:22
Фани Хани
Рет қаралды 2,2 МЛН
-5+3은 뭔가요? 📚 #shorts
0:19
5 분 Tricks
Рет қаралды 13 МЛН
I'm never using Git the same way again
11:19
typecraft
Рет қаралды 99 М.
git rebase - Why, When & How to fix conflicts
9:45
Philomatics
Рет қаралды 71 М.
The Holy Grail of Neovim Git Integrations
13:28
DevOps Toolbox
Рет қаралды 46 М.
This Zsh config is perhaps my favorite one yet.
17:24
Dreams of Autonomy
Рет қаралды 298 М.
This may be my favorite CLI tool ever
8:15
typecraft
Рет қаралды 100 М.
How To Squash Your Git History Like A Pro
13:09
Colt Steele
Рет қаралды 56 М.
Building a terminal file manager in Bash
25:57
Jake@Linux
Рет қаралды 6 М.
Is Hop.nvim better than Flash.nvim?
16:04
Andrew Courter
Рет қаралды 9 М.
7 Amazing CLI Tools You Need To Try
18:10
Josean Martinez
Рет қаралды 425 М.
Smart tmux sessions with zoxide and fzf
14:55
Josh Medeski
Рет қаралды 59 М.
Wednesday VS Enid: Who is The Best Mommy? #shorts
0:14
Troom Oki Toki
Рет қаралды 50 МЛН