News for hackers. Stuff that matters.
Re:Broot – A new way to see and navigate directory trees by fraktl on Thursday January 09, 2020 @05:44AM (#22000087)
I'm one of those skeptic people who always criticize just because I'm a negative person. However... I LOVE THIS PROGRAM! I really, really, really love it!

I don't care if it's been done before. I don't care if <insert name here> exists and does a similar thing.

Awesome because: - short name (br in terminal, I'll remember that instantly)

- easy installation

- web page is awesome and shows you instantly how to best use this program

- help page in the program itself is awesome, clear and easy to navigate

- defaults are sensible and totally easy to get used to

- broot just WORKS! and it works well, I finally got rid of all the aliases around ls that I used in order to get info I want

Amazing job Denys, 10/10 for the web, program, documentation and examples!

Btw. Linux/Windows user here.

Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @05:58AM (#22000148)
Wow. Thank you. As an open-source author it really helps to get this kind of comments.
Re:Broot – A new way to see and navigate directory trees by bpizzi on Thursday January 09, 2020 @06:40AM (#22000348)
Please accepts my sincere congratulations and appreciation for your work on broot too! (Et bonjour de lyonnais à lyonnais pendant qu'on y est!) And I see you work for this french group now, and I'm pretty sure one of my plant management software is deployed at one of their plants - the world is small!
Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @06:42AM (#22000358)
Hey, come tell me more in my virtual coffee room : https://miaou.dystroy.org/3?Code_Croissants
Re:Broot – A new way to see and navigate directory trees by modarts on Thursday January 09, 2020 @11:24AM (#22002480)
Well, here’s another one - this is easily one of the most useful cli tools that I’ve installed in a very long time. This is amazing work!
Re:Broot – A new way to see and navigate directory trees by petre on Friday January 10, 2020 @03:12AM (#22009301)
Thank you! I really like your program.
Re:Broot – A new way to see and navigate directory trees by fraktl on Thursday January 09, 2020 @06:24AM (#22000269)
Open source authors should be getting more "thank you" messages rather than constant barrage of issues and complaints :)

Have an excellent day and successful year!

Re:Broot – A new way to see and navigate directory trees by mrec on Thursday January 09, 2020 @08:23AM (#22000950)
It never occurred to me before, but it'd be great for GitHub et al to have a way to leave kudos and thank-you notes. As things stand, the only affordances are for leaving issues and complaints, so it's not surprising that that's what get left.
Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @09:10AM (#22001277)
When devs give a link to their twitter account, their chat, etc. they certainly wouldn't mind reading a kind personal comment from time to time.
Re:Broot – A new way to see and navigate directory trees by efreak on Thursday January 09, 2020 @06:34PM (#22007038)
I'd be happy to use a first-party system designed for simply saying why I like something. However I'm not willing to create a Twitter account just so I can thank someone when we've never met (and likely never will), and are likely never to speak to each other again. Same deal with signing into other services through GitHub (like gitter), that might start sending me emails (when signing in via GitHub, the service gets your email address; so far as I know, gitter doesn't use it for anything, but other services might).
Re:Broot – A new way to see and navigate directory trees by shepmaster on Thursday January 09, 2020 @08:38AM (#22001037)
I’ve seen and used issues as “thank yous”. As a developer, I don’t mind this misuse of the issues :-)
Re:Broot – A new way to see and navigate directory trees by bloopernova on Thursday January 09, 2020 @09:45AM (#22001570)
I've done that a few times, and always felt anxiety before hitting "submit". So far I've had mostly good reactions to it, but I've also had it ignored and the ticket silently closed.
Re:Broot – A new way to see and navigate directory trees by B1FF_PSUVM on Friday January 10, 2020 @03:41PM (#22015290)
Devs could allow a "this software is too good for us" issue, keep it unresolved and see how many would pile on ...

(A really cheeky issue tracker could have this built in as issue 0.)

Re:Broot – A new way to see and navigate directory trees by katbyte on Saturday January 11, 2020 @12:22PM (#22021019)
Ignored and silent closed is not the same as negatively commented on and closed.

Thank you issues while clutter would be my favourite off topic issue to close.

Re:Broot – A new way to see and navigate directory trees by krick on Thursday January 09, 2020 @06:30PM (#22007020)
Probably depends on the person. I would kinda mind that.
Re:Broot – A new way to see and navigate directory trees by irrational on Thursday January 09, 2020 @11:01AM (#22002240)
Isn’t that what stars are for? Not a note, but I wouldn’t Star a repository I didn’t appreciate.
Re:Broot – A new way to see and navigate directory trees by mrec on Thursday January 09, 2020 @11:06AM (#22002279)
Unclear, I think. I tend to use GitHub stars as bookmarks, which implies interest but not necessarily hearty approval.

I don't think you can generalize here; it's like Twitter, where some people use Likes to remember all-time favourites and some people use them as an "I've read this" checkbox.

Re:Broot – A new way to see and navigate directory trees by NetOpWibby on Thursday January 09, 2020 @12:01PM (#22002942)
I also use stars as bookmarks. A dedicated "appreciate" button would be nice.
Re:Broot – A new way to see and navigate directory trees by gunnihinn on Saturday January 11, 2020 @05:38PM (#22022872)
F
Re:Broot – A new way to see and navigate directory trees by derefr on Thursday January 09, 2020 @07:28PM (#22007359)
Besides the thing sibling commenters mentioned about GitHub Stars acting like bookmarks, I also feel that GitHub Stars are more intended to be used to indicate interest in the source code itself—which is a bit different from indicating interest in the product you get by compiling said source code.

I might Star e.g. Postgres (yeah, I know, not their official repo) because someone told me that it's an example of good, elegant code, and I would like to study it. But that doesn't mean that I'm a Postgres user, let alone an adoring fan. I'm starring the code.

Re:Broot – A new way to see and navigate directory trees by aerovistae on Thursday January 09, 2020 @03:42PM (#22005464)
What a great idea! I submitted it to Github's feedback form.
Re:Broot – A new way to see and navigate directory trees by digitalsanctum on Thursday January 09, 2020 @02:00PM (#22004292)
The new GitHub Sponsors program is great for donating to an open source author but it requires the author to sign up.
Re:Broot – A new way to see and navigate directory trees by derefr on Thursday January 09, 2020 @07:24PM (#22007331)
I could have sworn that GitHub's "emoji reactions" thing applied to a repo's Releases, but I guess I was mistaken. It'd be a nice addition.
Re:Broot – A new way to see and navigate directory trees by eepp on Thursday January 09, 2020 @08:48AM (#22001101)
Stars?
Re:Broot – A new way to see and navigate directory trees by aembleton on Thursday January 09, 2020 @09:03AM (#22001226)
Doesn't feel personal enough. It would be helpful to be able to express what you like about a piece of software.
Re:Broot – A new way to see and navigate directory trees by brnt on Thursday January 09, 2020 @09:03AM (#22001229)
That's what I use stars for anyway.

Let me pile on btw: great tool!

Re:Broot – A new way to see and navigate directory trees by yodsanklai on Thursday January 09, 2020 @08:24AM (#22000954)
Just installed it. It looks nice. It's great to see that there is room for improvement for the shell commands and utilities we use everyday.

I think a vim mode would be great. The first thing I did was to use 'j' to navigate in the tree.

Re:Broot – A new way to see and navigate directory trees by b0rsuk on Friday January 10, 2020 @06:21AM (#22010207)
Strongly agree. Keyboard interfaces can be very fast and efficient, but their weakness is having to learn a separate keymap (or set of options) to use a new program.

Vim keys is the closest console programs have to a common language! I seriously think all console programs should use a vim-like keymap. Not Emacs, because Emacs has a completely different philosophy - integrate everything into Emacs. Emacs is the prototype IDE. Emacs doesn't seek to export its keybindings, it seeks to import everything.

Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @08:35AM (#22001016)
The problem with using "j" to go down is that it prevents you from using "j" to filter files having a "j" in their name.
Re:Broot – A new way to see and navigate directory trees by samatman on Thursday January 09, 2020 @10:09AM (#22001779)
Presumably a vim mode user would jump straight to `/` to filter, or i/a, or f{letter}, etc.
Re:Broot – A new way to see and navigate directory trees by d21d3q on Saturday January 11, 2020 @07:51AM (#22019618)
That was first thing I did - check if I can navigate vim style. However it has different philosophy. It has fuzzy search, so that you just type name of directory which you want to enter, it will be filtered out and hit enter. Now you can explore it.
Re:Broot – A new way to see and navigate directory trees by jgrpf on Thursday January 09, 2020 @08:56AM (#22001165)
A couple of programs substitue that with ctrl+[hjkl].
Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @09:11AM (#22001287)
You can define your own shortcuts for navigation. See for example this: https://github.com/Canop/broot/issues/24#issuecomment-572481...
Re:Broot – A new way to see and navigate directory trees by krick on Thursday January 09, 2020 @07:01PM (#22007212)
Same. It seems like it could be useful, but I'm virtually handicapped after decades of vim mode in a sense I cannot efficiently use any software that doesn't support vim keystrokes (well, nobody really can, they just don't know that).
Re:Broot – A new way to see and navigate directory trees by psalminen on Thursday January 09, 2020 @12:49PM (#22003540)
I did the same thing. A vim mode would be a nice addition. To search for j, I think creating an insert mode would be best.
Re:Broot – A new way to see and navigate directory trees by krick on Thursday January 09, 2020 @06:34PM (#22007036)
Better `/`. It is already default in dozens of programs with vim-like layout, including as prominent ones as man, less, ranger and more.
Re:Broot – A new way to see and navigate directory trees by p5a0u9l on Friday January 10, 2020 @10:54AM (#22011811)
I too agree with strength that is strong. Just yesterday I was googling how to get tree to respect my git ignore. The universe heard and responded with broot!

But without first class support for vi navigation, be will end up replacing tree as my directory preview pane in vifm.

Re:Broot – A new way to see and navigate directory trees by throwaway77384 on Thursday January 09, 2020 @08:01AM (#22000811)
I second this. This has replaced nnn for me and solves so many devops headaches. Excellent work!

This should teach anyone that tackling something that's considered "the basics" is not a bad idea. It is astounding how these really simple things can still be enhanced (or even revolutionised ;)) in 2020.

Re:Broot – A new way to see and navigate directory trees by apjana on Thursday January 09, 2020 @09:49AM (#22001604)
> This has replaced nnn for me and solves so many devops headaches

Can you please elaborate? Is that specifically because nnn[1] doesn't show a complete overview of the filesystem or some other features are missing?

One of the guiding principles of nnn is to generate minimum disk IOs.

Reading through a complete volume on a stuffed microSD or SD card attached to a RaspberryPi to list the filesystem (even if compacted) and then supporting filesystem changes dynamically is resource-intensive. nnn development is driven by minimum resource availability and usage.

[1] https://github.com/jarun/nnn

Re:Broot – A new way to see and navigate directory trees by throwaway77384 on Thursday January 09, 2020 @02:41PM (#22004768)
You know, I hadn't considered that. This distinguishes nnn from Broot. I would revise my comment if I could, but in the absence of that ability, consider this my correction.
Re:Broot – A new way to see and navigate directory trees by apjana on Thursday January 09, 2020 @03:12PM (#22005135)
No problem! Just wanted to get some insight and explain things as they are with nnn.
Re:Broot – A new way to see and navigate directory trees by apjana on Thursday January 16, 2020 @01:28AM (#22062141)
A new version of nnn is released - https://github.com/jarun/nnn/releases/tag/v2.9

It simplifies a lot of workflows and reduces the number of keys.

Re:Broot – A new way to see and navigate directory trees by dod9er on Thursday January 09, 2020 @09:39AM (#22001512)
Could you elaborate which devops headaches got solved ? :)
Re:Broot – A new way to see and navigate directory trees by throwaway77384 on Thursday January 09, 2020 @02:49PM (#22004865)
At the risk of embarrassing myself: The ":s" verb for easily viewing the size of directories / files, the overview of multiple directories at once, the gitignore handling, at a glance. There might be more, but I would have to spend more time with it.

disclaimer: my definition of "devops" is sitting in a remote terminal for where I run docker and chasing down which files take up all my precious space, or not remembering where I put something, which makes the tree overview very useful. I know I could achieve this via many other means also (and did before Broot), but Broot is also very pretty, so I quite like that, too :)

Re:Broot – A new way to see and navigate directory trees by apjana on Thursday January 09, 2020 @03:20PM (#22005213)
> The ":s" verb for easily viewing the size of directories / files

It's the keybind "S" with nnn (or "A" for apparent usage). You can also use the same option ("-S") to open nnn in du mode.

> the overview of multiple directories at once

I explained the nnn design strategy in my other response

> the gitignore handling

This can be added but it changes the current generic way of handling directory entries

> There might be more, but I would have to spend more time with it

That would actually be a constructive data to improve nnn as well.

Thanks for the notes!

Re:Broot – A new way to see and navigate directory trees by throwaway77384 on Friday January 10, 2020 @05:24AM (#22009959)
No worries. I wish I was able to give better feedback, but I am nowhere near as expert a user as many others surely are.

I like how 'on the ball' you are with this though, it's that kind of passion that makes projects like nnn so strong!

Re:Broot – A new way to see and navigate directory trees by apjana on Friday January 10, 2020 @11:16AM (#22011990)
Yep, great ideas are always welcome! There's always room for improvement.
Re:Broot – A new way to see and navigate directory trees by ashwinne on Thursday January 09, 2020 @09:06PM (#22007846)
+1 I use a combination of Linux tools all day to achieve this: ls, tree, ranger, ncdu. Thanks so much for writing a tool built primarily for directory exploration. This deserves to ship in Ubuntu ASAP :-)

#1 ask: please add a Vim mode for j/k navigation and / search.

Re:Broot – A new way to see and navigate directory trees by base698 on Friday January 10, 2020 @11:41AM (#22012213)
It's funny that it is called Broot and a bunch of people just downloaded and ran an executable from the internet.
Re:Broot – A new way to see and navigate directory trees by dystroy on Saturday January 11, 2020 @01:20PM (#22021383)
I am Broot, and root, on so many computers now !

but seriously, how to install from source is clearly shown

Re:Broot – A new way to see and navigate directory trees by VvR-Ox on Thursday January 09, 2020 @09:46AM (#22001575)
+1, I completely agree!

Especially the screenshots help to get motivated to try it and if you try it you will notice it just works as advertised - awesome :-D

Re:Broot – A new way to see and navigate directory trees by fantasicferret on Friday January 10, 2020 @01:41PM (#22013726)
I can't agree more. I don't understand why other software developers think (or don't care) that it's okay to have tedious installation instructions and or controls. I'm a developer and I want to get my new tool and start playing with it, not spend hours with configuration and setup.
Re:Broot – A new way to see and navigate directory trees by yodsanklai on Thursday January 09, 2020 @07:47AM (#22000718)
what's the easiest way to install it on Mac OS? I don't see mentions of a brew package in the doc.
Re:Broot – A new way to see and navigate directory trees by bnjamin on Thursday January 09, 2020 @07:55AM (#22000778)
brew install broot

then run the broot command and it will prompt you to update your .bashrc or .zshrc file

Re:Broot – A new way to see and navigate directory trees by pdimitar on Thursday January 09, 2020 @05:30PM (#22006594)
Both `brew install broot` and `cargo install broot` work (latter if you have Rust installed, which is just `brew install rust` away).

The homebrew version is quite behind though, it was 0.10.x when I checked earlier today, while the latest version is 0.11.x.

Re:Broot – A new way to see and navigate directory trees by windexh8er on Thursday January 09, 2020 @08:04AM (#22000822)
There are install instructions for cargo, so it's Rust. Install those prereqs first and then use cargo to install Broot.
Re:Broot – A new way to see and navigate directory trees by ibly31 on Thursday January 09, 2020 @05:29PM (#22006589)
I was unable to cagro install it, had a bunch of build errors. Decided to brew install it instead, and although its a major version behind the github release, it works as advertised!
Re:Broot – A new way to see and navigate directory trees by tomlong on Thursday January 09, 2020 @07:55AM (#22000771)
Looks like rust/cargo but i haven't tried it yet
Re:Broot – A new way to see and navigate directory trees by lalabert on Thursday January 09, 2020 @08:05AM (#22000826)
Great summary!

This is an awesome piece work. Do a "simple" thing extremely well! Well done