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?
Add a comment |
1 Answer
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.
- 1this is useful, F3 to forget and reload parentDan D– Dan D2024-02-08 16:31:59 +00:00Commented Feb 8, 2024 at 16:31