#fzf

แชร์
ฝัง
  • เผยแพร่เมื่อ 18 ธ.ค. 2024

ความคิดเห็น • 51

  • @DevInsideYou
    @DevInsideYou  4 ปีที่แล้ว +7

    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.

  • @tanmay-bhat96
    @tanmay-bhat96 2 ปีที่แล้ว +1

    +1 for adding chapters in this video.

  • @redumptious2544
    @redumptious2544 4 ปีที่แล้ว +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 🙏

  • @patrickprucha5522
    @patrickprucha5522 ปีที่แล้ว

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

  • @lazut273
    @lazut273 3 ปีที่แล้ว +2

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

  • @liminal27
    @liminal27 3 ปีที่แล้ว

    Excellent tutorial **chef's kiss**

  • @victornoagbodji
    @victornoagbodji 10 หลายเดือนก่อน

    Excellent video! 😊

  • @mpbros.official
    @mpbros.official 5 หลายเดือนก่อน

    Thank you so much) Спасибо!

  • @user779hjg45
    @user779hjg45 2 ปีที่แล้ว

    Very helpful. Thank you!

  • @Kadota747
    @Kadota747 3 ปีที่แล้ว +1

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

  • @srinivasrg5125
    @srinivasrg5125 3 ปีที่แล้ว

    Great explanation. Very helpful. Thanks.

  • @b.c.2177
    @b.c.2177 8 หลายเดือนก่อน

    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  8 หลายเดือนก่อน

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

    • @b.c.2177
      @b.c.2177 8 หลายเดือนก่อน

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

    • @DevInsideYou
      @DevInsideYou  8 หลายเดือนก่อน +1

      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 8 หลายเดือนก่อน +1

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

  • @tech_tutorials2053
    @tech_tutorials2053 2 ปีที่แล้ว

    Very useful, thanks.

  • @vermilion-at-dawn
    @vermilion-at-dawn 2 ปีที่แล้ว

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

    • @DevInsideYou
      @DevInsideYou  2 ปีที่แล้ว

      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.

  • @I_SEE_RED
    @I_SEE_RED 10 หลายเดือนก่อน

    dev inside me 😳

  • @tpa204
    @tpa204 6 หลายเดือนก่อน

    how use hotkey (ctrlT altT ) in macOs?

    • @DevInsideYou
      @DevInsideYou  6 หลายเดือนก่อน

      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

  • @rickstive1300
    @rickstive1300 2 ปีที่แล้ว

    thank you, is useful

  • @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 ปีที่แล้ว

      there are zsh plugins that use fzf

  • @gabrielp8660
    @gabrielp8660 2 ปีที่แล้ว

    Thanks!

  • @user779hjg45
    @user779hjg45 2 ปีที่แล้ว

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

  • @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.

  • @windowsrefund
    @windowsrefund ปีที่แล้ว +3

    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 ปีที่แล้ว

      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.

    • @neniugrava
      @neniugrava 4 หลายเดือนก่อน

      How is this any worse (from a security perspective) than blindly trusting the package manager? I'm not sure I would know how to find the source that Ubuntu used to build their version of the tool, but I can easily verify that a simple git clone make install script is doing exactly what I think it does with exactly the code I want (and the version I want). I think it is also far worse to go adding a new third-party ppa every time you need something that isn't in your distro's official package archive.
      But I think that the main reason he is not installing tools with a package manager is to be able to have current versions. I do the same thing for tools I want to keep on a recent version, or that my distro decided not to include. Also, you have zero control over the compile options that the distro used, which is a big deal when you want a certain feature in vim or some other tool. The few different outdated "one size fits all" binaries in apt-get don't always cut it.
      He is after all using the Plug package manager in vim, but that works by cloning the git repos, so it does what he wants. You have full control over which branch/tag it uses, or you can have your own forks on github or anywhere else a git repo can be hosted.
      Don't get me wrong, I still apt-get 90% of what I need, but for things like editors and other developer tools that I interact with many times every day I tend to prefer going straight to the source, especially if there is active development that makes it hard for package managers to keep up.
      I think his approach is merely a consolidated form of the usual README install instructions for most repos.

    • @DevInsideYou
      @DevInsideYou  4 หลายเดือนก่อน

      These days I use nix...

  • @FullToki
    @FullToki 3 หลายเดือนก่อน

    Jackson Richard Wilson Sarah Lopez Timothy

  • @N0zer0
    @N0zer0 3 ปีที่แล้ว +1

    but why? Why? WHY Windows?

    • @DevInsideYou
      @DevInsideYou  3 ปีที่แล้ว +2

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

    • @pingoo9693
      @pingoo9693 3 ปีที่แล้ว +1

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

  • @TimoYlhainen
    @TimoYlhainen 8 หลายเดือนก่อน

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

  • @bullpup1337
    @bullpup1337 11 หลายเดือนก่อน

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

    • @DevInsideYou
      @DevInsideYou  11 หลายเดือนก่อน

      Hahaha I didn't even notice