[Feature request] Setting a custom "root" directory
Hi! Have been using lf (thanks for implementing the tool!) and one thing I normally do, is open lf in a terminal when working on a particular project/repo. I would like to be able to prevent lf from navigating into parent directories, effectively setting the root to ./.
Is this currently possible? I scanned the docs but couldn't find anything.
Maybe having an extra command line option like -root string would be one way to achieve this.
If this sounds useful, with some guidance, I could try to implement this myself. Thanks in advance.
@rizo Maybe there is a tool like chroot that can achieve what you want without support from our side. There are some tools mentioned in chroot arch wiki page, so maybe they are worth a try.
Other than that, maybe it is possible to override the default updir command to prevent going further than OLDPWD.