From 977540464a74cf777eb56ab303700ad1048ecf6d Mon Sep 17 00:00:00 2001 From: itdominator <1itdominator@gmail.com> Date: Thu, 28 May 2026 22:53:31 -0500 Subject: [PATCH] Added .hidden file detection to filter from UI based on user request --- src/shellfm/windows/tabs/tab.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/shellfm/windows/tabs/tab.py b/src/shellfm/windows/tabs/tab.py index f51ea5d..fecff3c 100644 --- a/src/shellfm/windows/tabs/tab.py +++ b/src/shellfm/windows/tabs/tab.py @@ -74,10 +74,17 @@ class Tab(Settings, FileHandler, Launcher, Path): self.set_to_home() return "" + dot_hidden_file = join(path, ".hidden") + if os.path.exists(dot_hidden_file): + with open(dot_hidden_file, "r") as f: + for line in f.readlines(): + if not line: continue + self._hidden.append(line) + for f in listdir(path): file = join(path, f) if self._hide_hidden: - if f.startswith('.'): + if f.startswith('.') or f in self._hidden: self._hidden.append(f) continue