kaktree icon indicating copy to clipboard operation
kaktree copied to clipboard

[Feature Request] option for return key to just open the directory

Open dead10ck opened this issue 4 years ago • 3 comments
trafficstars

It would be nice if there were an option to be able to have the return key simply open a directory tree when the selection is a directory, and open the file when it is a file, similar to how vim's nerdtree plugin works. Changing the root could be bound to a different key in this mode as well.

dead10ck avatar Apr 07 '21 00:04 dead10ck

I think it should be possible to remap keys right now, though it may be a bit not user friendly to do. Have you tried remapping?

andreyorst avatar Sep 23 '21 18:09 andreyorst

It's I'm not mistaken, a simple remap wouldn't do the trick, because presently, a button can either expand the directory tree a directory or open a file, but not both. You'd have to bind the open function to a different key.

dead10ck avatar Sep 23 '21 18:09 dead10ck

ah, I see what you mean, yeah, this needs some tweaking in the kaktree--ret-action and maybe a custom option to control whether to descend by default.

andreyorst avatar Sep 23 '21 18:09 andreyorst