Canop / broot

A new way to see and navigate directory trees : https://dystroy.org/broot
MIT License
10.64k stars 234 forks source link

Please answer: do you use the br shell function for anything else than cd ? #824

Closed Canop closed 5 months ago

Canop commented 8 months ago

I suspect nobody needs the shell function to output the whole command: you don't need it for anything else than cd on quit.

Specializing this function would solve various problems but I need first to be sure I break no workflow.

Martin1887 commented 8 months ago

Nothing more in my side.

seomwan commented 6 months ago

Not yet 😛

Canop commented 5 months ago

Ok. I feel free to change br to focus on cd.

seomwan commented 5 months ago

Out of curiosity, what difference would this make?

Since I posted it, I use br to navigate and switch to shell (ctrl+t) a lot. I assume it does a similar thing to cd so nothing much would change, or..?

I also made a few custom verbs that don't exit br.

Tbh, I have no idea what difference this would make, or if I'd be affected at all.. Maybe an example would help here?

Canop commented 5 months ago

The br shell function takes from broot a whole command that it executes (evals). That is it takes eg cd some/path.

On some shells, this is a little complex to do, especially with escaping. It might also be a little dangerous.

A simplified br function would be dedicated to cd and would receive from broot only a path (some/path).