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.
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.
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.
Yes, navigation in nnn is extremely simple and help is always a keypress away. I have written nnn with new users migrating from the GUI world to the CLI in mind.
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)?
Can you please elaborate what you mean by I'm still not efficient? Do you mean you don't remember the shortcuts or are you facing any basic issue with navigation using a terminal file manager?
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.
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.
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.
Yes.
Something in the lines of:
buku bookmark manager. Gets more useful as you age.
Try RustDesk.
nnn plugins integrate very well with fzf... it has dragon integration as well.
Live previews documentation: https://github.com/jarun/nnn/wiki/Live-previews
If you still need help with it, contact the devs in the GitHub project rolling ToDo.
With
nnn, you can set your preferred$EDITORand edit any text file in it. Just use the program option-e.Quickstart section: https://github.com/jarun/nnn#quickstart
nnnalso has a solid Wiki with tons of information: https://github.com/jarun/nnn/wikiPlease follow the second step in Quickstart section.
My pleasure!
Author of nnn here. As goes your requirements:
nnn has them all. I personally prefer the type-to-nav mode. You should check it out.
It comes in a 100KiB binary and you can reduce that further IF you are adventurous. Visit the wiki. ncurses is the only dependency.
You should really remember the arrows and tabs. The rest are a <kbd>?</kbd> away at runtime. We also have an extensive wiki.
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.
Head here: https://github.com/jarun/nnn/wiki/Performance
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.
I've noticed before you seem to have a personal agenda against nnn.
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.
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.
Yes, navigation in nnn is extremely simple and help is always a keypress away. I have written nnn with new users migrating from the GUI world to the CLI in mind.
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)?
Author of file manager nnn here.
Can you please elaborate what you mean by I'm still not efficient? Do you mean you don't remember the shortcuts or are you facing any basic issue with navigation using a terminal file manager?
I would be glad to help if possible.
We don't see the slowness you mention in our tests. However, there are differences. Answers to your notes below.
Alacritty is not tested.
There is a version dep on tmux. Tmux support is tested.
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.
For images it opens in a new window i think. For previewer-specific details please drop a question in the ToDo list.
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.
Thanks!
Download the source code. Extract. Go inside the directory in the terminal. Run:
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: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.
You'll have to compile v3.4 with make option
O_ICONS=1Do you see squares with unicode characters in them? In any case, reddit is not the right place to debug and fix issues. Please raise a defect.
Please follow the instructions here: https://github.com/jarun/nnn/wiki/Advanced-use-cases#file-icons
Configuration details are here: https://github.com/jarun/nnn/wiki/Usage#configuration