Live data from Hacker News

A terminal file manager written in bash

github.com

11–20 of 44 posts

Re: A terminal file manager written in bash

#11

Earlier quoted context omitted.

Run on a machine that doesn't have Emacs installed.

But if you install this then you could install Emacs instead, yes?

"Installing" this is as simple as:

  curl 'https://raw.githubusercontent.com/dylanaraps/fff/master/fff' > fff; chmod +x fff
It's a 121 line Bash script, no dependencies. I suspect Emacs is slightly more intrusive than that.

Re: A terminal file manager written in bash

#12
post #4

Ranger has taken over my world the past few years. Heck I even have it working in Windows 10 in the Linux Subsystem (OpenSUSE for me). Ranger for me is just as fast in real life and my work Windows 10 machines are not anything to write home about.

I've used Ranger in the past but eventually went back to Midnight Commander. From a usability point of viewer nothing compares with a fixed 2 panels file list.

Re: A terminal file manager written in bash

#15

Earlier quoted context omitted.

But if you install this then you could install Emacs instead, yes?

"Installing" this is as simple as: curl 'https://raw.githubusercontent.com/dylanaraps/fff/master/fff' > fff; chmod +x fff It's a 121 line Bash script, no dependencies. I suspect Emacs is slightly more intrusive than that.

>> It's a 121 line Bash script, no dependencies. I suspect Emacs is slightly more intrusive than that.

"Slightly" is a very interesting word to use there :)

Re: A terminal file manager written in bash

#16

Earlier quoted context omitted.

But if you install this then you could install Emacs instead, yes?

"Installing" this is as simple as: curl 'https://raw.githubusercontent.com/dylanaraps/fff/master/fff' > fff; chmod +x fff It's a 121 line Bash script, no dependencies. I suspect Emacs is slightly more intrusive than that.

I quickly glanced through it, and there are a few dependancies: /bin/mkdir and /bin/mv (read and nohup are build in Bash). This could be useful for embedded systems and containers. Although Alpine, by default, doesn't come with Bash. Oh, and yeah, it is fast.

Re: A terminal file manager written in bash

#17
post #3

Would you mind taking a minute to explain why you needed a tool like this in the first place, please? I'm quite interested.

One use case: I often use Midnight Commander via ssh to my file server. If I move a file on my local machine via NFSv4, it will still pull all the data to my box and back out to the file server.

Command line file managers are nice because when I move a file, it's all done on the remote box (and hence, faster).

Re: A terminal file manager written in bash

#19

Does this do anything I can't do already via Emacs?

Two things that I always reach for Emacs to accomplish are git and file management, via Magit and Dired(X) respectively. Here's a quick cheat sheet of the things I use Dired for:

    C-x C-j (jump to directory)

    Open the current directory in Dired (requires that
    you first (require 'dired-x)) from any buffer, even
    other directories, but usually from within files.

    C-x C-q (edit directory)

    Start editing the current directory as a plain-text
    buffer and commit changes with C-c C-c or discard
    all changes with C-c C-k.

    One thing you can do with this is quickly swap two
    filenames. Dired will give one of them a temp name
    which is super convenient.

    Combined with multiple-cursors package, this also
    lets you mass rename files in ways that would be
    much harder in terminal.

    d (delete)

    Mark items in directory for deletion, (x) to commit.

    m (mark)

    Mark items in a directory for:
    
      R - rename (or move)
      C - copy
For a more thorough list, open a directory and type C-h m
Post reply on HN