Skip to content

u/sablal

In this archive from Nov 2015 to Mar 2026

30
posts
151
comments
25
media
3.1k
score

Author of nnn here. As goes your requirements:

Core feature set to quickly cd into deep directories, search for a file within a dir, preview text files. Opening files with the right editor is optional as I figure I can just cd there and run the command I want.

nnn has them all. I personally prefer the type-to-nav mode. You should check it out.

Minimal: I don’t want to have a on of other features that I won’t use packaged in with the software. Also the fewer deps the better.

It comes in a 100KiB binary and you can reduce that further IF you are adventurous. Visit the wiki. ncurses is the only dependency.

Easy to learn: kind of goes hand in hand with the above but also includes keyboard shortcuts

You should really remember the arrows and tabs. The rest are a <kbd>?</kbd> away at runtime. We also have an extensive wiki.

Easy to configure: I can’t remember which program it was but one required me to compile it with different flags. That would be a deal breaker for me. Also would prefer there to not be 1000 options for me to toggle and test

There are only 12 config options and you probably need to touch 4 or 5. Most of the config and program options have sane defaults.

Speed/performance

Head here: https://github.com/jarun/nnn/wiki/Performance

2 points

I think the whole business of using environment variables to speed up startup is of very questionable and marginal benefit.

nnn doesn't need a startup file. There are around 12 supported environment variables and most users don't need to use more than 4/5 because of sane defaults. Interestingly, vifm has some specific environment variables too.

1 points

I've noticed before you seem to have a personal agenda against nnn.

But last I checked nnn (another FM on your list) can't do %-escapes for currently selected files

nnn has current file replacement in the command for quite sometime though personally I consider it a terribly insecure and error-prone idea to parse a command and replace random substrings because there's always a chance of replacing a legitimate %c in the command which isn't intended to be replaced. Anyway, vifm even parses command output to list devices or invokes python2 so I don't expect excellent design choices there. I can also understand the inclination given they have a command mode like vim which is all about parsing commands. nnn is consciously not that.

insists on putting a list of them in some file on disk (uggh!)

I don't think you get the point of making a selection available to other applications or the idea of ramfs (the usage of which nnn simplifies). Also, now you have a problem with disk operation (as you've thought at least), but not with a disk operation every time you start a frequently used application (as mentioned in your earlier comment). I would say I fire the file manager many more times than I select anything in it.

I hate to say it but it seems your evaluation of tools which are not your favourites seem to be dated, shallow, self-contradictory and limited to immediate comparison of features rather than a deeper understanding of the design choices the authors may have taken (other than those explicitly documented somewhere). If you can't do justice to them due to personal bias at least refrain from spreading wrong/uninformed information about them in public forums. If you stop doing that users may head to the official documentation and read the current and correct information.

1 points

You don't really need to remember the shortcuts. For navigation the arrows suffice, Enter opens files, Tab cycles contexts. For the rest, you can always look up the shortcut list in nnn with ? till it becomes muscle memory in a few days.

What else do you do with nerdtree (which is a tree-based browser and file selector)?

3 points

We don't see the slowness you mention in our tests. However, there are differences. Answers to your notes below.

The previews are running on my alacritty

Alacritty is not tested.

I've tried to get tmux working

There is a version dep on tmux. Tmux support is tested.

it seems significantly more popular than lf

Make no mistake, lf is also a very good file manager with it's own set of restrictions on feature bloat (I personally appreciate this a lot in terminal based software which should be lightweight).

Please raise an issue in the project page and we will take a look.

1 points

Yes, there are multiple previewer mechanisms which includes previewing in the same window: https://github.com/jarun/nnn/wiki/Live-previews

To change the default applications follow this: https://github.com/jarun/nnn/wiki/Troubleshooting#wrong-file-opener

As trash-cli is safe (files are not wiped from your system, you can recover them) we don't show any confirmation. Many users find too many prompts obtrusive. As you have to enable trash-cli explicitly you are already familiar with the behaviour. In fact, even trash-cli itself doesn't have any interactive mode.

Feel free to ask any questions you have.

1 points

You will find this section useful: https://github.com/jarun/nnn/wiki/Developer-guides#make-options

Say you want to compile out the built-in batch renamer. The corresponding make option is O_NOBATCH. So you compile nnn with the following command:

make O_NOBATCH=1 strip

Note that the defaults are very carefully selected so you may probably not have to use make options when you are just getting familiar with nnn. Same goes for configuration variables.

Feel free to ask if you have any follow-up questions.

1 points

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.