TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Nnn – a terminal file manager for programmers

298 点作者 max_sendfeld超过 6 年前

27 条评论

dang超过 6 年前
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 未加载
rsync超过 6 年前
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 未加载
throwaway053934超过 6 年前
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 未加载
opan超过 6 年前
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 未加载
yorhel超过 6 年前
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 未加载
p4bl0超过 6 年前
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 未加载
zmix超过 6 年前
Very nice! I often end up running MidnightCommander but this would be enough in most cases. I really like the idea!
评论 #18521505 未加载
评论 #18530521 未加载
thibran超过 6 年前
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 未加载
AnaniasAnanas超过 6 年前
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 未加载
chmln超过 6 年前
Lack of file previews makes it a deal breaker. Ranger is a bit slower, but it does so much more.
评论 #18523091 未加载
评论 #18522983 未加载
jankotek超过 6 年前
&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 未加载
nderjung超过 6 年前
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 未加载
zestyping超过 6 年前
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 未加载
YeGoblynQueenne超过 6 年前
How is this better than Midnight Commander?
评论 #18521497 未加载
评论 #18523725 未加载
评论 #18521399 未加载
halayli超过 6 年前
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>
IronBacon超过 6 年前
You would have my attention if it could rename files like I&#x27;m used (on Emacs) with Dired, specifically the Wdired mode... ^__^;
评论 #18521491 未加载
akho超过 6 年前
Why _for programmers_? What secret features support programming in particular?
评论 #18522516 未加载
nmstoker超过 6 年前
Works great in Termux on the Gemini. Plus there&#x27;s a decent man page
评论 #18523849 未加载
Schiphol超过 6 年前
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 未加载
app4soft超过 6 年前
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 未加载
ubercow13超过 6 年前
Is there any way to remap the key bindings?
评论 #18523239 未加载
svilen_dobrev超过 6 年前
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.
upofadown超过 6 年前
Anyone have any idea of what I am supposed to use as a file opener on OpenBSD?
评论 #18522211 未加载
评论 #18522093 未加载
chemicalnovae超过 6 年前
Any chance this has&#x2F;might get support for Windows natively?
评论 #18525503 未加载
fiatjaf超过 6 年前
Is there a browser-based file manager somewhere?
评论 #18524506 未加载
sjapkee超过 6 年前
Still have not done anything better than mc.
评论 #18523537 未加载
WeAreGoingIn超过 6 年前
Recommend vifm or why not tmux which is very configurable.
评论 #18521918 未加载