Skip to content

Conversation

@dbinky
Copy link
Owner

@dbinky dbinky commented Jan 6, 2026

Summary

  • Fix Windows-specific bug where .venv/ directories were being indexed despite being in ignore patterns
  • Normalize path separators in matchDoubleStarPattern to handle Windows backslashes
  • Add .venv and venv to default exclude patterns
  • Add getting started instructions to both bash and PowerShell installers

Changes

  • internal/daemon/ignorer.go: Use explicit strings.ReplaceAll(path, "\\", "/") for cross-platform path normalization
  • internal/config/defaults.go: Add **/.venv/** and **/venv/** to default exclude patterns
  • scripts/install.sh and scripts/install.ps1: Add post-install getting started instructions

Test plan

  • Added comprehensive tests for backslash paths, mixed separators, edge cases
  • All 417+ new tests pass
  • No regressions in existing tests

🤖 Generated with Claude Code

Ryan and others added 2 commits January 6, 2026 08:37
The matchDoubleStarPattern function was not normalizing path separators,
causing patterns like **/.venv/** to fail on Windows where paths use
backslashes. This resulted in .venv directories being indexed despite
being in .gitignore or .pommelignore.

Changes:
- Use explicit strings.ReplaceAll() to convert backslashes to forward
  slashes in matchDoubleStarPattern (filepath.ToSlash only converts the
  OS-native separator)
- Add handling for **/.venv/** style patterns (directory with content)
- Add handling for .venv/** patterns (without leading **)
- Trim trailing slashes to avoid false matches on directory-only paths
- Add .venv and venv to default exclude patterns
- Add comprehensive cross-platform tests for path separator handling

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
After installation completes, both bash and PowerShell installers now
display clear getting started steps:
1. cd <your project directory>
2. pm init
3. pm start

Also includes a helpful tip about using 'pm status' to monitor indexing
progress while noting that Pommel works with a partial index too.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <[email protected]>
@dbinky dbinky merged commit c8e3e26 into dev Jan 6, 2026
24 of 25 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant