Skip to content

v0.1.2: Fix file discovery for hidden files and gitignore patterns

Latest

Choose a tag to compare

@kylesnowschwartz kylesnowschwartz released this 08 Jun 00:57
· 2 commits to main since this release

🐛 Bug Fixes

This release fixes a critical issue where :PromptTower would show "No files found in workspace" when working in directories that primarily contain hidden files (files starting with .) or when gitignore patterns conflicted with directory paths.

Fixed Issues

  • Hidden files not discovered: Files like .gitignore, .github/, .stylua.toml are now properly discovered by default
  • Overly broad .git pattern: Fixed ignore pattern to only match exactly .git directory, not files starting with .git
  • Gitignore pattern conflicts: Fixed gitignore patterns to use relative paths instead of absolute paths, preventing conflicts when directory names match gitignore patterns

Technical Changes

  • 🔧 Enable file_discovery.include_hidden=true by default in configuration
  • 🎯 Change .git ignore pattern to ^%.git$ for specificity
  • 📍 Fix gitignore pattern matching to use relative paths from gitignore file location
  • ✅ Add comprehensive regression tests covering hidden file discovery edge cases

Impact

This particularly fixes the issue in directories like:

  • ~/.config/nvim (Neovim configuration directories)
  • ~/.dotfiles (Dotfile repositories)
  • Any project where gitignore patterns inadvertently matched directory paths

Testing

  • Added 5 new regression tests specifically targeting this bug
  • Total test suite now has 157 tests (up from 152)
  • All tests pass with comprehensive coverage of file discovery scenarios

Upgrade Notes

No breaking changes - this is a pure bug fix release. Existing configurations will continue to work as expected, but will now discover hidden files by default.