fman icon indicating copy to clipboard operation
fman copied to clipboard

Make 'hidden files' filter include dotfiles on Windows

Open crispinb opened this issue 6 years ago • 6 comments

Currently when 'Show/hide hidden files' is toggled to 'hide' on Windows, only files with a hidden attribute are hidden, so those named with an initial dot are still shown.

Ideally (for me anyway), both types would be hidden. There are several cases where you might browse files in unixy directories (eg. mounted linux filesystems, \wsl$\ paths served up by 9P, etc), and they're often very cluttered with dotfiles.

crispinb avatar May 07 '19 01:05 crispinb

I'm not sure whether to "just implement this" for everyone. It may confuse some Windows users to change the semantics of what it means for a file to be hidden.

Having said that, you can implement this yourself. This part of fman's Core plugin implements the hidden file functionality. You could write a plugin that does something along the same lines.

If you need help with this, let me know.

mherrmann avatar May 07 '19 15:05 mherrmann

(Or you could overwrite core.commands.is_hidden. Might be easier.)

mherrmann avatar May 07 '19 15:05 mherrmann

I see your point, though I'm undecided on whether your intuition is right: I suspect dotfiles are rare enough in Windows that anyone using them does so in a unixy context where they're well aware that they're hidden. I was a bit surprised when I hit ctrl-. in fman and the dotfiles stayed there! Anyway I guess your intuition is as likely to be correct as mine ;) Pushing new & changed features out to plugins is probably a wise default in any case.

Thanks for the plugin suggestion. Time is an issue so we'll see if I get to it.

crispinb avatar May 07 '19 22:05 crispinb

@crispinb, are you working on the plugin?

GowthamKudupudi avatar Aug 30 '20 13:08 GowthamKudupudi

@GowthamKudupudi - no, it completely dropped off my radar.

crispinb avatar Aug 30 '20 20:08 crispinb

plugin - FmanTreatDotAsHidden

strayge avatar Jul 30 '21 02:07 strayge