#fzf

Поділитися
Вставка
  • Опубліковано 9 чер 2024
  • In this video we are going to learn about fzf - a general-purpose command-line fuzzy finder that will change your life!
    fzf:
    github.com/junegunn/fzf
    fzf wiki:
    github.com/junegunn/fzf/wiki
    useful examples from the fzf wiki:
    github.com/junegunn/fzf/wiki/...
    fd is a simple, fast and user-friendly alternative to find:
    github.com/sharkdp/fd
    my .dotfiles:
    github.com/agilesteel/.dotfil...
    This video is part of the following playlist:
    • A fool with a tool is ...
    Table of Contents
    00:00 intro
    01:10 installation
    04:20 fzf hello world
    07:37 files
    08:57 config
    12:15 search syntax
    12:59 key bindings and autocompletion
    21:46 fzf-tmux
    24:37 tricks, wiki and vim integration
    30:42 conclusion
    Website: devinsideyou.com
    Patreon: patreon.devinsideyou.com
    Discord: discord.devinsideyou.com
    Telegram: telegram.devinsideyou.com
    Twitter: twitter.devinsideyou.com
    GitHub: github.devinsideyou.com
    LBRY: lbry.devinsideyou.com
    Install scripts: install.devinsideyou.com
    Giter8 templates: g8.devinsideyou.com
    Spotify concentration playlist: code.radio.devinsideyou.com
    Cheers and Happy Coding!

