News for hackers. Stuff that matters.
Re:Broot – A new way to see and navigate directory trees by scoopr on Thursday January 09, 2020 @06:36AM (#22000329)
Is it something I'm not understanding or a bug, but alt-enter does the same thing as plain enter? (macos, zsh, iterm2, fi-locale. Installed through cargo, the executable installed the br thing)
Re:Broot – A new way to see and navigate directory trees by dancek on Thursday January 09, 2020 @07:40AM (#22000673)
MacOS Terminal and iTerm users need to configure their terminal to use the Option key properly. You need Option-Enter to output either Esc+Enter or Meta-Enter.

See https://superuser.com/a/496152 for screenshots.

Re:Broot – A new way to see and navigate directory trees by pathsjs on Friday January 10, 2020 @11:54AM (#22012334)
I tried, but sometimes I actually need the Alt key to behave like it does by default, to enter modified characters such as ~ (which is not on my keyboard). Any other ways?
Re:Broot – A new way to see and navigate directory trees by dancek on Monday January 20, 2020 @06:21AM (#22098075)
ITerm allows you to map the left and right option keys separately. Maybe that helps?
Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @06:45AM (#22000379)
It's not supposed to do the same thing. alt-enter closes vim:

* on a file it opens the file (in the same terminal if possible, depending on the system file opening) * on a directory it does a cd to that directory and comes back to the terminal (if broot was launched with the br command)

I'd like Mac users to chime in and answer you now: I can't really test on mac.

Re:Broot – A new way to see and navigate directory trees by adriang133 on Thursday January 09, 2020 @07:07AM (#22000510)
Alt-Enter, or more specifically Option-Enter doesn't work on macOS. It does the same thing as Enter, as pointed out above.

Good job btw, Broot looks awesome!

Re:Broot – A new way to see and navigate directory trees by dystroy on Thursday January 09, 2020 @07:11AM (#22000528)
OK so we'll have to define another shortcut (which should already be doable with simple configuration).
Re:Broot – A new way to see and navigate directory trees by benjaminwai on Thursday January 09, 2020 @09:02AM (#22001213)
How about a ctrl-g shortcut to cd and exit to the directory on the file/dir highlighted?

EDIT: Found https://dystroy.org/broot/documentation/configuration/ and on macOS the config file is located at ~/Library/Preferences/org.dystroy.broot/conf.toml

Re:Broot – A new way to see and navigate directory trees by pathsjs on Friday January 10, 2020 @11:56AM (#22012347)
So, how should one configure Broot to use a different shortcut to cd to a directory? Still not clear to me
Re:Broot – A new way to see and navigate directory trees by dancek on Thursday January 09, 2020 @07:49AM (#22000731)
No need to. The Option key is configurable in terminal software.