Live data from Hacker News

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

github.com

1–10 of 31 posts

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

#1
Hi Everyone,

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.

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'm using anything other than `ls`. nav supports common `ls` options/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.

nav works as a standalone tool or in a bash/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.

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'd love to take any feedback or suggestions that might come to mind!

[0] https://news.ycombinator.com/item?id=37220828

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

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

#4
post #2

Any thoughts on Midnight Commander? https://midnight-commander.org/

I have to admit that I had not come across midnight-commander. It certainly looks interesting and I'll be giving it a spin. Thanks for pointing me in its direction!

I do intend to expand nav's feature set to come close to an `ls` replacement, at least for the most common workflows, whereas midnight-commander and other similar tools are perhaps closer to being (or are) file managers. I'm also hopeful that by using the completely awesome Charm [0] libraries that I can make for a pleasing/modern UI. Either way, I had a blast building nav and look forward to continuing on.

Thanks again for the comment!

[0] https://github.com/charmbracelet

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

#7
post #4
post #2

Any thoughts on Midnight Commander? https://midnight-commander.org/

I have to admit that I had not come across midnight-commander. It certainly looks interesting and I'll be giving it a spin. Thanks for pointing me in its direction! I do intend to expand nav's feature set to come close to an `ls` replacement, at least for the most common workflows, whereas midnight-commander and other similar tools are perhaps closer to being (or are) file managers. I'm also hopeful that by using the…

How about Norton Commander?

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

#8
post #6
post #5

Nice! For inspiration, you may want to look at `lf`: https://github.com/gokcehan/lf

Also Broot, which is-- like OP's tool-- intended as an ls replacement rather than a full file manager: https://github.com/Canop/broot

Broot looks really nice. I love the tree-like output - `tree` is one of my favorite tools. Interactive tree is a great idea, makes me wish I had perhaps started there instead.

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

#9
post #5

Nice! For inspiration, you may want to look at `lf`: https://github.com/gokcehan/lf

Thanks! This does look like a similar tool, and as you said, I love seeing what others have done for inspiration for new features to tools I'm working on. Thanks again.

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

#10
post #6
post #5

Nice! For inspiration, you may want to look at `lf`: https://github.com/gokcehan/lf

Also Broot, which is-- like OP's tool-- intended as an ls replacement rather than a full file manager: https://github.com/Canop/broot

Broot is incredible!
Post reply on HN