Тёмный

This may be my favorite CLI tool ever 

typecraft
Подписаться 70 тыс.
Просмотров 49 тыс.
50% 1

50% Off Typecraft! typecraft.dev
X: x.com/typecraft_dev
Discord: / discord
FZF is my favorite tool for linux and unix systems. It has amazing features, its simple to use, and its fun! it works amazing and I think this is an essential tool for you to learn. This is a must have in your toolbox. You can fuzzily find anything on your machine, and you can also pipe output from other programs to FZF. it truly is amazing.

Наука

Опубликовано:

 

17 июл 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 184   
@reaperfs2371
@reaperfs2371 12 дней назад
Thanks, nerd
@subashpraveen
@subashpraveen 12 дней назад
well... in this side of internet its actually a compliment lol 😂
@adnope
@adnope 8 дней назад
this is getting funnier and funnier lol
@catharsis7629
@catharsis7629 12 дней назад
You are one of the few devs who actually understands his tooling and is willing to take the time and effort required to properly learn them to make your workflow faster. More devs need to follow this mentality.
@thecallumarnold
@thecallumarnold 12 дней назад
If you use the `--bind "enter:become(nvim {})"` flag then it will open the selected file(s) in nvim for you (without needing to prepend your command with `nivm ...`), which means that you can cancel out of the fzf finder without neovim from being entered. With the command listed, escaping fzf will still open nvim, which might not be what you want if you're trying to escape the search. For completeness, this is my alias. alias nf='fzf -m --preview="bat --color=always {}" --bind "enter:become(nvim {})"'
@domjan3859
@domjan3859 9 дней назад
I was having issues with your listed alias, it showed me STDIN where the bat preview should have been, probably a "me problem"... Anyways, I found a small fix for anyone encountering the same issue: alias nf='fzf -m --preview="bat --color=always {}" --bind "enter:become(nvim {})"' Difference is that fzf passes the file path to bat with the little '{}' after "bat --color=always ..."
@thecallumarnold
@thecallumarnold 9 дней назад
​@@domjan3859 Thanks for pointing that out - that was an issue on my end. I've edited my comment to make it clear it needs `{}` in both parts!
@FredMny
@FredMny 8 дней назад
Nice!! Thanks for this
@scottfollmer
@scottfollmer 7 дней назад
For some reason with this alias, selecting multiple files didn’t work for me and only the last file selected was actually passed to nvim
@TheBecke1983
@TheBecke1983 12 дней назад
Sweet, now i got my day planned. Don't know how I missed this program
@typecraft_dev
@typecraft_dev 12 дней назад
Some of the stuff fzf gives (like kill -9 **) was unknown to me as well, even though I've been using fzf for a WHILE
@TheBecke1983
@TheBecke1983 12 дней назад
@@typecraft_dev Kind of feels like that when using Linux tbh, learning new things constantly :)
@adamkarafyllidis9264
@adamkarafyllidis9264 12 дней назад
Also nice: 1. nvim Ctrl + t ( opens fzf. Of course works for any command ). 2. Ctrl + r opens shell command history
@Nitiiii11
@Nitiiii11 11 дней назад
"Ctrl + r opens shell command history" Honestly I have no idea how anyone can use reverse-i-search after discovering this. 100x better on every level.
@debajyatidey9468
@debajyatidey9468 11 дней назад
Exactly always works like a charm
@keaneplayingmbae2852
@keaneplayingmbae2852 11 дней назад
Never knew this w comment
@frydac
@frydac 2 дня назад
ctrl-r with fzf is the main reason I install fzf on every pc I touch (if I'm allowed to of course)
@errorcode778
@errorcode778 11 дней назад
Amazing tool! I should start using it
@Kunal-k-u-m-a-r
@Kunal-k-u-m-a-r 12 дней назад
i used it before but learned new things today i hadn't figured out earlier
@gand0rfTRZ
@gand0rfTRZ 11 дней назад
Why do you keep giving us great weekend projects?? Thanks for showing us this. Now I can't wait to get home and install it.
@claudioonoue2000
@claudioonoue2000 12 дней назад
0:42 The pacman frontend name almos killed me 🤣
@anciao_dev
@anciao_dev 12 дней назад
Now, this is a really good trick!
@bpbrainiak
@bpbrainiak 12 дней назад
thanks nerd, your video + coffee = great day
@typecraft_dev
@typecraft_dev 12 дней назад
hell yeah, just made coffee myself!
@JonBrookes
@JonBrookes 12 дней назад
fzf is very nice as is your video and guide. Thanks. I picked up some very useful things I hadn't used. I also use cntrl r in bash and search history that way which is kind of similar but where fsf is not present
@typecraft_dev
@typecraft_dev 12 дней назад
Yes FZF with history search is amazing I forgot to add it in this video!
@phortheman
@phortheman 12 дней назад
I use fzf every day for work. It’s probably the best CLI tool out there!
@_Holy_Lance_
@_Holy_Lance_ 12 дней назад
Thank you, Chris.
@typecraft_dev
@typecraft_dev 12 дней назад
My pleasure!
@benjaminschultz6501
@benjaminschultz6501 3 дня назад
Take a shot every time he says, “Fuzzily findable.”
@QWEEKEN73
@QWEEKEN73 12 дней назад
That kill command looks insanely useful. Giving fzf a try!
@typecraft_dev
@typecraft_dev 12 дней назад
Regarding kill, just make sure you take a look at this article so you use kill safely! learn.typecraft.dev/tutorial/kill-choices/
@elnurbda
@elnurbda 12 дней назад
i did not know i need it. thanks O_O
@japadkman
@japadkman 12 дней назад
with fzf on my shell i can press ctrl+r then it will fuzzy find any commands on my bash history, i use it quite often
@typecraft_dev
@typecraft_dev 12 дней назад
yup! thats one of the best. I've used it so often I actually forgot about it for this video. lol
@armaandhanji2112
@armaandhanji2112 12 дней назад
Amazing content. Subscribed!! By the way can you tell me where you got your desktop wallpaper from?
@typecraft_dev
@typecraft_dev 12 дней назад
github.com/typecraft-dev/dotfiles/tree/master/backgrounds
@JakeLinux
@JakeLinux 11 дней назад
Fzf is one of my favorite tools, I have a few videos covering it on my channel. I made videos showing how I use it to make my menus, my app launcher, I even made a terminal file manager out of it. Great tool.
@typecraft_dev
@typecraft_dev 11 дней назад
awesome!
@paulhammond8583
@paulhammond8583 12 дней назад
I didn’t know about the ** stuff. Cheers for that!
@muslimgamerrr9479
@muslimgamerrr9479 11 дней назад
love the arch btw
@typecraft_dev
@typecraft_dev 10 дней назад
haha
@muslimgamerrr9479
@muslimgamerrr9479 10 дней назад
@@typecraft_dev cant live without btw thx so much for this video i had no idea how fzf works
@apptimegr
@apptimegr 11 дней назад
Your videos are awesome! 👌
@typecraft_dev
@typecraft_dev 11 дней назад
You are awesome
@maybehawk5205
@maybehawk5205 12 дней назад
Thanks, Nerd
@sledgex9
@sledgex9 12 дней назад
For those of us stuck with bash (eg from git for windows) and don't have the zsh history autocomplete, fzf integrates with bash history. So hit CTRL+R and you'll be able to fuzzily find past commands you run. Very handy for me.
@QuOUseTERSEa
@QuOUseTERSEa 11 дней назад
I think people should only use fzf when you need multi selections or “fuzzy” search. When you know what you’re searching, it doesn’t make sense to use fzf, since it’s much faster to use fd, grep, glob, etc. It slow down your process and just add an interface that make u feel fast 😂
@ericlindell3777
@ericlindell3777 12 дней назад
Great vid!
@typecraft_dev
@typecraft_dev 12 дней назад
Thanks!
@bhuvan1036
@bhuvan1036 12 дней назад
Wait, how did you know i was searching for this...
@Kunal-k-u-m-a-r
@Kunal-k-u-m-a-r 12 дней назад
can you make a video on best cli development lang or framworks
@tvntvn-b
@tvntvn-b 11 дней назад
unalias does not remove the alias from your .zshrc, it only removes it from the environment of the current session. When you open a new terminal or source your zshrc, the alias will be added again.
@typecraft_dev
@typecraft_dev 11 дней назад
yes that is correct. was just showing off the feature for FZF
@channinghsu46
@channinghsu46 12 дней назад
Really enjoy every video of yours, thanks nerd!!
@typecraft_dev
@typecraft_dev 12 дней назад
Thank you, nerd!
@samarth-kun
@samarth-kun 9 дней назад
Hello again 👋🏻 Where can I get that background wallpaper it's so calming 😸
@FranLegon
@FranLegon 12 дней назад
Pretty cool
@baky5372
@baky5372 12 дней назад
I've seen people use this but never knew what it was called. Thanks so much for the great video!
@typecraft_dev
@typecraft_dev 12 дней назад
Glad you liked the video!
@TheBearmoth
@TheBearmoth 11 дней назад
Using it with a preview is new to me. Thanks for the awesome tip!
@typecraft_dev
@typecraft_dev 10 дней назад
yeah, big part of the reason I made the video. that was new to me as well!
@dDesirie
@dDesirie 11 дней назад
So is it like Raycast or Alfred but for CLI? This is pretty cool!
@allenkim4776
@allenkim4776 9 дней назад
I was very appriciated for your neovim video. I want to use ftp-sync in neovim like vscode(sftp or ftp-simple), but I couldn't find out how to set for it. Please help us!
@timonjur
@timonjur 12 дней назад
I actually have to change my terminal to Alacritty at some point, since Warp does not support fzf at the moment
@typecraft_dev
@typecraft_dev 12 дней назад
ah yes. warp kinda implements its own fuzzy find stuff.
@kuijaye
@kuijaye 12 дней назад
You can use nl instead cat to have the preview numbered
@typecraft_dev
@typecraft_dev 12 дней назад
Oohhhh
@bparker06
@bparker06 8 дней назад
or cat -n
@ludwig8841
@ludwig8841 12 дней назад
Quick tip for those who use fish shell ** will not work instead, just CTRL+T to get the same functionality you can find more information here github.com/junegunn/fzf?tab=readme-ov-file#fish-shell
@djbessel
@djbessel 11 дней назад
How do you feel about oh-my-zsh? Adding fzf means I just add it to my plugins list, instead of a list of actions cluttering my .zshrc for fzf, nvm, whatever.
@typecraft_dev
@typecraft_dev 11 дней назад
That’s a great approach as well
@Ramilkos
@Ramilkos 12 дней назад
Instantly in love with how it works with shell history.
@TheBendixSA
@TheBendixSA 5 дней назад
I'm still learning so feel free to flame but isn't yay used for the arch user repo? what is meant by calling it a front end for pacman then which is used for the Arch package repo? aren't they kind different tools to get packages from different places? (I do now yay is installed from pacman)
@kmuju1158
@kmuju1158 12 дней назад
Are you using i3 in this video? If so, how did you get the bar at the top of the terminal?
@typecraft_dev
@typecraft_dev 12 дней назад
Nah used gnome just for presentation
@kmuju1158
@kmuju1158 12 дней назад
@@typecraft_dev Yeh that makes sense. Great video, need to look more into integrating fzf into my workflow. Have you looked at the tmux-sessionizer script by primeagen? Its a great script that uses fzf to open a folder in tmux. Had to change part of it to work for me but dont remember exactly what was wrong.
@tiagomello
@tiagomello 11 дней назад
Which keyboard are you using?
@typecraft_dev
@typecraft_dev 11 дней назад
Happy hacking keyboard type s
@LEBR27
@LEBR27 12 дней назад
Thanks nerd!! One question: What if i dont wanna write the ** to completion, i just wanna press tab as always? how i can do this?
@m0r4ag
@m0r4ag 12 дней назад
Solo exporta esta variable de entorno: export FZF_COMPLETION_TRIGGER='' Lo probé antes de responder, no me pareció muy cómodo de usar
@LEBR27
@LEBR27 12 дней назад
@@m0r4ag gracias voy a probar, quiero emular de manera "nativa" lo que hace fzf-tab-git qué se puede instalar desde aur, donde igual solo basta poner por ejemplo "cd " en vez de cd **
@danielwood4786
@danielwood4786 12 дней назад
Come on nerd. You missed the fzf history search. Ctrl+r in bash, probably something similar in Zsh
@typecraft_dev
@typecraft_dev 12 дней назад
ah yeah, I've used that for so long I forgot to include it in the video!
@thoric01
@thoric01 12 дней назад
This tool is almost as awesome as you
@typecraft_dev
@typecraft_dev 12 дней назад
awwwwwww
@Lorne_at_work
@Lorne_at_work 12 дней назад
fzf is awesome, but the latest stable version for Ubuntu is missing some of those cool features. I hope that changes soon. Or I guess I could always swap to Arch :D
@typecraft_dev
@typecraft_dev 12 дней назад
another reason for arch!!! lol
@bzboii
@bzboii 11 дней назад
what terminal emulator do you use
@ManpreetSingh-ox6hh
@ManpreetSingh-ox6hh 11 дней назад
which theme you are using??
@typecraft_dev
@typecraft_dev 11 дней назад
catpuccin
@obeyoutube
@obeyoutube 12 дней назад
bomb diggity ❤
@typecraft_dev
@typecraft_dev 12 дней назад
boomshakalaka
@APerson-jf2md
@APerson-jf2md 2 дня назад
4:39 - that means you didn't checkout broot yet :)
@BrentMalice
@BrentMalice 12 дней назад
lmao i went to ask for this yesterday but i got distracted. now its here. OPRAH WAS RIGHT IM MANIFESTING
@typecraft_dev
@typecraft_dev 12 дней назад
I always thank oprah
@itzaryaanyt2003
@itzaryaanyt2003 12 дней назад
Someone tell me how to ignore specific files and folder while searching through fzf and how to add some specific files and folder to show in fzf , thanks
@typecraft_dev
@typecraft_dev 12 дней назад
Follow-up tutorial inbound!
@zukxxxx0
@zukxxxx0 10 дней назад
Can you upload setting up nix package manager, home manager and nix profile with flakes guide🙌🙌🙌🙌
@typecraft_dev
@typecraft_dev 10 дней назад
that is on the list. the looooonnng list :)
@ispyu1514
@ispyu1514 9 дней назад
Next one on yazi?? 👀
@chrislee9344
@chrislee9344 4 дня назад
who needs all of that when you have `find`.
@chri-k
@chri-k 11 дней назад
alao make sure to use fd instead of find (it's like 6 times faster). fzf will automatically prefer fd if you have it installed
@kevin.michaels
@kevin.michaels 11 дней назад
Is it just me or did this video feel like it was going n 1.25x speed? Other than that, great vid :)
@falwickster
@falwickster 12 дней назад
Preety cool
@typecraft_dev
@typecraft_dev 12 дней назад
you are
@XxZeldaxXXxLinkxX
@XxZeldaxXXxLinkxX 12 дней назад
I swear I've seen a fzf video from this channel before?
@typecraft_dev
@typecraft_dev 12 дней назад
nope! this is the first one
@bojanstrkovski21
@bojanstrkovski21 12 дней назад
it's could be part of a video i think it was one in the neovim series but awesome new comands to find things i've lost trough my pc yhanks nerd 😄
@muhammedmaher6704
@muhammedmaher6704 10 дней назад
You're the most efficient dev and RU-vid content creator I know! Keep it up man, you're awesome. 💪
@typecraft_dev
@typecraft_dev 10 дней назад
awesome, will do!
@juanmacias5922
@juanmacias5922 12 дней назад
Laptop go Brrr
@Em0L0rd
@Em0L0rd 12 дней назад
Only if I had a penny for every time typecraft talked about fzf...
@sumirandahal76
@sumirandahal76 11 дней назад
Why did u left arch ?
@typecraft_dev
@typecraft_dev 11 дней назад
This video is recorded on arch
@sumirandahal76
@sumirandahal76 10 дней назад
@@typecraft_dev in next video don't forgot to mention I use Arch , btw
@ddthegr8
@ddthegr8 12 дней назад
linux for newbs 4 when
@typecraft_dev
@typecraft_dev 12 дней назад
what would you like to see in linux for newbs 4? I want to know!
@emiliocanton1494
@emiliocanton1494 12 дней назад
Your vim and tmux configs for productivity
@ddthegr8
@ddthegr8 12 дней назад
@@typecraft_dev I'd love to see a full arch + i3 + neovim setup from scratch, maybe live
@mrlectus
@mrlectus 7 дней назад
kill multiple program?
@highlander576
@highlander576 12 дней назад
0:41 🏳‍🌈The gay package manager
@ispyu1514
@ispyu1514 12 дней назад
Day 4 of asking to make a video on how do you record and stream stuff on arch linux!
@typecraft_dev
@typecraft_dev 12 дней назад
the answer: I don't!
@ispyu1514
@ispyu1514 12 дней назад
@@typecraft_dev then how?
@typecraft_dev
@typecraft_dev 12 дней назад
@@ispyu1514 technically I can stream from arch pretty much out of box with OBS. But not all things are supported (like nvidia). So now I stream through a capture card on a PC
@ispyu1514
@ispyu1514 12 дней назад
@@typecraft_dev ohh but does ur obs on arch works with window capture or just screen capture?
@imanav07
@imanav07 12 дней назад
someone can just use locate?
@Krishtal3
@Krishtal3 12 дней назад
OMG
@paultapping9510
@paultapping9510 12 дней назад
kill -9 ** is an incredible tip
@typecraft_dev
@typecraft_dev 12 дней назад
right? I love it!
@berend109
@berend109 12 дней назад
For me I probably prefer ranger.
@adriansrfr
@adriansrfr 11 дней назад
Yazi is better
@berend109
@berend109 11 дней назад
@@adriansrfr I don’t know that tool, wil look at it tonight.
@qandak
@qandak 10 дней назад
Be careful using "cat" with huge files, it's not a pager!
@typecraft_dev
@typecraft_dev 10 дней назад
Good call
@sarkedev
@sarkedev 7 дней назад
0:34 it's not D-bien, it's Deb-Ian. It was created by Ian Murdock and named after his gf Debra (Deb for short, later ex-wife) and himself.
@typecraft_dev
@typecraft_dev 7 дней назад
I always mess it up! Great explanation I didn’t know that
@shizeeque
@shizeeque 12 дней назад
here's like #172 for pronouncing "Zee/Zed Shell correctly". It's not "zeesh". 👌
@typecraft_dev
@typecraft_dev 12 дней назад
I think I say it both ways, lol. I'm sure I mis-pronounced "debian" in this video too haha. can't help it!
@leanghok120
@leanghok120 12 дней назад
Those soydevs are missing out
@typecraft_dev
@typecraft_dev 12 дней назад
I have soymilk in my coffee right now...... shit
@Macj707
@Macj707 9 дней назад
couldnt get my ** to work dunno what that is about
@bender2033
@bender2033 12 дней назад
tac is cat backwards.
@sp10sn
@sp10sn 12 дней назад
I don't lose stuff often enough for fuzzy find to be useful.
@typecraft_dev
@typecraft_dev 12 дней назад
fair enough
@zokalyx
@zokalyx 12 дней назад
chad dev
@ankushroy1729
@ankushroy1729 12 дней назад
I use it to find old ffmpeg and one liner commands that might need some time and overhead.
@mathijswy
@mathijswy 12 дней назад
Even if you don't lose the files, isn't it a very fast way of navigating the file tree regardless?
@glidersuzuki5572
@glidersuzuki5572 12 дней назад
It's not just to find lost stuff. It's to find stuff faster. When you multiple files in different locations or deeply nested directories, fzf makes it way easy to find them
@agh0x01
@agh0x01 12 дней назад
@6:55, why would you go straight to a `kill -9` - don't teach people bad habits! Use a normal kill (SIGTERM) first and give the process a chance to exit gracefully before reaching for the nuclear option.
@typecraft_dev
@typecraft_dev 11 дней назад
Haha I guess I have that bad habit too. Oops!
@typecraft_dev
@typecraft_dev 10 дней назад
For anyone reading this thread and want to know more, we cover this here learn.typecraft.dev/tutorial/kill-choices/
@agh0x01
@agh0x01 9 дней назад
@@typecraft_dev thanks, nerd!
@kirillfedtsov
@kirillfedtsov 11 дней назад
Who is learning Unix today?
@typecraft_dev
@typecraft_dev 11 дней назад
me
@TheRich107
@TheRich107 12 дней назад
12th
@typecraft_dev
@typecraft_dev 12 дней назад
but number 1 in my heart
@kinggrey2511
@kinggrey2511 12 дней назад
7th
@typecraft_dev
@typecraft_dev 12 дней назад
but #1 in my heart
@kinggrey2511
@kinggrey2511 12 дней назад
you told that to everyone atleast i have #
@typecraft_dev
@typecraft_dev 12 дней назад
@@kinggrey2511 lol.... you weren't supposed to look
@TheRich107
@TheRich107 12 дней назад
I too feel like I have been cheated 😂
@RazoBeckett.
@RazoBeckett. 12 дней назад
119th
@typecraft_dev
@typecraft_dev 12 дней назад
but number 1 in my heart
@RazoBeckett.
@RazoBeckett. 12 дней назад
@@typecraft_dev isn't number 1 your editor ?
@kamalelbalaidi4914
@kamalelbalaidi4914 12 дней назад
fzf amazing but I thing fzy better than it
@syrus3k
@syrus3k 5 дней назад
fzf is useless.. in the video it's nice and quick, but I have ~ 100 github projects on my m1 mac, it takes over a minute to search for a simple term (after it's indexed everything). Sure I have 54 million files in the index but so what.. it's not that many?
@bparker06
@bparker06 8 дней назад
"by default it will search for all the files on your machine" no I don't think it does... at least I've never seen or heard of it doing that.
@ZombieJig
@ZombieJig 12 дней назад
Deb-Ian not Dee-Bian
@typecraft_dev
@typecraft_dev 12 дней назад
I know I always do that I can’t help it!
@equu497
@equu497 9 дней назад
Fzf is great but nothing beats zoxide
@getoutoftheway419
@getoutoftheway419 12 дней назад
every video i see of urs that one mf calls him nerd. i am getting irritated on his behalf
Далее
researchers find an unfixable bug in EVERY ARM cpu
9:48
Would you go on a Blind Date in Italy?
0:51
Просмотров 18 млн
7 Essential Command Line Tools (2022)
9:12
Просмотров 200 тыс.
100+ Linux Things you Need to Know
12:23
Просмотров 781 тыс.
There's A New Browser (That ISN'T Chrome Based)
47:59
Просмотров 105 тыс.
Everything Starts with a Note-taking System
21:23
Просмотров 175 тыс.
I tried Neovim Distributions so you don't have to
9:12
My Forever Dev Workflow
16:02
Просмотров 74 тыс.
The End Of Jr Engineers
30:58
Просмотров 346 тыс.
7 Amazing CLI Tools You Need To Try
18:10
Просмотров 269 тыс.
ЗАКОПАЛ НОВЫЙ ТЕЛЕФОН!!!🎁😱
0:28