Btw there is skim, a Rust fzf replacement that is in most repos!

  • amanneedsamaid@sopuli.xyz
    link
    fedilink
    English
    arrow-up
    9
    arrow-down
    1
    ·
    8 months ago

    orderless achieves the same sort of thing in emacs, but I also use an fzf zsh alias to see my shell history all the time!

    alias hf="history -100 | fzf"

    • d3Xt3r@lemmy.nzM
      link
      fedilink
      English
      arrow-up
      2
      ·
      edit-2
      8 months ago

      That looks great … if only there were an easy fish plugin version of it ;)

      I’m currently using fzf.fish and it’s been great - my only complaint is that I can’t use it to jump to/insert a directory/file that’s outside of the current directory, but it seems like your solution with boot+zsh overcomes that limitation?

      • Andy@programming.dev
        link
        fedilink
        arrow-up
        2
        ·
        8 months ago

        Yeah, since broot is a full featured file navigator and operator, you can get anywhere once it’s launched. I have alt+up bound to go up a directory, but there are other ways to get around as well.

        Broot supports fish out of the box, and you can use its default fish launcher function to change your folder (alt+enter quits broot then performs a cd) or insert a path (the broot command pp quits broot then prints the path, like fzf).

        I never learned fish scripting, but if anyone here has they may try to port my Zsh functions, especially to get path completion for partially typed paths. If you’re doing that and have questions about the broot config side of the equation, I’m happy to try to help.