linuxmint / xviewer

A generic Image viewer
GNU General Public License v2.0
75 stars 37 forks source link

Feature Request: Don't show hidden images. #149

Open archteryx opened 3 years ago

archteryx commented 3 years ago
 * Xviewer version (xviewer --3.0.2)
 * Distribution - (Mint 20.2)

Issue When viewing images from a folder where there are also hidden ones, the hidden images apear.

Steps to reproduce In a folder that contains images make some of them hidden. Then view the photos in the folder with xviewer. Hidden images will appear as well.

Expected behaviour In preferences, choose not to show hidden images.

programmer-ceds commented 3 years ago

Should this apply only to files with names starting with a period? Or should files with names that are listed in a file named .hidden not appear as well?

archteryx commented 3 years ago

This should apply to files with names starting with period, at least. Sorry I do not completely understand the second part. Do you mean files with names in hidden folder(directory) named .hidden? In this occasion if open one listed file inside that directory, it is not necessary to hide all other files listed with names in the same directory.

programmer-ceds commented 3 years ago

If a folder contains a file called .hidden then any files (in that folder) that are listed in that file are also hidden (although only by GUI programs - no files are hidden when using the ls command in a terminal window).

Implementing the .hidden file method of hiding would obviously involve more work than just not showing files that start with a period/dot.