1. 29
  1. 6

    Why another file manager? I wanted something simple and minimalistic, something to help me with faster navigation in the filesystem. A cd & ls replacement. So I build “llama”. It allows to quickly navigate with fuzzy searching, cd integration is quite simple. Opens vim right from llama. That’s it. Simple and dumb as a llama.

    1. 6

      llama

      fuzzy search

      Will check it out for that alone.

      1. 0

        I think nnn also has that

        1. 1

          I meant the play on words :D

          1. 2

            Lol, took me a while to figure it out :D

      2. 5

        I think you should reconsider insulting llamas :-) They are not that dumb.

        1. 3

          Have you seen a llama face?)

          1. 3

            That’s not where the intelligence is stored.

            1. 0

              Yes, it’s behind and the dace is a mirror of intelligence.

        2. 3

          And I say, “Hey, Llama, hey, how about a little something, you know, for the effort, you know.” And he says, “Oh, uh, there won’t be any money, but when you die, on your deathbed, you will receive total consciousness.” So I got that goin’ for me, which is nice.

          1. [Comment removed by author]

            1. 1

              Thanks :)

          2. 3

            I would replace your bash example with:

            function ll {
              llama "$@" 2>&1 | read -r PATH
              if [[ -d "$PATH" ]]; then
                cd "$PATH"
              fi
            }
            

            That temp file is unnecessary and makes me a little nervous. It’d be simpler if llama returned the path on stdout instead of stderr.

            1. 4

              $PATH is already “taken” by the shell and shouldn’t be overwritten. Use $path (or something else) instead.

              1. 1

                Oops, yes. Very much so.

              2. 1

                Stdout used for interactive stuff)

                1. 6

                  You should check how fzf (and alternatives) works, they use the terminal (tty) directly for interaction with the user, and still use the stout to return the results.

              3. 3

                @antonmedv How does it compare to ranger?

                1. 2

                  Llama written in go, ranger in python. Llama is 500 LOC, ranger is 10k LOC.

                  1. 1

                    Ok, so more lightweight and faster, got it :P

                2. 2

                  I’m not a fan of terminal file managers in general (cd, ls, etc is all I need - I find if I use anything else I’m less efficient), but this looks pretty neat!

                  1. 3

                    I still use good ol’ midnight commander for certain tasks. previewing archive files is so much better than doing it by hand. Also sftp is better than the bare sftp client that ships with openssh.

                    1. 1

                      Ah, yes I almost forgot about mc! When I was starting out with Linux, I’d use midnight commander all the time.

                      For remote stuff I can see why it’d be useful. When I’m on Windows I use winscp with dual panels (just like mc) it works pretty well like that.

                      1. 2

                        I’m all for experiments with file manager UI, but there are still tasks where classic two-panel file managers like mc make at least a very good local extremum of usefulness. :)

                    2. 2

                      Thanks) ls & cd inspired)

                    3. 2

                      A discussion around terminal file management and navigation would be incomplete without mentioning Broot

                      Also, llama looks neat.

                      1. 1

                        Having to write a file to disk to cd seems like a step backwards. At the very least using source or eval directly instead of temp files would be an improvement.

                        On the other hand my shell already does this kind of fuzzy completion and navigation (built into zsh) and also for filename completion (using fzf) so I think I’m good without…

                        1. 1

                          I use bash)

                        Stories with similar links:

                        1. Llama - Terminal File Manager authored by antonmedv 8 days ago | 7 points | no comments