3

When using Midnight Commander and making my left panel a directory tree, I open a directory and it expands with Enter, but when I press Enter again nothing happens. This is a fresh install of mc on Ubuntu 19.04. How do I collapse the directory tree in Midnight Commander's directory tree?

2 Answers 2

1

Enter does two things in the directory tree: it loads the directory’s contents, and adds the subdirectories to the tree. There’s no direct opposite operation, but there are two ways to get back to the previous state:

  • the first is to forget the directory, with F3; that also removes the parent directory from the tree (not the disk!), so you’ll need to go back to the parent and rescan with F2;
  • the second is to navigate in dynamic mode, with F4; then you’ll only see the tree starting from the currently-selected directory, and pressing or will hide the previously-opened tree.
-1

I am sorry that give my impression. I think that "F3=Forget" had been a bug a lot of time ago, because there is not reason to hide a directory. F3 should be "F3=Collapse", and it should "forget" the suns of the actual directory.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .