USING THE NNN FILE BROWSER JUST GOT BETTER

[linkstandalone]

As I was re-configuring my web server today, I figured it would probably be best to install some kind of file browser (duh), because I kept forgetting where some of my files were placed. And so I found myself perplexed and unsure of what to use. On my personal computer I use lf from the AUR, but of course Debian doesn't have the AUR so I had to look for some kind of alternative. After I spent a little time looking for some kind of file browser for my web server, even though who really needs one nowadays, I come to have stumbled across nnn and it has just got better.

I would say that a majority of people know about ranger, however, given the fact that it was written in python (slowest programming language out there), it is way too slow! So I found a much lighter and faster option which is essentially the equivalent of ranger for browsing files on the terminal. It is extremely fast on the terminal, which is just what I needed for my web server. And besides that, my favorite part about it is that it doesn't use any additional config files, it only uses the environmental variables and that's it. By the way, these environmental variables can be set in your .profile or wherever else you store your environmental variables. A lot of us are probably used to the traditional setup with either dotfiles or suckless-like config.h which you are intended to recompile, thankfully nnn doesn't have this. Nevertheless, nnn is basically ranger without bloat and it has everything you need for file manipulation on the terminal. If you are currently using ranger for no specific use or functionality, then I'd suggest you make the switch over to nnn as soon as possible.

I'm aware that nnn doesn't provide all the functionality as that of ranger, but it definitely works great for me and on my web server. A while back when I used to run apache, I had ranger installed in case I would need it for something, however, the fact that it was so slow made me never want to use it. If you were to compare the startup times between ranger and nnn, you would really see the difference. Mind you though, there is no shame in using ranger, it's just that running it on a cheap VPS doesn't really work all too well.

I would also like to touch upon the usage of nnn, since it isn't so traditional like the other more common file browsers out there. So here are some key presses that you might want to remember:

For those who are interested, here is the source code. And also if you are using Arch, this should come by default in their repos. If you really wanted to, I believe that you can go into the nnn.h config file and change whatever you want to before you compile it. But there really is no need for that.