Re:
by dankco on Wednesday September 27, 2023 @06:35PM
(#37682366)
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.
Same thing. MC was made to emulate NC. And of course there are actually countless filesystem browsers. Even xtree was probably not the first since that was on ms-dos, and I bet there were some on the 8-bit machines before that.
But this one's aim seems to be a bit specific and not simply to be a filesystem browser (file manager) but specifically to try to be an "interactive ls". IE somehow feel like ls. Though I don't know why. It doesn't seem more useful than a normal file manager. I think it's just down to a very fine point of aesthetics, which is fair enough.
Re:
by JNRowe on Wednesday September 27, 2023 @10:48PM
(#37684581)
The beauty of that feature is the system to implement it - extfs(EXTernal virtual File System) - is built with simple scripts, so you can add your own little tools to make other things navigable beyond the ~40 that come bundled.
Re:
by dankco on Wednesday September 27, 2023 @07:24PM
(#37682881)
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:
by dankco on Wednesday September 27, 2023 @07:23PM
(#37682869)
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:
by dankco on Wednesday September 27, 2023 @09:04PM
(#37683854)
Yes, fzf and ripgrep are the best! Together they are the heart of at least half of my .zshrc functions, and it would be fun to see about writing something similar by composing them together in various ways. Great idea!
Re:
by jraph on Thursday September 28, 2023 @02:37AM
(#37686110)
Seems nice :-)
For this part specifically:
> the all-too-familiar cycle of `ls` to view a directory, followed by `cd`, then `ls`, and repeat
I use (oh-my-)zsh for this. Tab would autocomplete (with some basic support for fuzzy "search" - 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't complete with the name of a (non-folder) file.
This is very effective. I feel like one of my hands is missing when I don't have this, for instance when I'm using bash.
Re:
by dankco on Thursday September 28, 2023 @10:02AM
(#37689746)
I agree! nav supports this workflow in search mode as well, and I could easily support fuzzy searching rather than exact match if that would be valuable.
I’ve used ranger for years, even fixed a bug I found while using it.
For my work patterns it’s too feature rich. I only use it for browsing directory structures. Everything else just gets in the way because I haven’t taken the time to learn the other features.
https://midnight-commander.org/
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
But this one's aim seems to be a bit specific and not simply to be a filesystem browser (file manager) but specifically to try to be an "interactive ls". IE somehow feel like ls. Though I don't know why. It doesn't seem more useful than a normal file manager. I think it's just down to a very fine point of aesthetics, which is fair enough.
There is a simple introduction in /usr/lib/mc/extfs.d/README, or https://github.com/MidnightCommander/mc/blob/master/src/vfs/... .
Sometimes broot feels a little busy or complex to me, though. I'm interested in your tool's UI as well.
This is convenient when you don't want to browse or search, just want what tree does but without scrolling.
Gratzi, amigo.
For this part specifically:
> the all-too-familiar cycle of `ls` to view a directory, followed by `cd`, then `ls`, and repeat
I use (oh-my-)zsh for this. Tab would autocomplete (with some basic support for fuzzy "search" - 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't complete with the name of a (non-folder) file.
This is very effective. I feel like one of my hands is missing when I don't have this, for instance when I'm using bash.
Have you thought about implementing marks, so that you can select some files for further operations?
For my work patterns it’s too feature rich. I only use it for browsing directory structures. Everything else just gets in the way because I haven’t taken the time to learn the other features.