Closed Canop closed 5 months ago
Nothing more in my side.
Not yet 😛
Ok. I feel free to change br to focus on cd.
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?
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
).
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.