Fix: _is_hidden_path now blocks .obsidian (broken carve-out)

The helper was hardcoding '.obsidian != .obsidian = False' so
_is_hidden_path never returned True for .obsidian paths. The
include_hidden parameter in list_vault was supposed to be the sole
gate. Now ALL dot-prefixed paths are hidden by default; set
include_hidden=True to peek at .obsidian config.
This commit is contained in:
helm 2026-07-07 02:45:13 -04:00
parent 6192e22186
commit 517a79deea

View file

@ -51,8 +51,8 @@ def _compact_date(timestamp: float) -> str:
def _is_hidden_path(rel: Path) -> bool: def _is_hidden_path(rel: Path) -> bool:
"""True if any path component is a dotfile/dotdir (excluding .obsidian).""" """True if any path component is a dotfile/dotdir (.obsidian, .git, .trash, etc.)."""
return any(part.startswith(".") and part != ".obsidian" for part in rel.parts) return any(part.startswith(".") for part in rel.parts)
# ── Helpers ─────────────────────────────────────────────────────────────── # ── Helpers ───────────────────────────────────────────────────────────────