КОМЕНТАРІ • 47

  • @DevInsideYou
    @DevInsideYou  3 роки тому +6

    Table of Contents
    00:00 intro
    01:10 installation
    04:20 fzf hello world
    07:37 files
    08:57 config
    12:15 search syntax
    12:59 key bindings and autocompletion
    21:46 fzf-tmux
    24:37 tricks, wiki and vim integration
    30:42 conclusion

    • @tridibbiswas3361
      @tridibbiswas3361 3 роки тому +1

      Hi, This video on FZF was really helpful. One thing though I could not install 'bat' on my Ubuntu on WSL2. I was doing sudo apt install bat - was getting errors

    • @DevInsideYou
      @DevInsideYou  3 роки тому

      Ah you are right. I updated the description. They were in my .profile. Over here: github.com/agilesteel/.dotfiles/blob/master/stow/shell/.profile

    • @tridibbiswas3361
      @tridibbiswas3361 3 роки тому

      @@DevInsideYou Thank you

    • @DevInsideYou
      @DevInsideYou  3 роки тому

      You edited your message... This is a copy paste from bat's GitHub page:
      --------------------------------------------------
      If your Ubuntu/Debian installation is new enough you can simply run:
      apt install bat
      Important: If you install bat this way, please note that the executable may be installed as batcat instead of bat (due to a name clash with another package). You can set up a bat -> batcat symlink or alias to prevent any issues that may come up because of this and to be consistent with other distributions:
      mkdir -p ~/.local/bin
      ln -s /usr/bin/batcat ~/.local/bin/bat
      --------------------------------------------------
      Which is one of the many reasons why I avoid package managers. Check this out instead: github.com/DevInsideYou/install-bat

  • @jeffreygrantsmith
    @jeffreygrantsmith 2 роки тому +7

    This helped me begin using fzf more effectively. I know you put a lot of time into this. Thank you.

  • @redumptious2544
    @redumptious2544 3 роки тому +5

    Very nice and helpful video.
    I had fzf installed for a long time but never understood what the heck is going on.....
    After looking into it a bit deeper I love it and this video showed me a lot more useful 🙏

  • @victornoagbodji
    @victornoagbodji 4 місяці тому

    Excellent video! 😊

  • @lazut273
    @lazut273 3 роки тому +2

    thanks alot, one of the best about fzf so far I have seen

  • @patrickprucha5522
    @patrickprucha5522 6 місяців тому

    excellent tutorial. All tutorials should be like this. Thank you!!!

  • @srinivasrg5125
    @srinivasrg5125 3 роки тому

    Great explanation. Very helpful. Thanks.

  • @Kadota747
    @Kadota747 2 роки тому +1

    Great video super clear and helpful thank you so much!!

  • @DevOpsCave
    @DevOpsCave Рік тому

    Very helpful. Thank you!

  • @tanmay-bhat96
    @tanmay-bhat96 Рік тому

    +1 for adding chapters in this video.

  • @liminal6823
    @liminal6823 2 роки тому

    Excellent tutorial **chef's kiss**

  • @tech_tutorials2053
    @tech_tutorials2053 Рік тому

    Very useful, thanks.

  • @rickstive1300
    @rickstive1300 2 роки тому

    thank you, is useful

  • @I_SEE_RED
    @I_SEE_RED 4 місяці тому

    dev inside me 😳

  • @gabrielp8660
    @gabrielp8660 2 роки тому

    Thanks!

  • @b.c.2177
    @b.c.2177 2 місяці тому

    Thank you! Very nice tutorial! Do you have somewhere your settings from .profile? I can't find on Gitgub the settings for FZF which I see in the video :(

    • @DevInsideYou
      @DevInsideYou  2 місяці тому

      It's not much but here you go github.com/agilesteel/.dotfiles/blob/master/stow/zsh/.zshrc#L179

    • @b.c.2177
      @b.c.2177 2 місяці тому

      Thank you!!
      But the terminal is empty and there is this message: [Command failed: fd --type f --color=never --hidden]

    • @DevInsideYou
      @DevInsideYou  2 місяці тому

      This line tells it to use fd instead of find. You don't have fd installed github.com/sharkdp/fd

    • @b.c.2177
      @b.c.2177 2 місяці тому

      @@DevInsideYou Thanks a lot for fast answer!! It works now! :) All the best!

  • @dr.mikeybee
    @dr.mikeybee 3 роки тому

    the OMZ plugin calles zsh-navigation-tools does fuzzy search with bindkeys. I reinstalled my system and couldn't figure out what plugin I was missing. I missed this functionality so much. It was like losing a part of my brain. I figured out fzf does the same thing, and I think it's better.

    • @bullpup1337
      @bullpup1337 6 місяців тому

      there are zsh plugins that use fzf

  • @vermilion-at-dawn
    @vermilion-at-dawn Рік тому

    Hi, what is that terminal and prompt? They look so clean.

    • @DevInsideYou
      @DevInsideYou  Рік тому

      It's alacritty and the zsh theme is called "intheloop" and it comes from oh-my-zsh (in fact I changed it a bit, I made the @ symbol gray). However I believe what you are most interested in is byobu which is a tmux wrapper. I have videos about both zsh and byobu and many others.

  • @DevOpsCave
    @DevOpsCave Рік тому

    for mac users - use `esc + c` instead of `alt + c`

  • @tpa204
    @tpa204 5 днів тому

    how use hotkey (ctrlT altT ) in macOs?

    • @DevInsideYou
      @DevInsideYou  5 днів тому

      MacOS might not be the issue. It might depend more on your terminal. Also note that fzf recently changed the way the key bindings are activated since v48 github.com/junegunn/fzf/releases/tag/0.48.0 This is how my ~/.zshrc looks like these days:
      if [ $(command -v fzf) ]; then
      # Set up fzf key bindings and fuzzy completion
      eval "$(fzf --zsh)"
      fi

  • @notionpicture
    @notionpicture 3 роки тому

    for some reason fd doesn't work for me even when I have it installed. I just get "eval command not found: fd --type f --color=never --hidden" and I have fd installed. Don't know whats wrong!

    • @DevInsideYou
      @DevInsideYou  3 роки тому

      Hmm, that's strange. So if you simply type in `fd` into your terminal it works fine but if you type in `fd --type f --color=never --hidden` it doesn't? What OS are you on? Not that this information would help, I'm just curious.

    • @notionpicture
      @notionpicture 3 роки тому

      @@DevInsideYou yes, if I simple type fd it would show all file and directories in the current directory. But when I pass options it doesn't list anything. I'm on Arch Linux. I changed it to regular find command instead of fd, but I don't understand why fd doesn't work with options.

    • @DevInsideYou
      @DevInsideYou  3 роки тому

      No idea. Maybe open an issue on fd's GitHub?

    • @Lobbelt
      @Lobbelt Рік тому

      @@notionpicture I've got the exact same issue! The customization of Alt + C worked, but Ctrl + T doesn't for the exact same reason you outlined. The thing is: the fd command works fine if I just type it in the terminal, even if it's piped into fzf. It just does not work when used in FZF_CTRL_T_COMMAND. No idea what's going wrong here.

  • @somebodyoncetoldme1704
    @somebodyoncetoldme1704 2 роки тому

    I installed fzf but ctrl+r wasn't overriden

    • @DevInsideYou
      @DevInsideYou  2 роки тому

      How did you install it?

    • @somebodyoncetoldme1704
      @somebodyoncetoldme1704 2 роки тому

      @@DevInsideYou
      Thanks for reaching back.
      somehow the homebrew command changes to bashrc didn't stick. I ran it again and it's fine now.

  • @N0zer0
    @N0zer0 2 роки тому +1

    but why? Why? WHY Windows?

    • @DevInsideYou
      @DevInsideYou  2 роки тому +2

      I wish I could be on Linux, but the driver and some software support prevents me from doing so.

    • @pingoo9693
      @pingoo9693 2 роки тому +1

      Why not ? For me, It was hardware support (my docking station and audio controller), and softwares (Adobe suite, Windows games, etc...)

  • @windowsrefund
    @windowsrefund 11 місяців тому +2

    With all due respect, the whole "copy/paste" approach to DevOps I see so many people taking now is actually really horrible. You traded in a package manager because you didn't want to trust what's going on under the hood (despite the fact we're talking about Free Software which provides the freedom to access and study the source code). Ok, that's fine... I can respect that. The problem is, you then built something which you are then advocating people essentially "blindly trust" by copying and pasting (

    • @bullpup1337
      @bullpup1337 6 місяців тому

      he is basically just installing from source. Which is fine if you dont mind managing all the dependencies yourself. But yeah be careful what you download and run. I guess this is his windows mindset still at work.

  • @TimoYlhainen
    @TimoYlhainen Місяць тому

    By default, ignoring proper package managers is a bad idea. Know what you are doing.

  • @bullpup1337
    @bullpup1337 5 місяців тому

    ironic how you use fzf to kill htop, htop being the best tool to kill other processes…