Can #Dolphin display ultimate sole subdir of empty dir like GitLab does?

Does dolphin have the ability to ignore empty directories, and instead solely display their sole subdirectory? I have a lot of nested folders due to stupid app packaging requirements, so this would help a lot.

I envision something like

happening automatically.

It’s not an issue for the directory-only file picker, since that is just the Folders panel maximised.

A possible way to ease a nuisance like this is to make the problematic path hidden (that is, the name starts with a “.” or is in “.hidden”) so that dolphin doesn’t show it, and have an alternative, more friendly, path that dolphin shows.

If a sym link works for the hidden path, that’s good, but I had a case where the “packaging requirements” did not allow a sym link, and insisted on using a path that was about 60 characters long and had spaces and special characters in it. Using a sym link for the visible alternative path didn’t work because some other software would insist on resolving the link.

So, I used a bind mount. The bind mount was used by dolphin and the other software. The tricks were to use octal escapes in /etc/fstab, f.ex. “\040” for a space, and “x-system-.requires=” to make sure systemd didn’t mount it too soon. It looked like:

/mnt/top/@app/App\040Long\040Name(My\040Company\040Limited)/My\040Folders /home/username/z none bind,x-systemd.requires=/home/username/.z 0 0

The bind mount approach is not perfect as there are effects on several utilities, but “z” in dolphin and konsole was such a boon. If you have a lot of these paths so many bind mounts might be a problem.

1 Like

Unfortunately, I have to have dolphin configured to show “hidden” inodes because I have to access such things daily.

Does this work if the directory hierarchy is very fluid; as in, if I constantly re-jig things, would it be as versatile as a file would be? I rather need to be able to refactor things.


I’m thankful for these solutions, because they’re great in micromanaged frequently-accessed environments, so I’m sure they’ll be of use to someone. I just don’t think that they fit the wide use-case I’d like.

bind mounts…

One must use sudo, but you can mount and umount when needed.

Dolphin is no IDE / developpment specific file browser, it is a generic one as such, having a feature as you suggest is clearly out of scope of dolphin.

You can expand or close multiple folders at once, it you select a bunch and hit the “right” arrow key, they will all expand. This can work recursively as long as you selected a range of folders to expand. This should makes this less tedious to you.

@meven, is there a video to demonstrate how to anywhere?

image

It doesn’t work for me, 'though I don’t think this would fix this anyway.


I don’t see why the former statement causes the latter to be true. I’ve certainly never heard of a file manager be referred to as “development-specific”.

This is currently behaving oddly on my plasma 5 session. Will try on my Plasma 6 soon. Are you currently on 5 or 6?

I can’t speak for meven but here is how I think this is was meant:
It looks like what you want is very advanced feature, while dolphin is a file manager for the average user.

Not sure how uptodate this page is, but here you can read about the design philosophy of dolphin:

“fix” for a what is a feature request is a bit strong word.
I mean to accommodate your workflow.

Do use dolphin 23.08 ?

Your use-case is, as you described it yourself.
I should have written too use-case specific.

There’s a file manager designed specifically for your case. It’s called ‘broot’. It’s TUI, but not that difficult to use.

@Duha,

Per kcm_about-distro

Operating System: openSUSE Tumbleweed 20231105
KDE Plasma Version: 5.27.9
KDE Frameworks Version: 5.111.0
Qt Version: 5.15.11
Kernel Version: 6.5.9-1-default (64-bit)
Graphics Platform: X11
Processors: 12 × AMD Ryzen 5 7600X 6-Core Processor
Memory: 30.5 GiB of RAM
Graphics Processor: AMD Radeon RX 5700
Manufacturer: ASRock
Product Name: X670E Taichi

If that’s a little more useful.


@Meven, Yes.


@jinliu, thanks for the suggestion, but I won’t switch file managers from a cross-platform GUI to a TUI for such a minor feature.