DEV Community

Cover image for broot, a new way to browse directories

broot, a new way to browse directories

Denys Séguret on February 01, 2019

I always loved the overview you can get from a tree like view. But tree is almost never usable, because it usually generates pages (or hundreds of ...
Collapse
 
tobiassn profile image
Tobias SN

I am broot.

Collapse
 
dmfay profile image
Dian Fay

This is neat! I don't know if there's really an "interactive tree"-shaped hole in how I navigate filesystems but it's always fun to see a new take on the basics.

Suggestion: ctrl+j/k to move the cursor down/up for the vi people?

Collapse
 
dystroy profile image
Denys Séguret

Good suggestion. The :q and such should already help vi people (like me) at home.

Collapse
 
qm3ster profile image
Mihail Malo

Radical, works for me. Added the bash script too.
May I suggest adding the following to cargo.toml?

[profile.release]
lto = true
Collapse
 
autoferrit profile image
Shawn McElroy

While not in a "tree" structure, why not something like z with fzf. that will allow me to go to or edit a file pretty quickly

Collapse
 
dystroy profile image
Denys Séguret

z ? I'm sorry, I don't see what you refer to (my knowledge of fzf is quite limited).

Collapse
 
autoferrit profile image
Shawn McElroy • Edited

theres a tool called z where i can type say z folderName and it will jump to a directory that I have been to in the past with cd. just typing z will show me all the directories I have been to recently, ranked by how often I go to them.

fzf is a pretty terminal ui for finding files (in picture). Though, fzf has a lot of other great uses found here:

github.com/junegunn/fzf
fzf

I was just curious why you didn't use those. But if you were not familiar with them, that makes sense. I could do most of what you do with fzf and z. However, I do really like what you have made here. What I like is the tree like structure. I have installed it and was playing with it earlier. Good work. I'll have to keep it.

Thread Thread
 
dystroy profile image
Denys Séguret

I'm familiar with fzf for finding files, and I used it a lot before to use broot, it's a great tool (and one of those innovations which inspired a lot of other ones). But I didn't knew of z.

Collapse
 
janpauldahlke profile image
jan paul

nice thing man, although iam not into rust

Collapse
 
qm3ster profile image
Mihail Malo

What? Why? :O

Collapse
 
crewsycrews profile image
🎲Danil Rodin🎲

Great work, man! Will try.