Can’t imagine using my system without this.

  • I binned my copies of ranger and nnn when I found this last year. Its stellar.

    Diskonaut is the only other one that stuck, of the new CLI file managers. hunting lost files from a recovered hard drive was a lot easier with directory visualization for whatever reason.

    • @mac@lemm.ee
      link
      fedilink
      22 hours ago

      What are your primary use cases for Yazi? I’m trying to see if it’ll fit into my workflow.

      I’ve been experimenting with it on my MacBook Pro. When I navigate to a few Go projects I’m working on, syntax highlighting only seems to be available in the file preview. After that, it appears to just open in plain Vi.

      At work, I use Windows and primarily code in C#.

      Is Yazi more geared towards file management?

      • @cakeistheanswer@lemmy.dbzer0.com
        link
        fedilink
        1
        edit-2
        22 minutes ago

        It hooks into nearly every base utility I can’t live without (fzf, jq, helix, ripgrep). If you’re on windows im not sure you’re going to get a ton unless you live in WSL.

        You can pick the editor it’ll open by default, which should be configurable with comparable syntax highlighting. Vi can pretty much look like whatever. I think it’ll default to vscode on windows.

        Im not sure what you’d use it for but manage files, but I would have poked it and probably moved along while I was still on windows.

        Edit: the other benefit you might not see has a lot to do with support of mime types.

        https://www.iana.org/assignments/media-types/media-types.xhtml

        The xdg open protocol will open whatever app is assigned to handle type locally. Which is probably why it defaults to editor.

  • @WhyJiffie@sh.itjust.works
    link
    fedilink
    English
    36 hours ago

    it gained 14k+ stars on github in a year (development started in 2023 july).

    isn’t it a bit suspicious?

    maybe it’s nothing, but this just caught my eye

    • @toastal@lemmy.ml
      link
      fedilink
      4
      edit-2
      53 minutes ago

      Starhacking is a thing. When you see words like “blazing fast” & emoji all over the README it show the maker is treating the code as marketing—& MS GitHub is a social media platform with algorithms.

    • @Eyck_of_denesle@lemmy.zipOP
      link
      fedilink
      13
      edit-2
      11 hours ago

      Yes. I switched to yazi from ranger. File previews is so much better. Image previews dont hog up ram or crash your manager. It has everything and more like opening encrypted archives, plugin support, themes. I use 2 plugins, one to compress files and the other to display present directory size.

      It’s not just the features but the app itself is magnificent. I have never seen such a goid looking tui app.

      • Eager Eagle
        link
        fedilink
        English
        19 hours ago

        Same, ranger was painfully slow at times. For some reason it would take multiple seconds to start on a few machines I connected it to.

  • @asap@lemmy.world
    link
    fedilink
    English
    10
    edit-2
    12 hours ago

    As someone new to Linux, what would be a few reasons that you prefer this to using the built-in GUI file browser?

    • @WalnutLum@lemmy.ml
      link
      fedilink
      12 hours ago

      I wouldn’t bother unless you find yourself doing more through the terminal than through GUIs.

      I don’t have a built-in file browser (not using a DE, just i3 window manager), so I use ranger and pure GNU coreutils commands mostly but I still find myself missing the drag-and-drop features that FreeDesktop integration provides for stuff like nautilus.

    • Eager Eagle
      link
      fedilink
      English
      119 hours ago

      I can’t believe no one mentioned this, but: remote access.

      I spend most of my day connected to machines via SSH and yazi offers a great UX with file previews and all. Using kitty I even get image previews in the terminal.

      • @rcbrk@lemmy.ml
        link
        fedilink
        English
        12 hours ago

        remote access

        To be fair, X11 forwarding is a straightforward thing, bearing in mind any security/performance/administrative restrictions which may apply to your situation.

        Alternatively, SSHFS can be used to mount a remote directory locally.

        • Eager Eagle
          link
          fedilink
          English
          2
          edit-2
          60 minutes ago

          I’ve used plenty of sshfs a few years ago, but x11 forwarding is a compromise. The latency makes it painful to work with for more than a few minutes.

    • @Eyck_of_denesle@lemmy.zipOP
      link
      fedilink
      1712 hours ago

      I can navigate without using my mouse. It’s faster for me. You can create tabs, copy and paste files, extract compressed files, run commands, and so much more without lofting my hand. My favorite feature is the ability to preview files without even opening them. I’m relatively new to linux too.

    • @sloppy_diffuser@sh.itjust.works
      link
      fedilink
      English
      612 hours ago

      Download 5 seasons of some show from multiple sources or some artist’s entire discography, and want to normalize all the file names? It is way easier in the terminal.

      I’ll check this out, but I use https://github.com/stevearc/oil.nvim for such tasks as I have nvim’s full sweet of editor commands to rename all the files way faster than I could in a GUI. I’m sure there are GUI apps to perform a similar task, but I already know how to use nvim.

    • @ninjaturtle
      link
      English
      512 hours ago

      You can probably do some more advance tasks via CLI. Also usually lists information faster. But honestly you will be overall fine with GUI a majority of the time.

      Some people just like being in the terminal.

    • Chewy
      link
      fedilink
      3
      edit-2
      12 hours ago
      • Terminal file manager are useful on a server over ssh.
      • ripgrep and fd support is better than any GUI file manager find and replace.
      • Some people like using vim keybindings
      • The three panel view is really useful. On the left is the parent folder, the middle the current and on the right a preview, e.g. the selected folder or the contents of a picture or a text file. It’s faster to navigate and pop back into the shell.
  • @thingsiplay@beehaw.org
    link
    fedilink
    211 hours ago

    I’ve installed it for a while and lot of stuff work out of the box, including images in the terminal. But I did not get around to use it more often. It’s pretty good and I think its a full replacement for the usual terminal file managers, but don’t take my word for it. I previously used vifm a little bit and have no other experience.

    • @Eyck_of_denesle@lemmy.zipOP
      link
      fedilink
      211 hours ago

      I used ranger and it’s a solid improvement over it. If you are into tui apps you will love it, if you aren’t it’s ok. It also has plugin system, I use 2 plugins to compress files and get file size info. I love it.

      • @thingsiplay@beehaw.org
        link
        fedilink
        210 hours ago

        I often use it to navigate into a directory, using it as a directory selector (auto cd on exit). An essential plugin to me is https://github.com/yazi-rs/plugins/tree/main/jump-to-char.yazi , to have a Vim like quick jump with f and a letter and n for next. The default f functionality to filter is now set to F, so I don’t lose that by overriding.

        Still need to handle archives too. I also want to write my own plugins someday if I get to use it more often.

        • @Eyck_of_denesle@lemmy.zipOP
          link
          fedilink
          210 hours ago

          It does handles all types of archives by default. Encrypted ones too.

          How do you auto cd, I always wanted that but didn’t brother to check docs for it. If I remember correctly it’s by launching it as a shell script.

          • @thingsiplay@beehaw.org
            link
            fedilink
            110 hours ago

            Yes, it’s a simple shell function; needs to be a function in your bashrc, not a script, because cd doesn’t work like that. Just copy the function from https://yazi-rs.github.io/docs/quick-start#shell-wrapper into your .bashrc:

            yy() {
                local tmp
                local cwd
                tmp="$(mktemp -t "yazi-cwd.XXXXXX")"
                yazi "${@}" --cwd-file="${tmp}"
                if cwd="$(cat -- "${tmp}")" && [ -n "${cwd}" ] && [ "${cwd}" != "${PWD}" ]; then
                    builtin cd -- "${cwd}" || return
                fi
                rm -f -- "${tmp}"
            }
            

            I use yy instead single y.