1. 22
  1.  

  2. 2

    This looks really nice!

    I wonder if you could integrate your smart heuristics with fzf’s UI? I think fzf can cooperate with another process to generate candidates.

    1. 1

      Thank you! I haven’t looked into it, but that might be possible! I personally like the simplicity of zf, and was/is a fun personal project to learn Zig. But someone else wants to integrate it into fzf, and it is possible, then I think that would be great!

    2. 2

      Well done on detailing out the use cases, it’s good to see a user-centered approach for CLI tools!

      1. 1

        Thanks for the kind words!

      2. 1

        To test my theory I analyzed many repositories from GitHub and found that in a typical codebase the majority of filenames are unique.

        Counter example: index.html

        Another counter example:

        $ cd repos/nixpkgs/master/
        $ find -type f | grep default\\.nix$ | wc -l
        21650
        

        I commonly match the name of the directory instead.

        1. 5

          Yep! That’s a perfect example of when that observation doesn’t hold. Maybe I didn’t make things clear enough, but I do understand that file names aren’t always unique. That’s why I also have a feature for making path matching more accurate later in the post.

          1. 3

            Great! Once again i did not read the full post.

            1. 1

              No worries :)