feat: fix hidden files whitelist logic to require ALL hidden path components be whitelisted, add vault config to single file indexing, and improve reindex button feedback with save phase indication

This commit is contained in:
2026-03-26 14:14:04 -04:00
parent 08e4d732f5
commit 80e2a7fc53
3 changed files with 23 additions and 11 deletions
+6 -5
View File
@@ -26,10 +26,11 @@ def should_include_path(rel_parts: Tuple[str, ...], vault_config: Dict[str, Any]
# Include all hidden files/folders
return True
# Check if any hidden part is in the whitelist
# Check if ALL hidden parts are in the whitelist
# If any hidden part is NOT in the whitelist, exclude the path
for hidden_part in hidden_parts:
if hidden_part in hidden_whitelist:
return True
if hidden_part not in hidden_whitelist:
return False
# Not in whitelist and includeHidden is False
return False
# All hidden parts are in the whitelist
return True