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

科技回声

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

GitHubTwitter

首页

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

资源链接

HackerNews API原版 HackerNewsNext.js

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

Show HN: Nav – A terminal navigator for interactive `ls` workflows

75 点作者 dankco超过 1 年前
Hi Everyone,<p>I built a tool for interactive navigation in the terminal that is intended to replace the all-too-familiar cycle of `ls` to view a directory, followed by `cd`, then `ls`, and repeat.<p>nav is a terminal filesystem explorer built for interactive `ls` workflows. The key features I wanted to enable are interactivity and search without feeling like I&#x27;m using anything other than `ls`. nav supports common `ls` options&#x2F;flags, as well as tab completion, and might expand its support for less common options in the future. These options exist as both CLI flags and interactive toggles.<p>nav works as a standalone tool or in a bash&#x2F;zsh pipe or subshell to e.g., change directories, copy a file name to the clipboard, etc. For example, I use the simple functions from the README in my .zshrc for interactive `cd` and copy-to-clipboard workflows.<p>nav was inspired by the discussion of the excellent `walk` [0] tool and was written from the ground up to support its `ls`-centric interactive feature set. I hope you might find it useful and I&#x27;d love to take any feedback or suggestions that might come to mind!<p>[0] <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37220828">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=37220828</a>

7 条评论

jraph超过 1 年前
Seems nice :-)<p>For this part specifically:<p>&gt; the all-too-familiar cycle of `ls` to view a directory, followed by `cd`, then `ls`, and repeat<p>I use (oh-my-)zsh for this. Tab would autocomplete (with some basic support for &quot;fuzzy search&quot; - case insensitive, part for the file works). If there are several options it displays them and they can be selected. When completed, another tab press displays the folder content. For some commands, it tries to show only relevant files. For cd, it won&#x27;t complete with the name of a (non-folder) file.<p>This is very effective. I feel like one of my hands is missing when I don&#x27;t have this, for instance when I&#x27;m using bash.
评论 #37689746 未加载
linhns超过 1 年前
Decent effort. Have you tried looking at fzf? I managed to combine it with ripgrep to create a similar experience to what you have.
评论 #37683854 未加载
评论 #37684181 未加载
shashurup超过 1 年前
Looks interesting.<p>Have you thought about implementing marks, so that you can select some files for further operations?
评论 #37689754 未加载
评论 #37721071 未加载
cstrahan超过 1 年前
Nice! For inspiration, you may want to look at `lf`: <a href="https:&#x2F;&#x2F;github.com&#x2F;gokcehan&#x2F;lf">https:&#x2F;&#x2F;github.com&#x2F;gokcehan&#x2F;lf</a>
评论 #37682653 未加载
评论 #37687745 未加载
评论 #37682881 未加载
turboponyy超过 1 年前
There&#x27;s also ranger and yazi.
评论 #37691550 未加载
djbusby超过 1 年前
Any thoughts on Midnight Commander?<p><a href="https:&#x2F;&#x2F;midnight-commander.org&#x2F;" rel="nofollow noreferrer">https:&#x2F;&#x2F;midnight-commander.org&#x2F;</a>
评论 #37682366 未加载
评论 #37683410 未加载
评论 #37681814 未加载
pmarreck超过 1 年前
Someone stick this up on search.nixos.org! Love me some good CL tooling
评论 #37684154 未加载