TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Nnn – a terminal file manager for programmers

298 pointsby max_sendfeldover 6 years ago

27 comments

dangover 6 years ago
Show HN is for sharing your own personal work. We got a complaint saying that this is not the submitter&#x27;s work, so I&#x27;ve taken Show HN out of the title.<p>Posting as a Show HN something you didn&#x27;t create is effectively taking credit for someone else&#x27;s work, so please don&#x27;t do that!<p>Please read the rules: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;showhn.html" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;showhn.html</a>.
评论 #18525363 未加载
评论 #18525920 未加载
rsyncover 6 years ago
I do not use a terminal based file manager - I find that a better workflow for me is to use sshfs to create a local mount on my laptop and then just use the Finder to browse ... which gives me preview, etc.<p>HOWEVER, there is a specific use-case - renaming a bunch of files in a directory - where I do use a &quot;file manager&quot; and that file manager is &#x27;vimv&#x27;.[1]<p>vimv is a very simple tool - you run vimv in a directory and suddenly the vi editor opens up with the contents of that directory. You then use the vi editor to edit the filenames any way you like. Upon :wq, the files in that directory are renamed.<p>Very useful - and in many cases, much faster than crafting a sed&#x2F;awk one liner to do the renaming (especially if some of the renaming is arbitrary or random).<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;thameera&#x2F;vimv" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;thameera&#x2F;vimv</a>
评论 #18523792 未加载
评论 #18530701 未加载
评论 #18523346 未加载
评论 #18524072 未加载
评论 #18523608 未加载
评论 #18523359 未加载
评论 #18523309 未加载
throwaway053934over 6 years ago
A lot of good features in nnn. Unfortunately, for me, the huge deal breaker is the (sorry, but I have to say it) <i>terrible</i> choices for one of the most important hotkey-functionality combinations.<p>I am not talking about some rarely used keys&#x2F;functions, but the problem lies at the very core of the experience: the simple hjkl, vim-style navigation.<p>You see, as in vim, k&#x2F;j (&#x27;up&#x27;&#x2F;&#x27;down&#x27;) obviously move up&#x2F;down in the list of dirs&#x2F;files. h (&#x27;left&#x27;) moves up the directory hierarchy (&#x27;Parent dir&#x27; as nnn&#x27;s help aptly describes the function.) Of course, now l (&#x27;right&#x27;) moves down the directory hierarchy: IF you are sitting with the highlight on a DIRECTORY entry, obviously if moves down into that directory.<p>But here is the kicker: what if you have as your current highlight something OTHER than a directory, that is a FILE ?<p>It OPENS the file. (The open operation is done through xdg-open, so whatever that is configured to recognize) If xdg-open is not configured defensively, in the case when the file is executable it runs the program. Or if the file has some associated program, it is launched with the file as an argument. (this was happening even on my machine, and I have a relatively conservative xdg-open config) At the minimum it launches an editor, opening the file in read&#x2F;WRITE. In nnn&#x27;s help, listed among the keys activating this &#x27;Open file&#x2F;enter dir&#x27; is the &lt;Return&gt; key, in addition to the usual move right keys (so &#x27;l&#x27; and right arrow). A clear expression that in the authors intention those keys have equivalent functionality.<p>So imagine you&#x27;re browsing around the file system as fast as your fingers and eyes allow (after, that&#x27;s the beauty of the fast text&#x2F;ncurses interfaces, yes?). You just want to examine stuff, look at files, poke into configurations, maybe for a archive you just downloaded. Archive that might or might not have executable stuff and&#x2F;or potentially harmful things. You&#x27;ve located the dir path you want to go into, you dive in and before you realize you need to hit the brakes on that &#x27;l&#x27; key, you end up moveing RIGHT on SOMETHING (it happened so fast you&#x27;re not even sure what it was), and that SOMETHING was executed&#x2F;loaded, now some application is opened, and on top of that you were continuing to type so that application receives your keys and does who-knows-what (well, depending on what was launched).<p>WTF ??? The first time it happened, I could not believe such a UI design decision: mixing NAVIGATION and OPEN operations on the SAME KEY. OPEN is a sensitive, potentially disruptive operation: there SHOULD be some minimal friction provided in the interface before one is allowed to proceed.<p>It moved this nnn from potentially one my favorite tools, into a totally love&#x2F;hate relationship. Yes, &quot;love&quot; because indeed it does some things well. But the mistake of this RIGHT&#x2F;OPEN snafu is enough to more than cancel any other qualities.
评论 #18522654 未加载
评论 #18522384 未加载
评论 #18530041 未加载
opanover 6 years ago
The search is extremely cool and fun to use. Directories all seem to load very very quickly. It&#x27;s got vidir integration, giving it bulk-renaming. I wasn&#x27;t familiar with vidir, but the &quot;:bulkrename&quot; command in ranger was my favorite part of it. After a few minutes of poking around with nnn, I ended up installing it on all my machines. The only weird thing I noticed was that I couldn&#x27;t find a straight-forward way to delete files. The first thing I came up with was to hit ! to go into a shell and then just use rm. Not sure if I was missing something or if this was deliberate to make sure you don&#x27;t accidentally delete files.
评论 #18521985 未加载
yorhelover 6 years ago
This looks incredibly cool, I love the speed and minimalism. It doesn&#x27;t seem as configurable and feature-packed as vifm[1], so I&#x27;ll probably stick with that, but it certainly fills a good niche.<p>&gt; nnn vs. ncdu memory usage in disk usage analyzer mode (400K files on disk):<p>I assume that&#x27;s because nnn isn&#x27;t keeping the entire directory structure in memory, which means that browsing to a subdirectory involves rescanning the entire directory. That&#x27;s a fair trade-off, but an unfair comparison.<p>1. <a href="https:&#x2F;&#x2F;vifm.info&#x2F;" rel="nofollow">https:&#x2F;&#x2F;vifm.info&#x2F;</a> - I&#x27;m surprised this hasn&#x27;t been mentioned yet in this thread.
评论 #18521583 未加载
评论 #18521645 未加载
p4bl0over 6 years ago
Every time I see interesting file managers it makes me want to try and like them but I always end up abandoning them after either a few minutes or a few hours. I don&#x27;t know why. I&#x27;m quite sure I could be more productive using a file manager, even a graphical one. But it&#x27;s been more than ten years that the only file manager I actually use is Bash and the GNU coreutils.
评论 #18521472 未加载
评论 #18521320 未加载
评论 #18521574 未加载
评论 #18521478 未加载
评论 #18522919 未加载
评论 #18521486 未加载
评论 #18521745 未加载
zmixover 6 years ago
Very nice! I often end up running MidnightCommander but this would be enough in most cases. I really like the idea!
评论 #18521505 未加载
评论 #18530521 未加载
thibranover 6 years ago
Emacs Dired + Tramp -&gt; no need for any other tool.<p>One super awesome Dired feature is C-x C-q to edit a folder like a file (all Emacs commands work here, like macros which are easier &amp; faster to get right than most shell commands). To save your changes after editing, press C-c C-c.
评论 #18521476 未加载
评论 #18521674 未加载
评论 #18524166 未加载
评论 #18524243 未加载
评论 #18521452 未加载
AnaniasAnanasover 6 years ago
My friends have been using it for a few days and they seemed quite happy with it. The only thing that stops me from using it is that I need thumbnails, so I am stuck with spacefm for now.
评论 #18521346 未加载
评论 #18521508 未加载
chmlnover 6 years ago
Lack of file previews makes it a deal breaker. Ranger is a bit slower, but it does so much more.
评论 #18523091 未加载
评论 #18522983 未加载
jankotekover 6 years ago
&gt; nnn is probably the fastest and most resource-sensitive file manager you have ever used.<p>Volkov Commander is written in assembler, binary has 32KB with zero deps, memory requirements far bellow 1MB. It has better UI and more features.
评论 #18523260 未加载
nderjungover 6 years ago
How does this compare to <a href="https:&#x2F;&#x2F;github.com&#x2F;ranger&#x2F;ranger" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;ranger&#x2F;ranger</a> ?
评论 #18521462 未加载
评论 #18521465 未加载
zestypingover 6 years ago
Why doesn&#x27;t nnn remember where you are in a directory? It seems natural to me that &quot;hl&quot; should preserve your state, e.g. &quot;hhll&quot; should take you back to the same place you were in.<p>Was it an intentional design choice to make &quot;l&quot; put you back on the first entry in the directory? Why?
评论 #18523163 未加载
YeGoblynQueenneover 6 years ago
How is this better than Midnight Commander?
评论 #18521497 未加载
评论 #18523725 未加载
评论 #18521399 未加载
halayliover 6 years ago
Reminded me of xtree gold<p><a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;XTree" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;XTree</a>
IronBaconover 6 years ago
You would have my attention if it could rename files like I&#x27;m used (on Emacs) with Dired, specifically the Wdired mode... ^__^;
评论 #18521491 未加载
akhoover 6 years ago
Why _for programmers_? What secret features support programming in particular?
评论 #18522516 未加载
nmstokerover 6 years ago
Works great in Termux on the Gemini. Plus there&#x27;s a decent man page
评论 #18523849 未加载
Schipholover 6 years ago
Does anyone who has used both nnn and ranger (the one I use, and am very happy with) care to explain what are the selling points of that fm compared to this one?
评论 #18523322 未加载
评论 #18521883 未加载
app4softover 6 years ago
How launch executable file from <i>nnn</i>? For example:<p><pre><code> &gt; 2018-11-15 09:44 167.8M* Krita-4.1.5-x86_64.AppImage*</code></pre>
评论 #18522659 未加载
ubercow13over 6 years ago
Is there any way to remap the key bindings?
评论 #18523239 未加载
svilen_dobrevover 6 years ago
i&#x27;m stuck with long-ago-forked version of vfu <a href="https:&#x2F;&#x2F;github.com&#x2F;cade-vs&#x2F;vfu-dist" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;cade-vs&#x2F;vfu-dist</a> Works well, as old-school as it may look.
upofadownover 6 years ago
Anyone have any idea of what I am supposed to use as a file opener on OpenBSD?
评论 #18522211 未加载
评论 #18522093 未加载
chemicalnovaeover 6 years ago
Any chance this has&#x2F;might get support for Windows natively?
评论 #18525503 未加载
fiatjafover 6 years ago
Is there a browser-based file manager somewhere?
评论 #18524506 未加载
sjapkeeover 6 years ago
Still have not done anything better than mc.
评论 #18523537 未加载
WeAreGoingInover 6 years ago
Recommend vifm or why not tmux which is very configurable.
评论 #18521918 未加载