r/commandline • • Sep 22 '21

Made a mini file manager

I wanted a visual file manager that was used similar to something like fzf/fzy, but couldn't find anything like it. So I've been working on one myself.

Check it out:

repo: https://github.com/r1ri/minifm

54 Upvotes

9 comments sorted by

12

u/kkga Sep 22 '21

Nice work!

Something that keeps me attached to lf (https://github.com/gokcehan/lf) is its client/server architecture which basically lets you open 2 instances and yank/paste files between them.

Other managers usually integrate some sort of “multiple views” functionality to achieve this, but lf is really elegant in this sense, because it doesn’t try doing what a window manager/multiplexer does best.

But at the same time I’d love to use a simpler, non-curses FM that works similar to fzf, like the one you got here. Do you have any plans on doing a client/server architecture?

4

u/2ir1 Sep 23 '21

At the moment everything is very primitive, so yank simply outputs the abs path(s) to a tmp file, so in a sense you can already do what your talking about. That said once things start to get more complex, I imagine a client server architecture would make a lot of sense.

2

u/[deleted] Sep 23 '21

[removed] — view removed comment

2

u/2ir1 Sep 23 '21

Curses is a lib that uses term codes to create a visual interface using ascii. You can just use the termcodes without curses. But no idea how fzf's backend is done, probably not curses tho.

2

u/[deleted] Sep 23 '21

[removed] — view removed comment

2

u/archcrack Sep 23 '21 edited Sep 23 '21

I guess you're talking about CliFM. If fact, one of the first descriptions of this project was "The non-curses file manager". But people complained about it (maybe not without good reasons), so I decided to change it to "The command line file manager" (referring to its input/interaction method: typed commands). However, I basically agree with you: it is a non-curses file manager. But, as you already noticed it, describing this project proved to be not an easy enterprise.

Btw, congrats u/2ir1 for this new project. I'll take a look at it as soon as I can. As to the description, I think u/xkcd__386 is right: calling MiniFM a non-curses file manager could be a bit misleading and confusing: curses is a library (and in this sense it is not curses), but also a kind of interface (in which case it is it). In fact you refer to Ranger in your README, a file manager that explicitly describes itself as providing a curses interface (despite the fact that it also relies on the curses library).

0

u/[deleted] Sep 23 '21

[deleted]

1

u/archcrack Sep 23 '21

And this is done entirely via escape sequences, isn't it? Do you have the code for this. I would like to take a look at it.

0

u/[deleted] Sep 23 '21

[deleted]