Are there any CLI tools like zoxide that allow to quickly find recently opened files by fuzzy search instead of directories?

  • corytheboyd
    link
    fedilink
    2
    edit-2
    8 months ago

    fzf? https://github.com/junegunn/fzf

    Out of the box, would only help searching shell commands that have been run, so for files, things like “vim file.txt”, which is obviously not usually how files are edited (you’d use the file browser in a text editor or IDE)

    However if you find a way to list all files on your system by modified time, you can pipe it to fzf for a slick fuzzy find search.

    Maybe ag would work here too: https://github.com/ggreer/the_silver_searcher

    • this_is_router
      link
      fedilink
      58 months ago

      things like “vim file.txt”, which is obviously not usually how files are edited

      You what mate? Don't assume my workflow. "vi file.txt" is obviously superior to clicking inside some texteditor or file browser

    • astraeus
      link
      fedilink
      4
      edit-2
      8 months ago

      I can’t tell you the number of times I have in fact edited files using vim even with a WM and DE. I just treat my laptop like it’s a server I connect directly to now

      Oh, or even better how many times I used the terminal in VSC to vim edit something 😂